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 1E9FE263F52; Tue, 11 Nov 2025 01:22:10 +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=1762824130; cv=none; b=WfpjKbYU/FbIeeC1yo1A1R3k4/BIOW0HgBs9y3B966BZ1EV8Z3TETzFQ5lybSTvF92260DxhQlpiq0ZmWOZUwDAdgJWoPyg9KP/83DHV3mlWOSGOAAjdMRX2R/T236OhOIX7lSdNwnCdTKFVPiM/crlslstnw9ZyPFl6SPrxtmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762824130; c=relaxed/simple; bh=nXd8/RrJWiNmoAens8ZKRDPk9tgGBNl3598VGwi9pC4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UnailNitspf7LzDelhQ1Dgcp+aefeorqRzEw3vixkHdLjhPLUcYwg1gM4mymLBGfZAWHp5xs07S19aQnhydw1i8VNptfNA2Lfvfp2aYBYUIacuhQqM81BFHmLkE/BSOvN4Y2YV0c98g4p7Rc8SBtKQJCcPQErEhuY5RoDD3FCc4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QoSW37b3; 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="QoSW37b3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFA23C116D0; Tue, 11 Nov 2025 01:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762824130; bh=nXd8/RrJWiNmoAens8ZKRDPk9tgGBNl3598VGwi9pC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QoSW37b3JiV4VV0OgKBr55dU5vxGrVryJc+bRzPAr4s32BaDI9f5iU7f4GeF1FhIM U5184IN/CJT5mfTz8inbRANpR1TWqc039by8NK+iRAsJuwdUosdvUrLo6Iejn6lWEJ FCtleFK0jJfxELQfB/nZinZlF41fmnPcZFCd/ZDo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexey Klimov , Mark Brown , Sasha Levin Subject: [PATCH 6.12 393/565] ASoC: qcom: sc8280xp: explicitly set S16LE format in sc8280xp_be_hw_params_fixup() Date: Tue, 11 Nov 2025 09:44:09 +0900 Message-ID: <20251111004535.712491068@linuxfoundation.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251111004526.816196597@linuxfoundation.org> References: <20251111004526.816196597@linuxfoundation.org> User-Agent: quilt/0.69 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.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexey Klimov [ Upstream commit 9565c9d53c5b440f0dde6fa731a99c1b14d879d2 ] Setting format to s16le is required for compressed playback on compatible soundcards. Signed-off-by: Alexey Klimov Link: https://patch.msgid.link/20250911154340.2798304-1-alexey.klimov@linaro.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/qcom/sc8280xp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c index 922ecada1cd8d..916a156f991fa 100644 --- a/sound/soc/qcom/sc8280xp.c +++ b/sound/soc/qcom/sc8280xp.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -82,8 +83,10 @@ static int sc8280xp_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; + snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S16_LE); channels->min = 2; channels->max = 2; switch (cpu_dai->id) { -- 2.51.0