summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2012-05-14 21:25:57 +0200
committerDave Airlie <airlied@redhat.com>2012-05-22 10:14:16 +0100
commit3299de9558687ec02b3b9fae1af639844c46ea4b (patch)
tree9780c04edd28e5e979ea1a2bb01e70a1d3ea8530 /drivers/gpu/drm/radeon/radeon.h
parentc284815debba2f14ee2fd07b1b4cc972ab116110 (diff)
downloadlinux-3299de9558687ec02b3b9fae1af639844c46ea4b.tar.bz2
drm/radeon/hdmi: compile audio status in 1 function
This optmizes calls, registers reads and assignments. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 9783178a8ff0..1dc3a4aba020 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -1094,7 +1094,6 @@ int radeon_pm_get_type_index(struct radeon_device *rdev,
int instance);
struct r600_audio {
- bool enabled;
int channels;
int rate;
int bits_per_sample;
@@ -1535,7 +1534,8 @@ struct radeon_device {
int num_crtc; /* number of crtcs */
struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */
struct mutex vram_mutex;
- struct r600_audio audio; /* audio stuff */
+ bool audio_enabled;
+ struct r600_audio audio_status; /* audio stuff */
struct notifier_block acpi_nb;
/* only one userspace can use Hyperz features or CMASK at a time */
struct drm_file *hyperz_filp;