All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: Problems with a PCM driver
Date: Sat, 30 Aug 2003 20:45:21 +0100	[thread overview]
Message-ID: <3F50FED1.6020905@superbug.demon.co.uk> (raw)
In-Reply-To: <200308302022.13365.adrian@mcmen.demon.co.uk>

Adrian McMenamin wrote:
> On Saturday 30 August 2003 20:14, James Courtier-Dutton wrote:
> 
>>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
>>
> 
> Is aplay a system call?
> 
> All I get is this...
> 
> /dev/snd # aplay /test.txt
> aplay: No such file or directory
> 
> 
> Incidentally, the mini-HOWTO on the site says this:
> 
> Now you are ready to put any soundfile you want into the PCM device of the 
> first card. So try to cat any textfile (any file) to /dev/snd/pcmC0D0, like 
> this: cat <filename> > /dev/snd/pcmC0D0. 
> 
> Thanks for the help anyway :)
> 
> Adrian
> 
> 
Have you installed alsa correctly?
alsa-driver, (Kernel modules like the one you are developing)
alsa-lib, (the alsa api.)
alsa-utils, (the one with aplay in it.)
alsa-tools (other useful tools.)
alsa-oss (if you want oss emulation in userland.)

Cheers
James



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2003-08-30 19:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-30 18:56 Problems with a PCM driver Adrian McMenamin
2003-08-30 19:14 ` James Courtier-Dutton
2003-08-30 19:22   ` Adrian McMenamin
2003-08-30 19:45     ` James Courtier-Dutton [this message]
2003-08-30 19:51       ` Adrian McMenamin
2003-08-31  7:04 ` Jaroslav Kysela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F50FED1.6020905@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --cc=adrian@mcmen.demon.co.uk \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.