[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d1ed5bf6-24e7-53d7-512b-ceab9e0a7e3d@opensource.cirrus.com>
Date: Wed, 30 Aug 2023 10:55:51 -0500
From: Vlad Karpovich <vkarpovi@...nsource.cirrus.com>
To: Mark Brown <broonie@...nel.org>
CC: James Schulman <james.schulman@...rus.com>,
David Rhodes <david.rhodes@...rus.com>,
Richard Fitzgerald <rf@...nsource.cirrus.com>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Rob Herring <robh+dt@...nel.org>,
<alsa-devel@...a-project.org>, <patches@...nsource.cirrus.com>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>
Subject: Re: [PATCH 4/7] ASoC: cs35l45: Analog PCM Volume and Amplifier Mode
controls
On 8/28/23 14:39, Mark Brown wrote:
> On Mon, Aug 28, 2023 at 12:05:22PM -0500, Vlad Karpovich wrote:
>
>> +static int cs35l45_amplifier_mode_put(struct snd_kcontrol *kcontrol,
>> + struct snd_ctl_elem_value *ucontrol)
>> +{
>> + snd_soc_component_enable_pin_unlocked(component, "SPK");
>> + snd_soc_dapm_sync_unlocked(dapm);
>> + snd_soc_dapm_mutex_unlock(dapm);
>> + cs35l45->amplifier_mode = ucontrol->value.integer.value[0];
>> + return 0;
>> +}
> This should return 1 on change (I did see that there's some code which
> generates notifications but it would still be better to flag changes
> here, it makes review a lot easier).
Thanks. I will update patch.
Powered by blists - more mailing lists