From: Mark Brown <broonie@kernel.org>
To: Vlad Karpovich <vkarpovi@opensource.cirrus.com>
Cc: James Schulman <james.schulman@cirrus.com>,
David Rhodes <david.rhodes@cirrus.com>,
Richard Fitzgerald <rf@opensource.cirrus.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Rob Herring <robh+dt@kernel.org>,
alsa-devel@alsa-project.org, patches@opensource.cirrus.com,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
RicardoRivera-Matosricardo.rivera-matos@cirrus.com
Subject: Re: [PATCH 4/7] ASoC: cs35l45: Analog PCM Volume and Amplifier Mode controls
Date: Mon, 28 Aug 2023 20:39:16 +0100 [thread overview]
Message-ID: <ZOz35ABAsLYROJ4c@finisterre.sirena.org.uk> (raw)
In-Reply-To: <20230828170525.335671-4-vkarpovi@opensource.cirrus.com>
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
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).
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2023-08-28 19:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-28 17:05 [PATCH 1/7] ASoC: cs35l45: Add support for Chip ID 0x35A460 Vlad Karpovich
2023-08-28 17:05 ` [PATCH 2/7] ASoC: cs35l45: Fix "Dead assigment" warning Vlad Karpovich
2023-08-29 10:04 ` Charles Keepax
2023-08-28 17:05 ` [PATCH 3/7] ASoC: cs35l45: Checks index of cs35l45_irqs[] Vlad Karpovich
2023-08-29 10:07 ` Charles Keepax
2023-08-29 18:17 ` Vlad Karpovich
2023-08-28 17:05 ` [PATCH 4/7] ASoC: cs35l45: Analog PCM Volume and Amplifier Mode controls Vlad Karpovich
2023-08-28 19:39 ` Mark Brown [this message]
2023-08-30 15:55 ` Vlad Karpovich
2023-08-28 17:05 ` [PATCH 5/7] ASoC: cs35l45: Rename DACPCM1 Source control Vlad Karpovich
2023-08-29 10:08 ` Charles Keepax
2023-08-28 17:05 ` [PATCH 6/7] ASoC: cs35l45: Connect DSP to the monitoring signals Vlad Karpovich
2023-08-29 10:11 ` Charles Keepax
2023-08-28 17:05 ` [PATCH 7/7] ASoC: cs35l45: Add AMP Enable Switch control Vlad Karpovich
2023-08-29 10:13 ` Charles Keepax
2023-08-29 10:04 ` [PATCH 1/7] ASoC: cs35l45: Add support for Chip ID 0x35A460 Charles Keepax
2023-08-29 19:12 ` (subset) " Mark Brown
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=ZOz35ABAsLYROJ4c@finisterre.sirena.org.uk \
--to=broonie@kernel.org \
--cc=RicardoRivera-Matosricardo.rivera-matos@cirrus.com \
--cc=alsa-devel@alsa-project.org \
--cc=david.rhodes@cirrus.com \
--cc=devicetree@vger.kernel.org \
--cc=james.schulman@cirrus.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=rf@opensource.cirrus.com \
--cc=robh+dt@kernel.org \
--cc=tiwai@suse.com \
--cc=vkarpovi@opensource.cirrus.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®