All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple codecs on the same DAI
@ 2017-11-23 14:51 Ricard Wanderlof
  2017-11-24 12:39 ` Mark Brown
  0 siblings, 1 reply; 12+ messages in thread
From: Ricard Wanderlof @ 2017-11-23 14:51 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel


Hi,

I'm studying a hardware implementation where an S/PDIF receiver is on the 
same I2S connection as codec. Essentially, the S/PDIF receiver echos the 
I2S capture data from the codec unless there is a digital input signal 
which it can lock on to. For playback, the I2S output from the CPU DAI 
goes directly to the codec.

I'm a bit at a loss for how to model this in ALSA. I know it's possible to 
have multiple codecs on a card, but those cases seem to be either separate 
codecs for the left and right channels, or separate codecs for capture and 
playback. In my case the playback codec is always the same, but the 
capture codec can switch between the two avilable input methods (more or 
less automatically if the S/PDIF receiver is so configured).

>From a user perspective, it's not important that ALSA knows where the data 
is actually coming from, so if I could just register the two "codecs" on 
the same dai_link at the same time it would be fine, but I'm just 
imagining that I'll run into problems when ALSA tries to set up streams 
with two different codecs being involved. (Of course, at some level, the 
user might be interested to know the signal routing, but that can be 
determined by reading appropriate status bits in the S/PDIF receiver for 
instance using amixer controls).

Do you have any ideas about how to configure this in ALSA?

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

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

end of thread, other threads:[~2017-12-07 11:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-23 14:51 Multiple codecs on the same DAI Ricard Wanderlof
2017-11-24 12:39 ` Mark Brown
2017-11-24 14:21   ` Ricard Wanderlof
2017-11-24 18:04     ` Mark Brown
2017-12-06 12:54       ` Ricard Wanderlof
2017-12-06 13:03         ` Mark Brown
2017-12-06 14:26           ` Ricard Wanderlof
2017-12-06 15:45             ` Mark Brown
2017-12-07  7:47               ` Ricard Wanderlof
2017-12-07 11:20                 ` Mark Brown
2017-12-07 11:31                   ` Ricard Wanderlof
2017-12-07 11:36                     ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.