public inbox for linux-sound@vger.kernel.org
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Zhang Yi <zhangyi@everest-semi.com>
Cc: broonie@kernel.org, tiwai@suse.com, linux-sound@vger.kernel.org,
	peter.ujfalusi@linux.intel.com, yung-chuan.liao@linux.intel.com,
	ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com
Subject: Re: [PATCH v6 3/5] ASoC: es9356-sdca: Add ES9356 SDCA driver
Date: Thu, 9 Apr 2026 11:01:52 +0100	[thread overview]
Message-ID: <add5EKeUYvmN7syg@opensource.cirrus.com> (raw)
In-Reply-To: <20260409021255.1006-4-zhangyi@everest-semi.com>

On Thu, Apr 09, 2026 at 10:12:53AM +0800, Zhang Yi wrote:
> This is the codec driver for es9356-sdca.
> 
> Signed-off-by: Zhang Yi <zhangyi@everest-semi.com>
> ---
> +
> +#define SOC_SINGLE_Q78_TLV(xname, xreg, xmin, xmax, xshift, tlv_array) { \
> +	.iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
> +	.name = xname, \
> +	.access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_READWRITE, \
> +	.tlv.p = (tlv_array), \
> +	.info = snd_soc_info_volsw, .get = sdca_asoc_q78_get_volsw, .put = sdca_asoc_q78_put_volsw, \
> +	.private_value = (unsigned long)&(struct soc_mixer_control) { \
> +		.reg = (xreg), .rreg = (xreg), \
> +		.min = (xmin), .max = (xmax), \
> +		.platform_max = xmax - xmin, \
> +		.shift = xshift, .rshift = xshift,\
> +		.sign_bit = 15 \
> +	} \
> +}

Use SDCA_SINGLE_Q78_TLV from include/sound/sdca_asoc.h

Thanks,
Charles

  reply	other threads:[~2026-04-09 10:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-09  2:12 [PATCH v6 0/5] Add es9356 focused SoundWire CODEC Zhang Yi
2026-04-09  2:12 ` [PATCH v6 1/5] ASoC: sdw_utils: add soc_sdw_es9356 Zhang Yi
2026-04-09  2:12 ` [PATCH v6 2/5] ASoC: sdw_utils: add ES9356 in codec_info_list Zhang Yi
2026-04-09  2:12 ` [PATCH v6 3/5] ASoC: es9356-sdca: Add ES9356 SDCA driver Zhang Yi
2026-04-09 10:01   ` Charles Keepax [this message]
2026-04-09 20:11   ` Mark Brown
2026-04-09  2:12 ` [PATCH v6 4/5] ASoC: Intel: soc-acpi: arl: Add es9356 support Zhang Yi
2026-04-09  2:12 ` [PATCH v6 5/5] ASoC: Intel: sof_sdw: add " Zhang Yi

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=add5EKeUYvmN7syg@opensource.cirrus.com \
    --to=ckeepax@opensource.cirrus.com \
    --cc=broonie@kernel.org \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=peter.ujfalusi@linux.intel.com \
    --cc=ranjani.sridharan@linux.intel.com \
    --cc=tiwai@suse.com \
    --cc=yung-chuan.liao@linux.intel.com \
    --cc=zhangyi@everest-semi.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