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 3D4AD22259B; Mon, 2 Jun 2025 14:09:53 +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=1748873394; cv=none; b=ZwMPevgsFFR8qI89+bWtnXBbV2tbDXhwOt3TsjkxtiqpGyaZ50MRPt9xcHNf4SOJYUwoUE2EHboR+aco4RUzUfkVrF6UgCYehZLdtGfU0y2yZDvLY/kkkvvIkcXFBVO7l9m32uJlTWQI7IZCRpizak/iTfSF9ZqjMxwoGxMIRsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748873394; c=relaxed/simple; bh=m8zpKSJnhBTQuwv4PLT0VKwps5BVp4wgOqaDPKV/iho=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XMHpahBJf+Qc5orbochz9Fid3wwJS5TNr8HDzttdcaHIEtDszkPvAzxLA1LChfmdjAol8LE+47Bf4CPdjqD4KWCJeoKtXY97mNWxMbBMc+pY3/XGUB6Lu0ZuA2kC5FOfP3TZ1GJXq80QWy03o4rTiPnT+DBeBGfer8la64ey3c4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fv10OVhz; 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="fv10OVhz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB45EC4CEEB; Mon, 2 Jun 2025 14:09:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748873393; bh=m8zpKSJnhBTQuwv4PLT0VKwps5BVp4wgOqaDPKV/iho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fv10OVhzj48bcP6iHGszvPBwljWYEkG6lZX539n49ot6qNxgpXWdor0Rz3kcA8zI9 jBe7SfPiPX3fyWitmE0B74/znYQkVtmHcHn6uKZi0yg9RuhwjfQrWGkgTTroGtftdu qTkqB3qwYXa/UqDAYwOBpvClOhyhh0UkzuVt/v6U= 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 6.6 127/444] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup() Date: Mon, 2 Jun 2025 15:43:11 +0200 Message-ID: <20250602134346.045370369@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134340.906731340@linuxfoundation.org> References: <20250602134340.906731340@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 6.6-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 88a7169336d61..580eb20b0771a 100644 --- a/sound/soc/qcom/sm8250.c +++ b/sound/soc/qcom/sm8250.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -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.39.5