* [PATCH] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup()
@ 2025-02-28 16:14 Alexey Klimov
2025-03-11 13:18 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Klimov @ 2025-02-28 16:14 UTC (permalink / raw)
To: srinivas.kandagatla, broonie, lgirdwood
Cc: perex, tiwai, linux-sound, linux-arm-msm, linux-kernel
Setting format to s16le is required for compressed playback on compatible
soundcards.
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
---
sound/soc/qcom/sm8250.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/qcom/sm8250.c b/sound/soc/qcom/sm8250.c
index 45e0c33fc3f3..9039107972e2 100644
--- a/sound/soc/qcom/sm8250.c
+++ b/sound/soc/qcom/sm8250.c
@@ -7,6 +7,7 @@
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/pcm.h>
+#include <sound/pcm_params.h>
#include <linux/soundwire/sdw.h>
#include <sound/jack.h>
#include <linux/input-event-codes.h>
@@ -39,9 +40,11 @@ static int sm8250_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
SNDRV_PCM_HW_PARAM_RATE);
struct snd_interval *channels = hw_param_interval(params,
SNDRV_PCM_HW_PARAM_CHANNELS);
+ struct snd_mask *fmt = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
rate->min = rate->max = 48000;
channels->min = channels->max = 2;
+ snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S16_LE);
return 0;
}
--
2.47.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup()
2025-02-28 16:14 [PATCH] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup() Alexey Klimov
@ 2025-03-11 13:18 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2025-03-11 13:18 UTC (permalink / raw)
To: srinivas.kandagatla, lgirdwood, Alexey Klimov
Cc: perex, tiwai, linux-sound, linux-arm-msm, linux-kernel
On Fri, 28 Feb 2025 16:14:30 +0000, Alexey Klimov wrote:
> Setting format to s16le is required for compressed playback on compatible
> soundcards.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup()
commit: 89be3c15a58b2ccf31e969223c8ac93ca8932d81
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-11 13:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-28 16:14 [PATCH] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup() Alexey Klimov
2025-03-11 13:18 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®