16 Dec
2014
16 Dec
'14
12:42 p.m.
On Mon, Dec 15, 2014 at 06:45:37PM -0800, Dylan Reid wrote:
I was thinking of making a separate PCM device. The odd things are that it would have to originate from soc/codecs, the codec would own the codec and cpu end of the link, and the hw_ptr position would need to be queried over SPI. But it would make userspace access to it more standard looking.
That's all totally fine from a framework point of view, if the data comes from the CODEC with no SoC side involvement other than the control interface bus then it's a good way to model things. The component model should make this a more natural fit than it is currently, you can just add a DAI to the CODEC device.