Re: [PATCH] ASoC: Use codec mutex in dapm_set_pga()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 01, 2009 at 02:01:09PM +0300, Eero Nurkkala wrote:

> I still think the described scenario can happen. Or could
> you point where the mutex is taken earlier? If it was,
> I would've deadlocked every time....Maybe I'm missing
> some info.

Any of the control paths down from user space should be taking it.

> BTW, what's the reasoning for codec mutex anyway?

It protects all the data on the card - we've got a lot of
read/modify/write cycles going on, plus things like the power state
transitions which need to be run single threaded otherwise they'll get
therribly confused.  We could do something finer grained but it's never
been an issue.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux