From: Takashi Iwai Subject: Re: Does it need full-duplex to use snd_pcm_link ? Date: Wed, 20 Sep 2006 11:55:51 +0200 Message-ID: References: <20060915145400.57815d0c@localhost.localdomain> <20060915163308.40523955@localhost.localdomain> 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: <20060915163308.40523955@localhost.localdomain> 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: Junji Umeno Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 15 Sep 2006 16:33:08 +0900, Junji Umeno wrote: > > > > On Fri, 15 Sep 2006 14:54:00 +0900 > Junji Umeno wrote: > > > I failed to record with the example code 'latency.c' written in the doxygen manual. > > When it plays back and records at the same time, using snd_pcm_link, > > should the hardware be implemented as full-duplex of i/o? > > As previous comments pointed in this lists, > > some buffer length data are written into a playback handler, > > and then reading starts. > > They said, it should be needed to have 4096 bytes written in the write buffer. > > But in my case, > > 'writei' continues to return EAGAIN if more than 64byte are to be written. > > > > Any comment is welcom. > > -- > > UMENO, Junji > > ElmicWescom, Inc. > > > > Does it depend on the device's read/write buffer size, wchich is set > by 'snd_pcm_hw_params_set_rate' ? You man snd_pcm_hw_params_set_buffer_size() ? Yes, the behavior is releated with buffer and period sizes. Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV