linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] sound: ASoC: multiple DAIs/codecs on single audio stream
@ 2013-04-16 17:45 Sebastian Hesselbarth
  2013-04-17 14:13 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Hesselbarth @ 2013-04-16 17:45 UTC (permalink / raw)
  To: alsa-devel
  Cc: Russell King, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, LKML

Hi,

I am rewriting Marvell Kirkwood/Dove audio driver and I am having
a hard time to match the controllers features to ASoC API.

The controller has a dma controller for one playback buffer. It can
play the stream to both I2S and SPDIF interfaces with independent mute.

Now, for example, I have a board with i2s codec and spdif tx diode
connected to the above controller:

DMA (platform) -+-> I2S (dai) ----> I2S_Codec (codec)
                 |
                 +-> SPDIF (dai) --> SPDIF_TX (codec)

Is there any way in the current ASoC API to have the above setup?

I tried to attach two codecs to a single DAI and that will already
create two playback streams with two buffers. I guess it will also
happen if I have two DAIs connected to the same platform driver?

For an API for SoC audio, shouldn't there be some relation between
platform, DAI, and codec, e.g.:
- a platform represents a single audio stream buffer
- a platform can be attached to one or more DAIs,
- a DAI can be attached to one codec only

Regards,
   Sebastian

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] sound: ASoC: multiple DAIs/codecs on single audio stream
  2013-04-16 17:45 [RFC] sound: ASoC: multiple DAIs/codecs on single audio stream Sebastian Hesselbarth
@ 2013-04-17 14:13 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-04-17 14:13 UTC (permalink / raw)
  To: Sebastian Hesselbarth
  Cc: alsa-devel, Russell King, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, LKML

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

On Tue, Apr 16, 2013 at 07:45:08PM +0200, Sebastian Hesselbarth wrote:

> The controller has a dma controller for one playback buffer. It can
> play the stream to both I2S and SPDIF interfaces with independent mute.

> Now, for example, I have a board with i2s codec and spdif tx diode
> connected to the above controller:

> DMA (platform) -+-> I2S (dai) ----> I2S_Codec (codec)
>                 |
>                 +-> SPDIF (dai) --> SPDIF_TX (codec)

> Is there any way in the current ASoC API to have the above setup?

As discussed on IRC this is probably best represented using soc-pcm at
the minute.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-17 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-16 17:45 [RFC] sound: ASoC: multiple DAIs/codecs on single audio stream Sebastian Hesselbarth
2013-04-17 14:13 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).