On Sun, Dec 04, 2011 at 11:22:22PM -0800, Patrick Lai wrote:
My problem has more to do with ability to form PCM device at run-time by grouping available slimbus ports at the CPU side and CODEC side after knowing number of channels required. Furthermore, the CODEC I am working on does not allow all mic inputs going to all audio interface capture ports. Unless application can provide the mic input it is interested before initiation of capture stream, it is hard to utilize very slimbus port on the CODEC. Do you have work in progress code on gitorious.org? Perhaps, I can take a look to understand more about your proposed design and see what I can leverage.
You get pretty much exactly the same problem on PCM links using TDM - you can get a single link which you can combine into groups of channels dynamically. For example, you might use two channels for speaker and two for headphones or you might use those four plus another two for 5.1 speaker all depending on use case.