Commit 57e5c630 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Takashi Iwai

ALSA: emu10k1: allow to disable the SRC

Add the PCM rule to allow disabling the PCM playback SRC.
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5b0416a3
...@@ -1146,6 +1146,11 @@ static int snd_emu10k1_playback_open(struct snd_pcm_substream *substream) ...@@ -1146,6 +1146,11 @@ static int snd_emu10k1_playback_open(struct snd_pcm_substream *substream)
kfree(epcm); kfree(epcm);
return err; return err;
} }
err = snd_pcm_hw_rule_noresample(runtime, 48000);
if (err < 0) {
kfree(epcm);
return err;
}
mix = &emu->pcm_mixer[substream->number]; mix = &emu->pcm_mixer[substream->number];
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)
mix->send_routing[0][i] = mix->send_routing[1][i] = mix->send_routing[2][i] = i; mix->send_routing[0][i] = mix->send_routing[1][i] = mix->send_routing[2][i] = i;
......
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