aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2005-01-04 18:26:38 +0100
committerJaroslav Kysela <perex@suse.cz>2005-01-04 18:26:38 +0100
commita9a52af802dbd09331f454667e95579e2f8a98b9 (patch)
treec94e394e9fd2d7aeeea38149acb19491efe87886 /sound
parentd76a94ae182795c000feaa78f656b2b50482f6fd (diff)
downloadhistory-a9a52af802dbd09331f454667e95579e2f8a98b9.tar.gz
[ALSA] Don't probe sample rates on non-VRA chips
ES1968 driver,CA0106 driver,EMU10K1/EMU10K2 driver Don't probe sample rates on chips which need no VRA. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/ca0106/ca0106_main.c2
-rw-r--r--sound/pci/emu10k1/emu10k1x.c2
-rw-r--r--sound/pci/emu10k1/emumixer.c1
-rw-r--r--sound/pci/es1968.c1
4 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c
index 0306a4a8c8ffa5..a6f3fa5dc12b5f 100644
--- a/sound/pci/ca0106/ca0106_main.c
+++ b/sound/pci/ca0106/ca0106_main.c
@@ -801,6 +801,8 @@ static int snd_ca0106_ac97(ca0106_t *chip)
if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0)
return err;
+ pbus->no_vra = 1; /* we don't need VRA */
+
memset(&ac97, 0, sizeof(ac97));
ac97.private_data = chip;
return snd_ac97_mixer(pbus, &ac97, &chip->ac97);
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c
index 5daab328c1fc36..0eb34c6b29f7ab 100644
--- a/sound/pci/emu10k1/emu10k1x.c
+++ b/sound/pci/emu10k1/emu10k1x.c
@@ -745,6 +745,8 @@ static int snd_emu10k1x_ac97(emu10k1x_t *chip)
if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0)
return err;
+ pbus->no_vra = 1; /* we don't need VRA */
+
memset(&ac97, 0, sizeof(ac97));
ac97.private_data = chip;
return snd_ac97_mixer(pbus, &ac97, &chip->ac97);
diff --git a/sound/pci/emu10k1/emumixer.c b/sound/pci/emu10k1/emumixer.c
index bd01a7708d2c93..62ecdec603b0fc 100644
--- a/sound/pci/emu10k1/emumixer.c
+++ b/sound/pci/emu10k1/emumixer.c
@@ -519,6 +519,7 @@ int __devinit snd_emu10k1_mixer(emu10k1_t *emu)
if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0)
return err;
+ pbus->no_vra = 1; /* we don't need VRA */
memset(&ac97, 0, sizeof(ac97));
ac97.private_data = emu;
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c
index f3a6a488cf783e..12ac754801a6b6 100644
--- a/sound/pci/es1968.c
+++ b/sound/pci/es1968.c
@@ -2037,6 +2037,7 @@ snd_es1968_mixer(es1968_t *chip)
if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0)
return err;
+ pbus->no_vra = 1; /* ES1968 doesn't need VRA */
memset(&ac97, 0, sizeof(ac97));
ac97.private_data = chip;