From: Takashi Iwai Subject: Re: Re: [Openvortex-dev] aplay - How to use device 3 of card 0 ? Date: Wed, 09 Mar 2005 10:14:14 +0100 Message-ID: References: <422EBF35.708@netvigator.com> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII In-Reply-To: <422EBF35.708@netvigator.com> 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: Raymond Cc: openvortex-dev@nongnu.org, alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 09 Mar 2005 17:17:41 +0800, Raymond wrote: > > > > 2) How did you perform your "WT DMA" test ? > > > Using: > > aplay -d hw:0,1 test.wav > > > The result for me was that aplay did newer finish, because data was > > never being transfered. After some time it timed out with an error. > > The correct syntax should be "aplay -D hw:0,3 piano.wav" Ah damn, of course it must be -D :) > ioctl(4, 0x400c4150, 0xbff092b0) = -1 EIO (Input/output error) > write(2, "aplay: pcm_write:1146: ", 23aplay: pcm_write:1146: ) = 23 > write(2, "write error: Input/output error", 31write error: Input/output > error) = 31 > write(2, "\n", 1 > ) = 1 > exit_group(1) = ? > > > I can only hear "hmm" sound from the speakers until the program abort. > 1) Do strace indicate "data was never being transfered" ? I don't know whether it's "never", but at least the transfer was aborted after a certain amount of write. Usually -EIO means that DMA isn't working properly. If you compile with CONFIG_SND_DEBUG, you might see the message "playback drain error (DMA or IRQ trouble?)" from kernel. Takashi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click