From: Takashi Iwai Subject: Re: DMA strangeness? Date: Tue, 21 Feb 2006 19:11:42 +0100 Message-ID: References: <1140361953.9117.9.camel@localhost.localdomain> <49492.217.150.108.178.1140536595.squirrel@newgolddream.dyndns.info> <55534.217.150.108.178.1140544472.squirrel@newgolddream.dyndns.info> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <55534.217.150.108.178.1140544472.squirrel@newgolddream.dyndns.info> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Adrian McMenamin Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 21 Feb 2006 17:54:32 -0000 (GMT), Adrian McMenamin wrote: > > On Tue, 21 February, 2006 5:49 pm, Takashi Iwai wrote: > > > If you set INTERLEAVED flag in the pcm hardware setting, it seems not > > matching with your hardware model. > > > > > > Oddly, I set both. So I can fix that now. Not sure how I can execute two > DMA transfers though - ie one to the left buffer and one to the right. > Hmmm. There are several possibilities. One solution is to provide two individual mono streams and let alsa-lib bind them. This will require less work in the kernel driver side. The drawback is that this won't work with kernel OSS emulation. Another solution is to implement it in the driver, of course. Even if the buffer assignment on your device is exotic, you can still manage it by manually tuning the buffer pointers in hw_params callback and set proper values in ioctl(SND_PCM_IOCTL1_CHANNEL_INFO). An example is korg1212 driver. Takashi ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642