aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-09-16 17:13:38 -0400
committerTakashi Iwai <tiwai@suse.de>2011-09-20 02:56:58 -0400
commit57e5c63007955838043e34c732d224b2cbbb128f (patch)
tree5c4c0eb11dca6581447ea8539024eb9722204bef /sound
parent5b0416a3c2f301e67d307ffc26ba43dff2d0d435 (diff)
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')
-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)
1146 kfree(epcm); 1146 kfree(epcm);
1147 return err; 1147 return err;
1148 } 1148 }
1149 err = snd_pcm_hw_rule_noresample(runtime, 48000);
1150 if (err < 0) {
1151 kfree(epcm);
1152 return err;
1153 }
1149 mix = &emu->pcm_mixer[substream->number]; 1154 mix = &emu->pcm_mixer[substream->number];
1150 for (i = 0; i < 4; i++) 1155 for (i = 0; i < 4; i++)
1151 mix->send_routing[0][i] = mix->send_routing[1][i] = mix->send_routing[2][i] = i; 1156 mix->send_routing[0][i] = mix->send_routing[1][i] = mix->send_routing[2][i] = i;