From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Courtier-Dutton Subject: Re: Problems with a PCM driver Date: Sat, 30 Aug 2003 20:14:17 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <3F50F789.6070509@superbug.demon.co.uk> References: <200308301956.52235.adrian@mcmen.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id VAA22898 for ; Sat, 30 Aug 2003 21:06:35 +0200 In-Reply-To: <200308301956.52235.adrian@mcmen.demon.co.uk> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Adrian McMenamin Cc: ALSA development List-Id: alsa-devel@alsa-project.org Adrian McMenamin wrote: > I am writing a PCM driver for the AICA device on the Sega Dreamcast for a > 2.6.0-testX kernel. > > The driver is far from complete, but I am having various problems when I test > bits of it... > > A simple write of a file gives me this... > > /dev/snd # cat /test.txt > pcmC0D0p > ALSA sound/sh/aica.c:165: In snd_aica_playback_open > ALSA sound/sh/aica.c:80: Disabling AICA device > ALSA sound/sh/aica.c:66: Enabling AICA device > cat: write: File descriptor in bad state > > The three snd_printk messages are just what I would expect but I am not sure > why I get the message about the file descriptor. > Why don't you do instead: - aplay test.txt I don't think you can write to pcmC0D0p directly, you have to go via the alsa-lib. Cheers James ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf