From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda_intel: disable corb rirb when single_cmd active Date: Wed, 11 Nov 2009 20:13:23 +0100 Message-ID: References: <1257276157-7164-1-git-send-email-troy.kisky@boundarydevices.com> <4AF1D9D0.9080007@boundarydevices.com> <4AF32A8B.4050404@boundarydevices.com> <4AF4C6E7.8010807@boundarydevices.com> <4AF86F3F.9020709@boundarydevices.com> <4AF9D7EF.6000800@boundarydevices.com> <4AFB0B03.1010303@boundarydevices.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 00FF724591 for ; Wed, 11 Nov 2009 20:13:26 +0100 (CET) In-Reply-To: <4AFB0B03.1010303@boundarydevices.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Troy Kisky Cc: pshou@realtek.com.tw, alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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