Linux Sound subsystem development
 help / color / mirror / Atom feed
From: "Péter Ujfalusi" <peter.ujfalusi@linux.intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	Linux-ALSA <linux-sound@vger.kernel.org>,
	Lars-Peter <lars@metafoo.de>
Subject: Re: ASoC: soc-pcm2.c ?
Date: Wed, 4 Feb 2026 12:18:13 +0200	[thread overview]
Message-ID: <235a8a0a-eb3a-4dba-adce-98f9f214976e@linux.intel.com> (raw)
In-Reply-To: <f9cfdd9c-3299-4231-8d1f-d014da49700f@sirena.org.uk>



On 03/02/2026 18:18, Mark Brown wrote:
> On Tue, Feb 03, 2026 at 09:45:50AM +0200, Péter Ujfalusi wrote:
>> I'm not sure what you mean by this, but since there are several codec
>> vendors and they produce different codecs, they do need to have
>> different drivers. Some needs more complex, some simpler and DAPM
>> provides the functionality for the developers to not care about the
>> things that are generic (sequencing, path finding, register/bit flips, etc).
> 
> AIUI the issue referred to there is on the SoC side - DPCM doesn't
> support SoC drivers as much as CODEC drivers due to the lack of
> framework features for dealing with digital parameters.

That is true, within SOF framework we have our own implementation of
passing PCM parameters along the path and modules can change those -
8KHz mono from aplay leaves the DSP as 48KHz stereo and from there it
goes to the codec.
We pigyback on DAPM/DPCM for some graph work.

>> I'm not sure if I read this right, but the proposal is to create a
>> parallel and incompatible susbsystem?
>> How would existing codec drivers be used in there?
>> The promise of ASoC is that an OEM could pick any SoC and wire it up
>> with any codec and that will 'just work'.
> 
> AIUI the idea is to only rework the SoC side.

Up to DAI, including DSPs?
SoC side is in simplest term is platform (DMA) + DAI, when it becomes
more interesting/challenging is when you have platform (DMA) + DSP + DAI
on the SoC side - and then another DSP on the codec side.

>>> If I create soc-pcm2.c, I will create sample CPU driver and its sample DTSI
>>> file, like ${LINUX}/sound/sbboc/generic/audio-graph-card2-custom-sample1.dtsi.
>>> People can easily try/test it by just including it in your DTSI file.
>>> No HW / no implementation is needed for testing. And I think it can be good
>>> sample code to create new CPU driver ?
> 
>> We use ASoC on non OF machines as well, I understand that the current
>> users will not be affected, but having a parallel ecosystem sounds a bit
>> scary proposal for ASoC to move forward?
> 
> We'd have to work out some way to flip the switch for ACPI systems at
> some point, I guess there it'd be either a command line parameter or a
> build option (which we'd probably end up with at some point for DT
> systems once things are more ready).

My concern is more of a parallel and incompatible ecosystem which might
force duplicated drivers. This is what is not clear and could cripple
the benefit of ASoC and we are back in sort of pre ASoC tightly
integrated world.

-- 
Péter


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

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-26  6:41 ASoC: soc-pcm2.c ? Kuninori Morimoto
2026-01-31 13:29 ` Mark Brown
2026-02-03  6:27   ` Kuninori Morimoto
2026-02-03 13:34     ` Pierre-Louis Bossart
2026-02-03 15:16       ` Mark Brown
2026-02-04  6:19         ` Kuninori Morimoto
2026-02-04 12:55           ` Mark Brown
2026-02-03 18:07     ` Liam Girdwood
2026-02-03 18:17       ` Mark Brown
2026-02-04  5:59         ` Kuninori Morimoto
2026-02-04  8:50         ` Takashi Iwai
2026-02-04 12:10           ` Mark Brown
2026-02-04 12:21             ` Takashi Iwai
2026-02-04 12:33               ` Jaroslav Kysela
2026-02-04 12:45                 ` Mark Brown
2026-02-03  7:45 ` Péter Ujfalusi
2026-02-03 10:11   ` Péter Ujfalusi
2026-02-04  7:28     ` Kuninori Morimoto
2026-02-04 13:07       ` Péter Ujfalusi
2026-02-03 16:18   ` Mark Brown
2026-02-04 10:18     ` Péter Ujfalusi [this message]
2026-02-04 12:39       ` 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=235a8a0a-eb3a-4dba-adce-98f9f214976e@linux.intel.com \
    --to=peter.ujfalusi@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lars@metafoo.de \
    --cc=linux-sound@vger.kernel.org \
    /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