All of lore.kernel.org
 help / color / mirror / Atom feed
* Alsa-lib problem
@ 2005-08-09 21:57 Nambiar, Anil
  2005-08-09 22:05 ` Lee Revell
  2005-08-09 22:18 ` James Courtier-Dutton
  0 siblings, 2 replies; 28+ messages in thread
From: Nambiar, Anil @ 2005-08-09 21:57 UTC (permalink / raw)
  To: 'alsa-devel@lists.sourceforge.net'

[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]

Hi,

            I am developing ALSA based sound driver for our arm based soc.
The driver is built as part of the kernel rather than as a loadable module.
If I run a simple wave player which has OSS based interface, it works fine.
Even mplayer works fine in OSS emulation mode. But if I run any native alsa
based player it gives error opening the device. For eg: running 'aplay -D
default demo.wav" give the following error: 

ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default

aplay: main:533: audio open error: No such file or directory

 

The /dev/snd/ looks like this:

drwxr-xr-x    2 root     root         4096 Aug  9  2005 .

drwxr-xr-x    6 root     root         4096 Aug  9  2005 ..

crw-rw-rw-    1 root     root     116,   0 Aug  9  2005 controlC0

crw-rw-rw-    1 root     root     116,  24 Aug  9  2005 pcmC0D0c

crw-rw-rw-    1 root     root     116,  16 Aug  9  2005 pcmC0D0p

crw-rw-rw-    1 root     root     116,   1 Aug  9  2005 seq

crw-rw-rw-    1 root     root     116,  33 Aug  9  2005 timer

 

            If I do "cat demo.wav > dev/snd/pcmC0D0p", it prints the 'open'
msg in my driver. So it seems like the devices I have created are able to
link to my driver. But using alsa-lib it doen't even print the 'open' msg in
the driver. So looks like Alsa-lib does not link to my driver. 

I would appreciate if someone could point and tell me if I'm missing
something as this is the first time I'm developing Alsa device driver. Do I
have to create any configuration files on the root file system? I'm using
the linux kernel 2.6.12.3 and the latest Alsa-lib 1.0.9. 

 

Thanks,

AniL


