Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b0416a3 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Takashi Iwai
Browse files

ALSA: ymfpci: allow to disable the SRC



Add the PCM rules to allow disabling the PCM playback and capture SRCs.

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d5b702a6
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -906,6 +906,9 @@ static int snd_ymfpci_playback_open_1(struct snd_pcm_substream *substream)
					   5334, UINT_MAX);
					   5334, UINT_MAX);
	if (err < 0)
	if (err < 0)
		return err;
		return err;
	err = snd_pcm_hw_rule_noresample(runtime, 48000);
	if (err < 0)
		return err;


	ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL);
	ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL);
	if (ypcm == NULL)
	if (ypcm == NULL)
@@ -1028,6 +1031,9 @@ static int snd_ymfpci_capture_open(struct snd_pcm_substream *substream,
					   5334, UINT_MAX);
					   5334, UINT_MAX);
	if (err < 0)
	if (err < 0)
		return err;
		return err;
	err = snd_pcm_hw_rule_noresample(runtime, 48000);
	if (err < 0)
		return err;


	ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL);
	ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL);
	if (ypcm == NULL)
	if (ypcm == NULL)