drm/radeon: clean up audio supported check
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Apr 2013 14:32:39 +0000 (10:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Apr 2013 22:03:52 +0000 (18:03 -0400)
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600_audio.c

index cb03fe22b0abc872d9e0ca962ce746e01b59d87e..72561e4a0799547e015ff7e5dbaf1d000ec96644 100644 (file)
@@ -57,10 +57,7 @@ static bool radeon_dig_encoder(struct drm_encoder *encoder)
  */
 static int r600_audio_chipset_supported(struct radeon_device *rdev)
 {
-       return (rdev->family >= CHIP_R600 && !ASIC_IS_DCE6(rdev))
-               || rdev->family == CHIP_RS600
-               || rdev->family == CHIP_RS690
-               || rdev->family == CHIP_RS740;
+       return ASIC_IS_DCE2(rdev) && !ASIC_IS_DCE6(rdev);
 }
 
 struct r600_audio r600_audio_status(struct radeon_device *rdev)