[alsa-devel] [PATCH] ALSA: hda_intel: disable corb rirb when single_cmd active

Takashi Iwai tiwai at suse.de
Wed Nov 11 20:13:23 CET 2009


At Wed, 11 Nov 2009 12:05:39 -0700,
Troy Kisky wrote:
> 
> Takashi Iwai wrote:
> > Yes, in theory.  But this doesn't happen actually because you usually
> > read the response often.  The read sequence synchronizes.
> > 
> > 
> Can resume type processing send a lot of verbs without waiting for a response?

Usually not many like 256, I guess.  In doubt, give some printks and
count by yourself...

> Speaking of synchronizing, if 2 different processes simultaneously send
> different command verbs to the same codec, won't they both read the response
> of the last verb sent? Or is there locking somewhere to prevent this?

A mutex protection around the send/response pair.


Takashi


More information about the Alsa-devel mailing list