16 Jul
2013
16 Jul
'13
4:31 p.m.
Hi Mark, Liam,
I'm trying to find a sane solution for systems that have multiple Codecs connected to the same CPU DAI. An example would be a codec that receives the same I2S stream as a S/PDIF transceiver, and which is in fact connected to the very same bus in hardware.
Currently, I'm setting up two DAI links in such cases, and userspace has to open both subdevices and issue hw_params calls to each of them in order to set up the hardware correctly.
This is cumbersome of course, and I wonder how the core could be augmented in order to handle such cases correctly. Ideally, it should only expose one PCM interface and handle a list of Codecs in the back.
Or am I unaware of an existing feature?
Thanks, Daniel