Linux Sound subsystem development
 help / color / mirror / Atom feed
From: <qianghua.wang@senarytech.com>
To: "'Pierre-Louis Bossart'" <pierre-louis.bossart@linux.dev>,
	"'Mark Brown'" <broonie@kernel.org>
Cc: <linux-sound@vger.kernel.org>, <alsa-devel@alsa-project.org>,
	"'Liam Girdwood'" <lgirdwood@gmail.com>,
	"'Jaroslav Kysela'" <perex@perex.cz>,
	"'Takashi Iwai'" <tiwai@suse.com>,
	"'Cezary Rojewski'" <cezary.rojewski@intel.com>,
	"'Peter Ujfalusi'" <peter.ujfalusi@linux.intel.com>,
	"'Kai Vehmanen'" <kai.vehmanen@linux.intel.com>,
	"'bo liu'" <bo.liu@senarytech.com>
Subject: repl: [PATCH v2 1/3] ASoC: codecs: add SN622x SDCA SoundWire codec support
Date: Wed, 2 Dec 2026 10:07:24 +0800	[thread overview]
Message-ID: <00e901dd8201$e03b6530$a0b22f90$@senarytech.com> (raw)
In-Reply-To: <59f99b1e-b1c5-4953-aab5-c6eb3e869f80@linux.dev>

Hi Bossart:
	Thanks — agreed the SN622x driver repeated too much of the SN624x SDCA scaffolding.
SN6220/SN6224 and SN624x are different codecs (622x: speaker + DMIC only, no jack; 624x: jack + speaker + DMIC). They stay as separate drivers; we are not merging them.
Next revision we will add a small senary-sdca-sdw-common helper layer and refactor SN622x onto it. SN624x will stay unchanged in that series so we do not need to re-test 624x; migrating 624x to the same helpers can be a follow-up if you want.

SN622x also picks up the review fixes (MBQ, re-attach io_init, bus_recover, PM, etc.).

Thanks,
Qianghua

-----Original-----
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev> 
Sent: 1:27 12/2 2026
To: Qianghua Wang <qianghua.wang@senarytech.com>; Mark Brown <broonie@kernel.org>
Cc: linux-sound@vger.kernel.org; alsa-devel@alsa-project.org; Liam Girdwood <lgirdwood@gmail.com>; Jaroslav Kysela <perex@perex.cz>; Takashi Iwai <tiwai@suse.com>; Cezary Rojewski <cezary.rojewski@intel.com>; Peter Ujfalusi <peter.ujfalusi@linux.intel.com>; Kai Vehmanen <kai.vehmanen@linux.intel.com>; bo liu <bo.liu@senarytech.com>
Subject: Re: [PATCH v2 1/3] ASoC: codecs: add SN622x SDCA SoundWire codec support



On 12/1/26 3:56 AM, Qianghua Wang wrote:
> Add the snd-soc-sn622x-sdca SoundWire codec driver for Senary SN6220 
> and
> SN6224 SDCA devices (speaker SmartAmp + internal DMIC; no headset jack 
> on the codec; HP/SPK analog mux is board-level).
> 
> PDE and FU paths follow the SN624x SDCA pattern (sdca_asoc, DAPM widgets).
> Bring-up only registers stay as small OEM fallbacks when ACPI init 
> tables are absent; there are no debug mixer controls.
> 
> Signed-off-by: Qianghua Wang <qianghua.wang@senarytech.com>

a lot of the code is copy-pasted from sn624x-sdca-sdw.c, with only an s/642/622/ change and the jack support removed.

Can you extract common parts and limit the duplication? It'd make the code easier to review...



  reply	other threads:[~2026-12-02  2:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  2:56 [PATCH v2 0/3] ASoC: add Senary SN622x SDCA SoundWire support Qianghua Wang
2026-12-01  2:56 ` [PATCH v2 1/3] ASoC: codecs: add SN622x SDCA SoundWire codec support Qianghua Wang
2026-12-01  3:23   ` sashiko-bot
2026-12-01 17:26   ` Pierre-Louis Bossart
2026-12-02  2:07     ` qianghua.wang [this message]
2026-12-01  2:56 ` [PATCH v2 2/3] ASoC: sdw_utils: add SN622x codec_info and DAPM hooks Qianghua Wang
2026-12-01  3:08   ` sashiko-bot
2026-12-01  2:56 ` [PATCH v2 3/3] ASoC: Intel: soc-acpi: add SN622x PTL/NVL SoundWire machines Qianghua Wang
2026-12-01  3:06   ` sashiko-bot

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='00e901dd8201$e03b6530$a0b22f90$@senarytech.com' \
    --to=qianghua.wang@senarytech.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=bo.liu@senarytech.com \
    --cc=broonie@kernel.org \
    --cc=cezary.rojewski@intel.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=peter.ujfalusi@linux.intel.com \
    --cc=pierre-louis.bossart@linux.dev \
    --cc=tiwai@suse.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