[alsa-devel] Separate dma driver for cpu_dais

jassi brar jassisinghbrar at gmail.com
Thu Feb 18 10:42:26 CET 2010


On Thu, Feb 18, 2010 at 6:35 PM, Mark Brown
<broonie at opensource.wolfsonmicro.com> wrote:
> On Thu, Feb 18, 2010 at 11:14:57AM +0900, jassi brar wrote:
>> On Wed, Feb 17, 2010 at 10:14 PM, Mark Brown
>> > On Wed, Feb 17, 2010 at 09:15:56PM +0900, jassi brar wrote:
>
>> >> The workaround to enable a cpu_dai to be used in multiple dai_links isn't
>
>> > What workaround?
>
>> The same as that for codec_dai.
>> cpu_dai is used exact the same way as codec_dai except for runtime
>> pointer assignment in soc_pcm_open as i mentioned already.
>
> Could you please be more specific about what the workaround you are
> referring to is?  I'm genuinely not clear what you mean here.
In order for a codec_dai to be used in more than one dai_link
I check for its 'active' counter and call shutdown, startup, mute
and schedule_delayed_work only if no other dai_link is
actively using that codec_dai.

>> So, it seems, the member 'struct snd_pcm_runtime *'  of 'struct snd_soc_dai'
>> is mostly unused. We can easily move it to 'struct snd_soc_dai_link' or
>> even drop it altogether to reduce redundancy(I prefer).
> May as well drop it once the Atmel drivers no longer need it.
Ok, will send a patch tomorrow for just that.


More information about the Alsa-devel mailing list