]> Pileus Git - ~andy/linux/commit
drm/radeon: rework audio option
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Oct 2013 17:17:50 +0000 (13:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Oct 2013 20:16:19 +0000 (16:16 -0400)
commit108dc8e8b44a4c64ac53676cc05f6234340ccd4a
treede4c6ff5a55ec7878a79b78511af25bdf4623848
parent4b7495770cc4a4e7973ea8079dd15d2618f3636a
drm/radeon: rework audio option

In 3.12 I changed audio to be enabled by default,
but you still had to turn it on via xrandr.  This
was confusing to users so change it to minic the
previous behavior:

- audio option is set to -1 (auto) by default which is
  the current 3.12 behavior (audio is enabled but requires
  xrandr to turn it on).
- if audio = 1, the audio is enabled without needing
  to mess with xrandr (previous behavior)
- audio = 0 disables audio

It retains the new feature of allowing the user to enable
audio on the fly with xrandr, but turns audio on
automatically if radeon.audio=1 is set which is what
most users expect.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/atombios_encoders.c
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_drv.c