aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1/emupcm.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-09-16 23:13:38 +0200
committerTakashi Iwai <tiwai@suse.de>2011-09-20 08:56:58 +0200
commit57e5c63007955838043e34c732d224b2cbbb128f (patch)
tree5c4c0eb11dca6581447ea8539024eb9722204bef /sound/pci/emu10k1/emupcm.c
parentALSA: ymfpci: allow to disable the SRC (diff)
downloadlinux-dev-57e5c63007955838043e34c732d224b2cbbb128f.tar.xz
linux-dev-57e5c63007955838043e34c732d224b2cbbb128f.zip
ALSA: emu10k1: allow to disable the SRC
Add the PCM rule to allow disabling the PCM playback SRC. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1/emupcm.c')
-rw-r--r--sound/pci/emu10k1/emupcm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/emu10k1/emupcm.c b/sound/pci/emu10k1/emupcm.c
index 622bace148e3..e22b8e2bbd88 100644
--- a/sound/pci/emu10k1/emupcm.c
+++ b/sound/pci/emu10k1/emupcm.c
@@ -1146,6 +1146,11 @@ static int snd_emu10k1_playback_open(struct snd_pcm_substream *substream)
kfree(epcm);
return err;
}
+ err = snd_pcm_hw_rule_noresample(runtime, 48000);
+ if (err < 0) {
+ kfree(epcm);
+ return err;
+ }
mix = &emu->pcm_mixer[substream->number];
for (i = 0; i < 4; i++)
mix->send_routing[0][i] = mix->send_routing[1][i] = mix->send_routing[2][i] = i;