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 0BC3F1A83E8; Mon, 2 Jun 2025 15:07:20 +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=1748876840; cv=none; b=G/0kq/rURtwK7Q6LbxIGgRoH3vBbF+fJ9V3Cj9TKmDuTV1k5BuJUAe6o64MA65pKmChKixxFok81POPeyhEYFO4LJi0kRHeHZSVPldKfxIAM3LiGqOLny9wvFAdOa36uYcYufyhQJXdbJ1d138y7dj42HTcaxt+bAWK0yfVFd/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748876840; c=relaxed/simple; bh=6pFvKsK03irC1THXQobE8zQJhjaou3bBD8v9ycCGgdM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KwJCtT0MCA0/UnEia1kIP2+359zlgpZJwB7wJqWM30ShLlPOlHQoMFVrOY7L16S/Bf3gRWhDm2WR22ZmMpT5V0iy0H49PTjbn6RL8oaVRsHiIFO9/db3WD4OGADySm75eLYFy8xbXO8c/MnS6wUjreJIdFemsu+vsHf+8li9j8U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q0Bu/Tr7; 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="Q0Bu/Tr7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F632C4CEEB; Mon, 2 Jun 2025 15:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748876839; bh=6pFvKsK03irC1THXQobE8zQJhjaou3bBD8v9ycCGgdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q0Bu/Tr7TgAl3BywRHz3rLXPpfKfONytDkLdaHSEhbO0cedzWQBEgC838vrnTNNG3 /3psZRH/J++jEwcnYyk/Ai7GqvJ2v78ctWmlqf/WVoe8EKgn2jzfwNMMS1FV3s2F5o +WDS0yfz8OrW/YXbiJF68f43cQ7FKPlxV1JUfQ5w= 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.1 091/325] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup() Date: Mon, 2 Jun 2025 15:46:07 +0200 Message-ID: <20250602134323.479652040@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134319.723650984@linuxfoundation.org> References: <20250602134319.723650984@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-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 41be09a07ca71..65e51b6b46ff9 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