[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <de0e8a5b-8c2a-ee04-856f-f0d678a3c66b@ti.com>
Date: Thu, 20 Feb 2020 12:46:57 -0600
From: Dan Murphy <dmurphy@...com>
To: Mark Brown <broonie@...nel.org>
CC: <lgirdwood@...il.com>, <perex@...ex.cz>, <tiwai@...e.com>,
<alsa-devel@...a-project.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ASoC: tas2562: Add support for digital volume control
Mark
On 2/20/20 12:45 PM, Mark Brown wrote:
> On Thu, Feb 20, 2020 at 11:27:21AM -0600, Dan Murphy wrote:
>
>> + /* Set the Digital volume to -110dB */
>> + ret = snd_soc_component_write(component, TAS2562_DVC_CFG4, 0x00);
>> + if (ret)
>> + return ret;
>> + ret = snd_soc_component_write(component, TAS2562_DVC_CFG3, 0x00);
>> + if (ret)
>> + return ret;
>> + ret = snd_soc_component_write(component, TAS2562_DVC_CFG2, 0x0d);
>> + if (ret)
>> + return ret;
>> + ret = snd_soc_component_write(component, TAS2562_DVC_CFG1, 0x43);
>> + if (ret)
>> + return ret;
> Is there a reason not to use the chip default here? Otherwise this
> looks good.
Chip default is set to 0dB full blast+ 0x40400000. This sets the volume
to -110dB.
I have the values backwards. CFG4 should b 0x43 and CFG3 should be 0x0d
and CFG1&2 should be 0.
I will resend v2 with this fixed.
Dan
Powered by blists - more mailing lists