mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Niranjan H Y <niranjan.hy@ti.com>
To: <linux-sound@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <broonie@kernel.org>,
	<ckeepax@opensource.cirrus.com>, <lgirdwood@gmail.com>,
	<perex@perex.cz>, <tiwai@suse.com>, <cezary.rojewski@intel.com>,
	<peter.ujfalusi@linux.intel.com>,
	<yung-chuan.liao@linux.intel.com>, <kai.vehmanen@linux.intel.com>,
	<pierre-louis.bossart@linux.dev>, <baojun.xu@ti.com>,
	<shenghao-ding@ti.com>, <sandeepk@ti.com>, <v-hampiholi@ti.com>,
	Niranjan H Y <niranjan.hy@ti.com>
Subject: [PATCH v2 3/5] ASoC: tac5xx2-sdw: correct default volume registers
Date: Thu, 26 Nov 2026 20:20:21 +0900	[thread overview]
Message-ID: <20261126112023.29054-3-niranjan.hy@ti.com> (raw)
In-Reply-To: <20261126112023.29054-1-niranjan.hy@ti.com>

  The volume doesn't get correctly updated when the
volume in the mixer controls are updated to their default
values as the regmap cache will not do HW write leading
to unexpected behaviour. So correct them with the hardware
defaults.

Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
changes since v1:
* newly added patch

 sound/soc/codecs/tac5xx2-sdw.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/tac5xx2-sdw.c b/sound/soc/codecs/tac5xx2-sdw.c
index a541f95e4..1cea864a2 100644
--- a/sound/soc/codecs/tac5xx2-sdw.c
+++ b/sound/soc/codecs/tac5xx2-sdw.c
@@ -401,6 +401,8 @@ static const struct reg_default tac_reg_default[] = {
 	{TAC_USAGE_REG(SM, OT113), 0x0},
 	{TAC_MUTE_REG(SM, FU113, LEFT), 0x1},
 	{TAC_MUTE_REG(SM, FU113, RIGHT), 0x1},
+	{TAC_VOLUME_REG(SM, FU113, LEFT), 0x9c00},
+	{TAC_VOLUME_REG(SM, FU113, RIGHT), 0x9c00},
 	{TAC_GAIN_REG(SM, FU113, LEFT), 0x0},
 	{TAC_GAIN_REG(SM, FU113, RIGHT), 0x0},
 	{TAC_MUTE_REG(SM, FU11,  LEFT), 0x1},
@@ -417,11 +419,11 @@ static const struct reg_default tac_reg_default[] = {
 	{TAC_USAGE_REG(UAJ, OT45), 0x0},
 	{TAC_MUTE_REG(UAJ, FU41, LEFT), 0x1},
 	{TAC_MUTE_REG(UAJ, FU41, RIGHT), 0x1},
-	{TAC_VOLUME_REG(UAJ, FU41, LEFT), 0x0},
-	{TAC_VOLUME_REG(UAJ, FU41, RIGHT), 0x0},
+	{TAC_VOLUME_REG(UAJ, FU41, LEFT), 0x9c00},
+	{TAC_VOLUME_REG(UAJ, FU41, RIGHT), 0x9c00},
 	{TAC_MUTE_REG(UAJ, FU36, RIGHT), 0x1},
 	{SDW_SDCA_CTL(TAC_FUNCTION_ID_UAJ, TAC_SDCA_ENT_FU36,
-		      TAC_SDCA_CHANNEL_VOLUME, TAC_JACK_MONO_CS), 0x0},
+		      TAC_SDCA_CHANNEL_VOLUME, TAC_JACK_MONO_CS), 0x9c00},
 	{TAC_XU_BYPASS_REG(UAJ, XU42), 0x0},
 	{SDW_SDCA_CTL(TAC_FUNCTION_ID_UAJ, TAC_SDCA_ENT_CS36,
 		      TAC_SDCA_CTL_CS_SAMP_RATE_IDX, 0), 0x0},
-- 
2.34.1


  parent reply	other threads:[~2026-11-26 11:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 11:20 [PATCH v2 1/5] ASoC: tac5xx2-sdw: add tac5272 support Niranjan H Y
2026-11-26 11:20 ` [PATCH v2 2/5] ASoC: sdw_utils: " Niranjan H Y
2026-11-26 11:20 ` Niranjan H Y [this message]
2026-11-26 11:20 ` [PATCH v2 4/5] ASoC: tac5xx2-sdw: initialize volume registers to 0 dBFS on first probe Niranjan H Y
2026-11-26 11:20 ` [PATCH v2 5/5] ASoC: tac5xx2-sdw: drop DSP algo re-enable from port post-prepare Niranjan H Y

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126112023.29054-3-niranjan.hy@ti.com \
    --to=niranjan.hy@ti.com \
    --cc=baojun.xu@ti.com \
    --cc=broonie@kernel.org \
    --cc=cezary.rojewski@intel.com \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=peter.ujfalusi@linux.intel.com \
    --cc=pierre-louis.bossart@linux.dev \
    --cc=sandeepk@ti.com \
    --cc=shenghao-ding@ti.com \
    --cc=tiwai@suse.com \
    --cc=v-hampiholi@ti.com \
    --cc=yung-chuan.liao@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®