Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: qcom: sc8280xp: explicitly set S16LE format in sc8280xp_be_hw_params_fixup()

Setting format to s16le is required for compressed playback on compatible
soundcards.

Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Link: https://patch.msgid.link/20250911154340.2798304-1-alexey.klimov@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Alexey Klimov and committed by
Mark Brown
9565c9d5 ce2335cd

+3
+3
sound/soc/qcom/sc8280xp.c
··· 7 7 #include <sound/soc.h> 8 8 #include <sound/soc-dapm.h> 9 9 #include <sound/pcm.h> 10 + #include <sound/pcm_params.h> 10 11 #include <linux/soundwire/sdw.h> 11 12 #include <sound/jack.h> 12 13 #include <linux/input-event-codes.h> ··· 83 82 SNDRV_PCM_HW_PARAM_RATE); 84 83 struct snd_interval *channels = hw_param_interval(params, 85 84 SNDRV_PCM_HW_PARAM_CHANNELS); 85 + struct snd_mask *fmt = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); 86 86 87 87 rate->min = rate->max = 48000; 88 + snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S16_LE); 88 89 channels->min = 2; 89 90 channels->max = 2; 90 91 switch (cpu_dai->id) {