drm/radeon: don't setup audio on asics that don't support it
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 4 May 2015 18:35:01 +0000 (14:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2015 13:46:10 +0000 (09:46 -0400)
bug: https://bugzilla.kernel.org/show_bug.cgi?id=97701

Reported-by: Mikael Pettersson <mikpelinux@gmail.com>
Tested-by: Mikael Pettersson <mikpelinux@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_audio.c

index 8b82abb..dcb7796 100644 (file)
@@ -464,6 +464,10 @@ void radeon_audio_detect(struct drm_connector *connector,
                return;
 
        rdev = connector->encoder->dev->dev_private;
+
+       if (!radeon_audio_chipset_supported(rdev))
+               return;
+
        radeon_encoder = to_radeon_encoder(connector->encoder);
        dig = radeon_encoder->enc_priv;