[-- Attachment #2: Type: text/html, Size: 5045 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread
* RE: Alsa-lib problem
@ 2005-08-09 22:47 Nambiar, Anil
  0 siblings, 0 replies; 28+ messages in thread
From: Nambiar, Anil @ 2005-08-09 22:47 UTC (permalink / raw)
  To: 'James Courtier-Dutton', Nambiar, Anil
  Cc: 'alsa-devel@lists.sourceforge.net'

Hi,
 Thanks for the reply. I tried running speaker-test with those parameters
and it gave this dump.
speaker-test 0.0.8
Playback device is plughw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM plughw:0,0
Playback open error: -2,No such file or directory
speaker-test: conf.c: 3095: snd_config_update_free: Assertion `update->count
> 0
 && update->finfo' failed.
Aborted

I'll create a config file, but not sure if that would work. I tried using
strace, but it gives some syscall err!!

Thanks,
AniL


-----Original Message-----
From: James Courtier-Dutton [mailto:James@superbug.demon.co.uk] 
Sent: Tuesday, August 09, 2005 3:19 PM
To: Nambiar, Anil
Cc: 'alsa-devel@lists.sourceforge.net'
Subject: Re: [Alsa-devel] Alsa-lib problem

Nambiar, Anil wrote:
> Hi,
> 
>             I am developing ALSA based sound driver for our arm based soc.
> The driver is built as part of the kernel rather than as a loadable
module.
> If I run a simple wave player which has OSS based interface, it works
fine.
> Even mplayer works fine in OSS emulation mode. But if I run any native
alsa
> based player it gives error opening the device. For eg: running 'aplay -D
> default demo.wav" give the following error: 
> 
> ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default
> 
> aplay: main:533: audio open error: No such file or directory
> 

You probably do not have a "default" device defined for your card due to 
the lack of a config file.
But, in order to test it, even though you don't have a config file, try
speaker-test -c2 -Dplughw:0,0

if that works, all you then need is a config file for your card.
cat /proc/asound/cards  and note down whatever is in the [....    ] bit.
Here I get:
0 [Audigy2        ]: Audigy2 - Audigy 4 PRO [SB0380]
                      Audigy 4 PRO [SB0380] (rev.4, serial:0x20071102) 
at 0x9800, irq 20


So I have an "Audigy2" file in /usr/share/alsa/cards
You will need to create one for your card.




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 28+ messages in thread
* RE: Alsa-lib problem
@ 2005-08-10  0:44 Nambiar, Anil
  0 siblings, 0 replies; 28+ messages in thread
From: Nambiar, Anil @ 2005-08-10  0:44 UTC (permalink / raw)
  To: 'James Courtier-Dutton', Nambiar, Anil
  Cc: 'alsa-devel@lists.sourceforge.net'

I was able to get it running. Had to export
ALSA_CONFIG_PATH=/etc/alsa/alsa.conf. It would be nice if this is documented
somewhere. 


Thanks,
AniL

-----Original Message-----
From: James Courtier-Dutton [mailto:James@superbug.demon.co.uk] 
Sent: Tuesday, August 09, 2005 3:19 PM
To: Nambiar, Anil
Cc: 'alsa-devel@lists.sourceforge.net'
Subject: Re: [Alsa-devel] Alsa-lib problem

Nambiar, Anil wrote:
> Hi,
> 
>             I am developing ALSA based sound driver for our arm based soc.
> The driver is built as part of the kernel rather than as a loadable
module.
> If I run a simple wave player which has OSS based interface, it works
fine.
> Even mplayer works fine in OSS emulation mode. But if I run any native
alsa
> based player it gives error opening the device. For eg: running 'aplay -D
> default demo.wav" give the following error: 
> 
> ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default
> 
> aplay: main:533: audio open error: No such file or directory
> 

You probably do not have a "default" device defined for your card due to 
the lack of a config file.
But, in order to test it, even though you don't have a config file, try
speaker-test -c2 -Dplughw:0,0

if that works, all you then need is a config file for your card.
cat /proc/asound/cards  and note down whatever is in the [....    ] bit.
Here I get:
0 [Audigy2        ]: Audigy2 - Audigy 4 PRO [SB0380]
                      Audigy 4 PRO [SB0380] (rev.4, serial:0x20071102) 
at 0x9800, irq 20


So I have an "Audigy2" file in /usr/share/alsa/cards
You will need to create one for your card.




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2005-08-25  8:52 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09 21:57 Alsa-lib problem Nambiar, Anil
2005-08-09 22:05 ` Lee Revell
2005-08-09 22:18 ` James Courtier-Dutton
2005-08-10  9:48   ` Takashi Iwai
2005-08-15  3:06     ` Compulab sound device Chow Raymond
2005-08-15  7:41       ` Clemens Ladisch
2005-08-15  8:39         ` Chow Raymond
2005-08-15 11:32           ` Clemens Ladisch
2005-08-16  7:04             ` Chow Raymond
2005-08-16  7:22               ` Clemens Ladisch
2005-08-16 12:58                 ` Chow Raymond
2005-08-17 13:40                   ` Clemens Ladisch
2005-08-19 12:47                     ` Chow Raymond
2005-08-19 13:17                       ` Clemens Ladisch
2005-08-19 13:24                       ` Liam Girdwood
2005-08-19 13:51                         ` Chow Raymond
2005-08-19 14:10                           ` Liam Girdwood
2005-08-22  7:06                             ` Chow Raymond
2005-08-23  3:57                               ` Lee Revell
2005-08-23  9:13                                 ` Takashi Iwai
2005-08-23  9:49                                   ` Chow Raymond
2005-08-24 10:32                                   ` Chow Raymond
2005-08-24 12:04                                     ` Takashi Iwai
2005-08-25  1:45                                       ` Chow Raymond
2005-08-25  8:38                                         ` Clemens Ladisch
2005-08-25  8:52                                           ` Chow Raymond
  -- strict thread matches above, loose matches on Subject: below --
2005-08-09 22:47 Alsa-lib problem Nambiar, Anil
2005-08-10  0:44 Nambiar, Anil

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.