On Fri, Mar 16, 2012 at 03:53:39AM +0000, Tabi Timur-B04825 wrote:
might be a way to general the call to platform_device_register_simple. Maybe we could put "imx-pcm-audio" in the device tree?
We might end up doing that but as this adaption of the DMA controller to the audio stack isn't really hardware so much as an implementation detail of the audio stack it'd be nice to come up with some neater way of doing it, ideally not involving the platform device at all.
I'm starting to think we should have a framework thing that lets DAI drivers say they're a combined DMA/DAI driver for cases like this where there is a generic DMA device that's being shared by lots of different subsystems. It's a common situation and it makes the device registration clearer. Adding Stephen Warren as he was thinking about this stuff in the context of the nVidia drivers.