linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Joachim Förster" <mls.JOFT@gmx.de>
To: linuxppc-embedded@ozlabs.org
Subject: Re: ml403 ac97 driver
Date: Mon, 30 Jul 2007 09:33:35 +0200	[thread overview]
Message-ID: <1185780815.5454.18.camel@localhost> (raw)
In-Reply-To: <11858308.post@talk.nabble.com>

Hi Qin Lin,

On Sun, 2007-07-29 at 22:40 -0700, Qin Lin wrote:
> # insmod ac97_bus.ko
> # insmod snd-ac97-codec.ko
> # insmod ml403_ac97cr.ko
> [   79.529114] ml403_ac97cr: remap controller memory region to 0xc500e000
> done
> [   79.611803] ml403_ac97cr: request (playback) irq 7 done
> [   79.674236] ml403_ac97cr: request (capture) irq 6 done
> [   79.784291] snd-ml403_ac97cr: write access to codec register 0x26 with
> bad value 0x800f / 32783!
> [   79.900247] snd-ml403_ac97cr: write access to codec register 0x26 with
> bad value 0xf / 15!
> [   80.004284] snd-ml403_ac97cr: write access to codec register 0x2a with
> bad value 0x2801 / 10241!
> [   80.116228] snd-ml403_ac97cr: write access to codec register 0x2a with
> bad value 0x3801 / 14337!

Completely fine.

> # ls -l /dev/snd
> crw-rw-rw-    1 root     root     116,   0 Jan  1 00:01 controlC0
> crw-rw-rw-    1 root     root     116,   4 Jan  1 00:01 hwC0D0
> crw-rw-rw-    1 root     root     116,   5 Jan  1 00:01 hwC0D1
> crw-rw-rw-    1 root     root     116,   6 Jan  1 00:01 hwC0D2
> crw-rw-rw-    1 root     root     116,   7 Jan  1 00:01 hwC0D3
> crw-rw-rw-    1 root     root     116,  24 Jan  1 00:01 pcmC0D0c
> crw-rw-rw-    1 root     root     116,  16 Jan  1 00:01 pcmC0D0p
> crw-rw-rw-    1 root     root     116,   1 Jan  1 00:01 seq
> crw-rw-rw-    1 root     root     116,  33 Jan  1 00:01 timer

Ok, should suffice. [In my case snddevices made many other device
files.]

> # aplay -D /dev/snd/pcmC0D0p
> ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM /dev/snd/pcmC0D0p

Well, I think the way you specify the device is wrong. AFAIK the -D
option only accepts names which are defined in an ALSA configuration
file (.asoundrc & friends).
Furthermore: Did you try without any device (without -D option)? The
defaults should make ALSA pick the first available sound device. At
least, while I was testing, I didn't have to specify any device.

BTW: You need to specify the (.wav) file you want to play:
# aplay music.wav
Otherwise you won't here anything ;-). Read "man aplay" !

> # ./test_sound.out /dev/snd/pcmC0D0p 
> ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM /dev/snd/pcmC0D0p
> cannot open audio device /dev/snd/pcmC0D0p (No such file or directory)

Ditto. But I haven't had a look into test_sound source yet, but it might
be the same issue.

 Joachim

  reply	other threads:[~2007-07-30  7:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <28652204.1477431184843737431.JavaMail.nabble@isper.nabble.com>
     [not found] ` <1184918815.5886.13.camel@localhost>
     [not found]   ` <2ec96d6e0707280204k50efb707q99a824c37f539309@mail.gmail.com>
2007-07-29  8:48     ` ml403 ac97 driver Joachim Förster
2007-07-29 12:50       ` aq
2007-07-30  5:40       ` Qin Lin
2007-07-30  7:33         ` Joachim Förster [this message]
2007-07-30  8:28           ` Qin Lin
2007-07-31  4:22             ` Qin Lin
2007-07-31  7:50               ` Joachim Förster
2007-07-31 11:49       ` BUG-REPORT " Qin Lin
2007-08-09 17:01         ` Joachim Förster

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=1185780815.5454.18.camel@localhost \
    --to=mls.joft@gmx.de \
    --cc=linuxppc-embedded@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).