From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16CFC22FE0A; Mon, 2 Jun 2025 14:55:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748876156; cv=none; b=OlWcQNYGBxWrnu4I406gQduD3yDEsbVj5Z4D5GSBqo/ov7xuLvewF9tEbO7vQSC2RTQiO554I8Vmch9YdrmnYrMzAXJGpHubvVHcid7WyXBjNHqGx7YOON+9SJiJkrXTSoPPD1J8sL0AOeJ84HmBtDU0/ZwAN7Y2tORqORgqC4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748876156; c=relaxed/simple; bh=0HR1a8Jcn+uz3Cw3MJ7CKYODUulrilTiGnFNAYoKBgc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ddOh5XKLB/CGU6gClIceP7yaRHznXQ9kJ1W1wMJKdvyL3r+NfIoYaPEW7rog+5AZWsYj6+I5S+Nt+1wzdqCmyn1JvxCaHIZ3Dmj17sdMQpkkvZQKLV2ho153SwmRGgs0e4DmGwldxQaNlEZSz2NIso/JezJhbzSOT1CZWQ8LIXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o4Sdublm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="o4Sdublm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D162C4CEF0; Mon, 2 Jun 2025 14:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748876155; bh=0HR1a8Jcn+uz3Cw3MJ7CKYODUulrilTiGnFNAYoKBgc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o4SdublmqVJlmY9we3YOpjaaaH0Wrr3A6seetvEMNoND+d1cNB5xrBCwFQHdIot2z tLmBwq9Mg0KJnORDH8wajgtN8Wn7vGU4lcd55s+jxA46rSRXc8MnSroRKceG5pPkZI JZyU117vpQidpYk5xaKeyd7KQS7na8XTULvjTPFY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Srinivas Kandagatla , Alexey Klimov , Mark Brown , Sasha Levin Subject: [PATCH 5.15 058/207] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup() Date: Mon, 2 Jun 2025 15:47:10 +0200 Message-ID: <20250602134301.023713068@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134258.769974467@linuxfoundation.org> References: <20250602134258.769974467@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexey Klimov [ Upstream commit 89be3c15a58b2ccf31e969223c8ac93ca8932d81 ] Setting format to s16le is required for compressed playback on compatible soundcards. Cc: Srinivas Kandagatla Signed-off-by: Alexey Klimov Link: https://patch.msgid.link/20250228161430.373961-1-alexey.klimov@linaro.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- 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 a38a741ace379..34a6349754fb0 100644 --- a/sound/soc/qcom/sm8250.c +++ b/sound/soc/qcom/sm8250.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include "qdsp6/q6afe.h" #include "common.h" @@ -27,9 +28,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.39.5