diff options
author | Magnus Sandin <magnus@sandin.cx> | 2006-08-22 07:33:12 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 04:43:42 -0400 |
commit | 7b89190cf6ecd5075c272b4ec12f65a4ce45a762 (patch) | |
tree | f60ba82c95763b052db944b5246defe65b603367 /sound/pci | |
parent | bab282b912baf372d8f705357946ef691b621899 (diff) |
[ALSA] ac97 - Enable S/PDIF on ASUS P5P800-VM mobo
The attached patch will force building the S/PDIF controls on the PCU
SSID for Asus P5P800-VM motherboard, even if the AC97_EI_SPDIF bit is
not set.
Signed-off-by: Magnus Sandin <magnus@sandin.cx>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index c47f43dbd664..a79e91850ba3 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -1573,6 +1573,12 @@ static int snd_ac97_mixer_build(struct snd_ac97 * ac97) | |||
1573 | } | 1573 | } |
1574 | 1574 | ||
1575 | /* build S/PDIF controls */ | 1575 | /* build S/PDIF controls */ |
1576 | |||
1577 | /* Hack for ASUS P5P800-VM, which does not indicate S/PDIF capability */ | ||
1578 | if (ac97->subsystem_vendor == 0x1043 && | ||
1579 | ac97->subsystem_device == 0x810f) | ||
1580 | ac97->ext_id |= AC97_EI_SPDIF; | ||
1581 | |||
1576 | if ((ac97->ext_id & AC97_EI_SPDIF) && !(ac97->scaps & AC97_SCAP_NO_SPDIF)) { | 1582 | if ((ac97->ext_id & AC97_EI_SPDIF) && !(ac97->scaps & AC97_SCAP_NO_SPDIF)) { |
1577 | if (ac97->build_ops->build_spdif) { | 1583 | if (ac97->build_ops->build_spdif) { |
1578 | if ((err = ac97->build_ops->build_spdif(ac97)) < 0) | 1584 | if ((err = ac97->build_ops->build_spdif(ac97)) < 0) |