From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: Haidar Lee <haidar.lee@adlinktech.com>,
<linux-sound@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Shenghao Ding <shenghao-ding@ti.com>,
"Kevin Lu" <kevin-lu@ti.com>, Baojun Xu <baojun.xu@ti.com>,
Sen Wang <sen@ti.com>, Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [PATCH 3/3] ASoC: tas2562: Fix default digital volume
Date: Thu, 16 Jul 2026 10:32:09 +0200 [thread overview]
Message-ID: <38a6e62d-eaae-4c9a-96b2-4d1bfb8be438@intel.com> (raw)
In-Reply-To: <20260715-asoc-tas2562-put-retval-v1-3-97bf467c924e@kernel.org>
On 7/15/2026 10:18 PM, Mark Brown wrote:
> The tas2562 digital volume is spread over four registers and is implemented
> as lookups into a table so the driver stores the value for the userspace
> control in the driver data. This defaults to 0 due to kzalloc() but the
> register default is 0x40400000 which maps onto something a bit over the
> largest value defined in the lookup table. While it's not an exact match
> update the default to the largest value, avoiding user surprise due to a
> sudden change on first write.
>
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
> sound/soc/codecs/tas2562.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/sound/soc/codecs/tas2562.c b/sound/soc/codecs/tas2562.c
> index 9b863b000470..5fdbfec8ce3f 100644
> --- a/sound/soc/codecs/tas2562.c
> +++ b/sound/soc/codecs/tas2562.c
> @@ -738,6 +738,8 @@ static int tas2562_probe(struct i2c_client *client)
> data->client = client;
> data->dev = &client->dev;
> data->model_id = (uintptr_t)i2c_get_match_data(client);
> + /* Register default is 0x40400000, this is closest */
> + data->volume_lvl = (ARRAY_SIZE(float_vol_db_lookup) - 1) * 2;
Sounds like bug fix to me and a Fixes: candidate. That's a nitpick
though and not a blocker.
next prev parent reply other threads:[~2026-07-16 8:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 20:18 [PATCH 0/3] ASoC: tas2562: Volume setting fixes Mark Brown
2026-07-15 20:18 ` [PATCH 1/3] ASoC: tas2562: Validate values for volume writes Mark Brown
2026-07-15 20:18 ` [PATCH 2/3] ASoC: tas2562: Fix event generation for volume control Mark Brown
2026-07-15 20:18 ` [PATCH 3/3] ASoC: tas2562: Fix default digital volume Mark Brown
2026-07-16 8:32 ` Cezary Rojewski [this message]
2026-07-16 8:31 ` [PATCH 0/3] ASoC: tas2562: Volume setting fixes Cezary Rojewski
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=38a6e62d-eaae-4c9a-96b2-4d1bfb8be438@intel.com \
--to=cezary.rojewski@intel.com \
--cc=baojun.xu@ti.com \
--cc=broonie@kernel.org \
--cc=haidar.lee@adlinktech.com \
--cc=kevin-lu@ti.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=sen@ti.com \
--cc=shenghao-ding@ti.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