From: Takashi Iwai Subject: Re: Q1: Linked streams and drivers Date: Thu, 01 Feb 2007 15:03:46 +0100 Message-ID: References: <45C15EF5.5010904@audioscience.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: In-Reply-To: <45C15EF5.5010904@audioscience.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Eliot Blennerhassett Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Thu, 01 Feb 2007 16:31:01 +1300, Eliot Blennerhassett wrote: > > Greetings, > > I know there is some mechanism for linking streams together so that a > single trigger command starts/stops all streams. > > Is the underlying driver notified of the link? and if so how? A PCM substream has a linked list of link members (via struct snd_pcm_group). The macro, snd_pcm_group_for_each(), gives you the loop for checking each list memeber. When a driver supports the hardware-linked substreams, it needs to check whether multiple streams exist in that substream. Set snd_pcm_trigger_done() at each stream, and trigger once. You can see examples in the driver implementations. Grep snd_pcm_group_for_each() under alsa-kernel/pci directory. Takashi ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642