forked from Minki/linux
[ALSA] ice1712 - Disable AC97 for DMX6fire
Consumer AC97 is not used by the Terratec DMX6fire, but eeprom bit indicates it is; change the stored value to disable failing consumer mode. Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
302e4c2f9e
commit
721b8a2972
@ -2398,13 +2398,14 @@ static int __devinit snd_ice1712_chip_init(struct snd_ice1712 *ice)
|
|||||||
udelay(200);
|
udelay(200);
|
||||||
outb(ICE1712_NATIVE, ICEREG(ice, CONTROL));
|
outb(ICE1712_NATIVE, ICEREG(ice, CONTROL));
|
||||||
udelay(200);
|
udelay(200);
|
||||||
if (ice->eeprom.subvendor == ICE1712_SUBDEVICE_DMX6FIRE && !ice->dxr_enable) {
|
if (ice->eeprom.subvendor == ICE1712_SUBDEVICE_DMX6FIRE &&
|
||||||
/* Limit active ADCs and DACs to 6; */
|
!ice->dxr_enable)
|
||||||
/* Note: DXR extension not supported */
|
/* Set eeprom value to limit active ADCs and DACs to 6;
|
||||||
pci_write_config_byte(ice->pci, 0x60, 0x2a);
|
* Also disable AC97 as no hardware in standard 6fire card/box
|
||||||
} else {
|
* Note: DXR extensions are not currently supported
|
||||||
|
*/
|
||||||
|
ice->eeprom.data[ICE_EEP1_CODEC] = 0x3a;
|
||||||
pci_write_config_byte(ice->pci, 0x60, ice->eeprom.data[ICE_EEP1_CODEC]);
|
pci_write_config_byte(ice->pci, 0x60, ice->eeprom.data[ICE_EEP1_CODEC]);
|
||||||
}
|
|
||||||
pci_write_config_byte(ice->pci, 0x61, ice->eeprom.data[ICE_EEP1_ACLINK]);
|
pci_write_config_byte(ice->pci, 0x61, ice->eeprom.data[ICE_EEP1_ACLINK]);
|
||||||
pci_write_config_byte(ice->pci, 0x62, ice->eeprom.data[ICE_EEP1_I2SID]);
|
pci_write_config_byte(ice->pci, 0x62, ice->eeprom.data[ICE_EEP1_I2SID]);
|
||||||
pci_write_config_byte(ice->pci, 0x63, ice->eeprom.data[ICE_EEP1_SPDIF]);
|
pci_write_config_byte(ice->pci, 0x63, ice->eeprom.data[ICE_EEP1_SPDIF]);
|
||||||
|
Loading…
Reference in New Issue
Block a user