Commit a9a52af8 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[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: default avatarTakashi Iwai <tiwai@suse.de>
parent d76a94ae
...@@ -801,6 +801,8 @@ static int snd_ca0106_ac97(ca0106_t *chip) ...@@ -801,6 +801,8 @@ static int snd_ca0106_ac97(ca0106_t *chip)
if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0)
return err; return err;
pbus->no_vra = 1; /* we don't need VRA */
memset(&ac97, 0, sizeof(ac97)); memset(&ac97, 0, sizeof(ac97));
ac97.private_data = chip; ac97.private_data = chip;
return snd_ac97_mixer(pbus, &ac97, &chip->ac97); return snd_ac97_mixer(pbus, &ac97, &chip->ac97);
......
...@@ -745,6 +745,8 @@ static int snd_emu10k1x_ac97(emu10k1x_t *chip) ...@@ -745,6 +745,8 @@ static int snd_emu10k1x_ac97(emu10k1x_t *chip)
if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0)
return err; return err;
pbus->no_vra = 1; /* we don't need VRA */
memset(&ac97, 0, sizeof(ac97)); memset(&ac97, 0, sizeof(ac97));
ac97.private_data = chip; ac97.private_data = chip;
return snd_ac97_mixer(pbus, &ac97, &chip->ac97); return snd_ac97_mixer(pbus, &ac97, &chip->ac97);
......
...@@ -519,6 +519,7 @@ int __devinit snd_emu10k1_mixer(emu10k1_t *emu) ...@@ -519,6 +519,7 @@ int __devinit snd_emu10k1_mixer(emu10k1_t *emu)
if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0) if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0)
return err; return err;
pbus->no_vra = 1; /* we don't need VRA */
memset(&ac97, 0, sizeof(ac97)); memset(&ac97, 0, sizeof(ac97));
ac97.private_data = emu; ac97.private_data = emu;
......
...@@ -2037,6 +2037,7 @@ snd_es1968_mixer(es1968_t *chip) ...@@ -2037,6 +2037,7 @@ snd_es1968_mixer(es1968_t *chip)
if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0)
return err; return err;
pbus->no_vra = 1; /* ES1968 doesn't need VRA */
memset(&ac97, 0, sizeof(ac97)); memset(&ac97, 0, sizeof(ac97));
ac97.private_data = chip; ac97.private_data = chip;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment