35 static bool radeon_dig_encoder(
struct drm_encoder *encoder)
77 switch ((value & 0xF0) >> 4) {
94 dev_err(rdev->
dev,
"Unknown bits per sample 0x%x, using 16\n",
104 status.
rate *= ((value >> 11) & 0x7) + 1;
105 status.
rate /= ((value >> 8) & 0x7) + 1;
140 if (!radeon_dig_encoder(encoder))
153 DRM_INFO(
"%s audio support\n", enable ?
"Enabling" :
"Disabling");
162 enable ? 0x81000000 : 0x0, ~0x81000000);
172 if (!
radeon_audio || !r600_audio_chipset_supported(rdev))
175 r600_audio_engine_enable(rdev,
true);
196 int base_rate = 48000;
210 dev_err(rdev->
dev,
"Unsupported encoder type 0x%02X\n",
238 "Unsupported DIG on encoder 0x%02X\n",
254 r600_audio_engine_enable(rdev,
false);