On 16.07.2013 18:20, Mark Brown wrote:
On Tue, Jul 16, 2013 at 04:31:01PM +0200, Daniel Mack wrote:
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?
No, no feature here. Off the top of my head I'd suggest soc-pcm plus a virtual DAI for the second link.
That would still require userspace to open and configure both subdevices, right?
Do you think it's a good idea to teach DAI links support for more than one codec? At a glance, it seems quite possible: the modes and rates would be limited down to the intersection of those of each codec, and the PCM callbacks would be relayed to all codecs in the list.
Thanks, Daniel