From 6bd98e9b3265429166aa702217ad1e885f74b26c Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Sun, 6 Apr 2014 22:23:00 -0400 Subject: [PATCH] drm/radeon: enable audio pin by default Alsa uses this to determine if the sink is connected. Ideally we'd allocate pins dynamically and enable then only when we have a monitor attached, but this should work in the meantime. bug: https://bugs.freedesktop.org/show_bug.cgi?id=77002 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/dce6_afmt.c | 3 +-- drivers/gpu/drm/radeon/r600_audio.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/dce6_afmt.c b/drivers/gpu/drm/radeon/dce6_afmt.c index 94e8587..8595449 100644 --- a/drivers/gpu/drm/radeon/dce6_afmt.c +++ b/drivers/gpu/drm/radeon/dce6_afmt.c @@ -325,8 +325,7 @@ int dce6_audio_init(struct radeon_device *rdev) rdev->audio.pin[i].connected = false; rdev->audio.pin[i].offset = pin_offsets[i]; rdev->audio.pin[i].id = i; - /* disable audio. it will be set up later */ - dce6_audio_enable(rdev, &rdev->audio.pin[i], false); + dce6_audio_enable(rdev, &rdev->audio.pin[i], true); } return 0; diff --git a/drivers/gpu/drm/radeon/r600_audio.c b/drivers/gpu/drm/radeon/r600_audio.c index bffac10..7ca0dcd 100644 --- a/drivers/gpu/drm/radeon/r600_audio.c +++ b/drivers/gpu/drm/radeon/r600_audio.c @@ -180,8 +180,7 @@ int r600_audio_init(struct radeon_device *rdev) rdev->audio.pin[0].status_bits = 0; rdev->audio.pin[0].category_code = 0; rdev->audio.pin[0].id = 0; - /* disable audio. it will be set up later */ - r600_audio_enable(rdev, &rdev->audio.pin[0], false); + r600_audio_enable(rdev, &rdev->audio.pin[0], true); return 0; } -- 1.8.3.1