From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Richard Fitzgerald <rf@opensource.cirrus.com>
Cc: broonie@kernel.org, lgirdwood@gmail.com,
pierre-louis.bossart@linux.dev, yung-chuan.liao@linux.intel.com,
linux-sound@vger.kernel.org, patches@opensource.cirrus.com
Subject: Re: [PATCH 4/4] ASoC: SDCA: Pull the Q7.8 volume helpers out of soc-ops
Date: Wed, 25 Feb 2026 09:25:32 +0000 [thread overview]
Message-ID: <aZ7ADGTN7D3X9oC9@opensource.cirrus.com> (raw)
In-Reply-To: <e47acf64-15f2-4cc1-8c45-6c0a101a288f@opensource.cirrus.com>
On Tue, Feb 24, 2026 at 01:55:16PM +0000, Richard Fitzgerald wrote:
> On 23/02/2026 9:54 am, Charles Keepax wrote:
> > It is cleaner to keep the SDCA code contained and not update the core
> > code for things that are unlikely to see reuse outside of SDCA. Move the
> > Q7.8 volume helpers back into the SDCA core code.
> >
> > Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
> > ---
> > @@ -226,26 +203,17 @@ static int soc_put_volsw(struct snd_kcontrol *kcontrol,
> > struct snd_ctl_elem_value *ucontrol,
> > struct soc_mixer_control *mc, int mask, int max)
> > {
> > - unsigned int (*ctl_to_reg)(struct soc_mixer_control *, int, unsigned int, unsigned int, int);
> > struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);
> > unsigned int val1, val_mask;
> > unsigned int val2 = 0;
> > bool double_r = false;
> > int ret;
> > - if (mc->sdca_q78) {
> > - ctl_to_reg = sdca_soc_q78_ctl_to_reg;
> > - val_mask = mask;
> > - } else {
> > - ctl_to_reg = soc_mixer_ctl_to_reg;
> > - val_mask = mask << mc->shift;
> Still need this line to initialize val_mask.
Thanks Richard, will get that fixed up today.
Thanks,
Charles
next prev parent reply other threads:[~2026-02-25 9:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 9:54 [PATCH 0/4] SDCA Improvements Charles Keepax
2026-02-23 9:54 ` [PATCH 1/4] ASoC: SDCA: Add default value for mipi-sdca-function-reset-max-delay Charles Keepax
2026-02-23 9:54 ` [PATCH 2/4] ASoC: SDCA: Update counting of SU/GE DAPM routes Charles Keepax
2026-02-23 9:54 ` [PATCH 3/4] ASoC: SDCA: Improve mapping of Q7.8 SDCA volumes Charles Keepax
2026-02-23 10:12 ` Richard Fitzgerald
2026-02-23 9:54 ` [PATCH 4/4] ASoC: SDCA: Pull the Q7.8 volume helpers out of soc-ops Charles Keepax
2026-02-23 11:43 ` Richard Fitzgerald
2026-02-24 13:54 ` Richard Fitzgerald
2026-02-24 13:55 ` Richard Fitzgerald
2026-02-25 9:25 ` Charles Keepax [this message]
2026-02-24 10:58 ` [PATCH 0/4] SDCA Improvements Pierre-Louis Bossart
2026-02-27 6:37 ` 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=aZ7ADGTN7D3X9oC9@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=pierre-louis.bossart@linux.dev \
--cc=rf@opensource.cirrus.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