From 57e5c63007955838043e34c732d224b2cbbb128f Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Fri, 16 Sep 2011 23:13:38 +0200 Subject: ALSA: emu10k1: allow to disable the SRC Add the PCM rule to allow disabling the PCM playback SRC. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai --- sound/pci/emu10k1/emupcm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sound/pci/emu10k1') 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; -- cgit v1.2.3