* problem while opening device
@ 2004-04-06 11:14 Pavana Sharma
2004-04-06 11:41 ` Florian Schmidt
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Pavana Sharma @ 2004-04-06 11:14 UTC (permalink / raw)
To: alsa-devel
Hi,
I am running a test application on my alsa driver for arm platform.Driver
is statically built.
The test application calls the snd_pcm_open.
With device hw:0,0
At the target I have created sound driver files with snddevices.sh
In /proc/asound i have the soundcard registered as card0 .
Can anyone give ideas where can be the problem ..??
this is the error msg I am getting..
----------------snip-----------
ALSA lib pcm.c:1947:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
--------------------------------
FYI ..when I use
cat test.raw > /dev/dsp
is working.
Thanks
Pavana S
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem while opening device
2004-04-06 11:14 problem while opening device Pavana Sharma
@ 2004-04-06 11:41 ` Florian Schmidt
2004-04-06 12:47 ` Pavana Sharma
2004-04-06 12:49 ` Jaroslav Kysela
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Florian Schmidt @ 2004-04-06 11:41 UTC (permalink / raw)
To: pavans; +Cc: alsa-devel
On Tue, 6 Apr 2004 16:44:56 +0530
"Pavana Sharma" <pavans@india.ti.com> wrote:
> Hi,
>
> I am running a test application on my alsa driver for arm
> platform.Driver
> is statically built.
> The test application calls the snd_pcm_open.
> With device hw:0,0
>
> At the target I have created sound driver files with
> snddevices.sh In /proc/asound i have the soundcard registered as
> card0 . Can anyone give ideas where can be the problem ..??
>
> this is the error msg I am getting..
> ----------------snip-----------
> ALSA lib pcm.c:1947:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
> --------------------------------
> FYI ..when I use
>
> cat test.raw > /dev/dsp
>
> is working.
I would think that this sounds like a version mismatch. How do i come to
this result? Well, alsamodules seem to be laoded fine [as you have
checked /proc/asound/cards]. Oss emu is working too [as you /dev/dsp
test shows]. The OSS emu [modules] don't interact with alsa-lib. But the
pcm-test program uses alsa-lib..
which version of alsa-drivers do you use [cat /proc/asound/version]?
which verison of alsa-utils do you use [aplay --version]
which version of alsa-lib do you use? [$EDITOR
/usr/include/alsa/version.h]?
Flo
P.S.: oh i just see you use ARM. I have no idea, if that platform has
specific issues, so this post could be void afterall..
--
kT
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: problem while opening device
2004-04-06 11:41 ` Florian Schmidt
@ 2004-04-06 12:47 ` Pavana Sharma
0 siblings, 0 replies; 8+ messages in thread
From: Pavana Sharma @ 2004-04-06 12:47 UTC (permalink / raw)
To: 'Florian Schmidt'; +Cc: alsa-devel
Hi,
chekout these versions ..I am using,
>> which version of alsa-drivers do you use [cat /proc/asound/version]?
Advanced Linux Sound Architecture Driver Version 1.0.2c (Thu Feb 05 15:41:49
2004 UTC).
>>which verison of alsa-utils do you use [aplay --version]
aplay: version 1.0.3 by Jaroslav Kysela <perex@suse.cz>
>>which version of alsa-lib do you use? [$EDITOR
/usr/include/alsa/version.h]?
SND_LIB_VERSION_STR "1.0.3"
Thanks
Pavana S
-----Original Message-----
From: Florian Schmidt [mailto:mista.tapas@gmx.net]
Sent: Tuesday, April 06, 2004 5:11 PM
To: pavans@india.ti.com
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [Alsa-devel] problem while opening device
On Tue, 6 Apr 2004 16:44:56 +0530
"Pavana Sharma" <pavans@india.ti.com> wrote:
> Hi,
>
> I am running a test application on my alsa driver for arm
> platform.Driver
> is statically built.
> The test application calls the snd_pcm_open.
> With device hw:0,0
>
> At the target I have created sound driver files with
> snddevices.sh In /proc/asound i have the soundcard registered as
> card0 . Can anyone give ideas where can be the problem ..??
>
> this is the error msg I am getting..
> ----------------snip-----------
> ALSA lib pcm.c:1947:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
> --------------------------------
> FYI ..when I use
>
> cat test.raw > /dev/dsp
>
> is working.
I would think that this sounds like a version mismatch. How do i come to
this result? Well, alsamodules seem to be laoded fine [as you have
checked /proc/asound/cards]. Oss emu is working too [as you /dev/dsp
test shows]. The OSS emu [modules] don't interact with alsa-lib. But the
pcm-test program uses alsa-lib..
which version of alsa-drivers do you use [cat /proc/asound/version]?
which verison of alsa-utils do you use [aplay --version]
which version of alsa-lib do you use? [$EDITOR
/usr/include/alsa/version.h]?
Flo
P.S.: oh i just see you use ARM. I have no idea, if that platform has
specific issues, so this post could be void afterall..
--
kT
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem while opening device
2004-04-06 11:14 problem while opening device Pavana Sharma
2004-04-06 11:41 ` Florian Schmidt
@ 2004-04-06 12:49 ` Jaroslav Kysela
2004-04-06 13:19 ` James Courtier-Dutton
2004-04-06 13:33 ` Clemens Ladisch
3 siblings, 0 replies; 8+ messages in thread
From: Jaroslav Kysela @ 2004-04-06 12:49 UTC (permalink / raw)
To: Pavana Sharma; +Cc: alsa-devel
On Tue, 6 Apr 2004, Pavana Sharma wrote:
> Hi,
>
> I am running a test application on my alsa driver for arm platform.Driver
> is statically built.
> The test application calls the snd_pcm_open.
> With device hw:0,0
>
> At the target I have created sound driver files with snddevices.sh
> In /proc/asound i have the soundcard registered as card0 .
> Can anyone give ideas where can be the problem ..??
>
> this is the error msg I am getting..
> ----------------snip-----------
> ALSA lib pcm.c:1947:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
> --------------------------------
/usr/share/alsa/alsa.conf is missing.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: problem while opening device
@ 2004-04-06 13:03 Gupta, Kshitij
2004-04-06 13:15 ` Jaroslav Kysela
0 siblings, 1 reply; 8+ messages in thread
From: Gupta, Kshitij @ 2004-04-06 13:03 UTC (permalink / raw)
To: 'Jaroslav Kysela', Pavana Sharma; +Cc: alsa-devel
hi Jaroslav,
This file is present. The only other thing which I wanted to bring
into your notice is that the file system we are using is a busybox file
system, with no bash. Instead it has smaller shell ash. Will that make a
difference.
And this file /usr/share/alsa/alsa.conf is only meant to be read ???
Some other points :
- Alsa driver is statically loaded into the kernel. We are also able to see
that /proc/asound directory is being populated correctly.
- the /dev/snd nodes are like this
hwC0D0 midiC0D1 midiC2D2 pcmC0D1p pcmC1D2c pcmC2D2p pcmC3D3c
hwC0D1 midiC0D2 midiC2D3 pcmC0D2c pcmC1D2p pcmC2D3c pcmC3D3p
hwC0D2 midiC0D3 midiC2D4 pcmC0D2p pcmC1D3c pcmC2D3p pcmC3D4c
hwC0D3 midiC0D4 midiC2D5 pcmC0D3c pcmC1D3p pcmC2D4c pcmC3D4p
hwC1D0 midiC0D5 midiC2D6 pcmC0D3p pcmC1D4c pcmC2D4p pcmC3D5c
hwC1D1 midiC0D6 midiC2D7 pcmC0D4c pcmC1D4p pcmC2D5c pcmC3D5p
hwC1D2 midiC0D7 midiC3D0 pcmC0D4p pcmC1D5c pcmC2D5p pcmC3D6c
hwC1D3 midiC1D0 midiC3D1 pcmC0D5c pcmC1D5p pcmC2D6c pcmC3D6p
hwC2D0 midiC1D1 midiC3D2 pcmC0D5p pcmC1D6c pcmC2D6p pcmC3D7c
hwC2D1 midiC1D2 midiC3D3 pcmC0D6c pcmC1D6p pcmC2D7c pcmC3D7p
hwC2D2 midiC1D3 midiC3D4 pcmC0D6p pcmC1D7c pcmC2D7p seq
hwC2D3 midiC1D4 midiC3D5 pcmC0D7c pcmC1D7p pcmC3D0c timer
Do some older versions use hw00 as nodes ???
- Is there a way around these aliases "hw:0,0" ....like can;t we open the
device without this alias ???
warm regards
-kshitij
-----Original Message-----
From: alsa-devel-admin@lists.sourceforge.net
[mailto:alsa-devel-admin@lists.sourceforge.net]On Behalf Of Jaroslav
Kysela
Sent: Tuesday, April 06, 2004 6:20 PM
To: Pavana Sharma
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [Alsa-devel] problem while opening device
On Tue, 6 Apr 2004, Pavana Sharma wrote:
> Hi,
>
> I am running a test application on my alsa driver for arm
platform.Driver
> is statically built.
> The test application calls the snd_pcm_open.
> With device hw:0,0
>
> At the target I have created sound driver files with snddevices.sh
> In /proc/asound i have the soundcard registered as card0 .
> Can anyone give ideas where can be the problem ..??
>
> this is the error msg I am getting..
> ----------------snip-----------
> ALSA lib pcm.c:1947:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
> --------------------------------
/usr/share/alsa/alsa.conf is missing.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: problem while opening device
2004-04-06 13:03 Gupta, Kshitij
@ 2004-04-06 13:15 ` Jaroslav Kysela
0 siblings, 0 replies; 8+ messages in thread
From: Jaroslav Kysela @ 2004-04-06 13:15 UTC (permalink / raw)
To: Gupta, Kshitij; +Cc: Pavana Sharma, alsa-devel
On Tue, 6 Apr 2004, Gupta, Kshitij wrote:
> hi Jaroslav,
> This file is present. The only other thing which I wanted to bring
> into your notice is that the file system we are using is a busybox file
> system, with no bash. Instead it has smaller shell ash. Will that make a
> difference.
No, ALSA library does not use shell.
> And this file /usr/share/alsa/alsa.conf is only meant to be read ???
It contains the definitions for the PCM device names.
> - Is there a way around these aliases "hw:0,0" ....like can;t we open the
> device without this alias ???
hw:0,0 is logical device name for alsa-lib only. The definition for hw
PCM device is stored in the alsa.conf file which should be accessible
for alsa-lib or you have to move the definition in your local ~/.asoundrc
configuration file.
Also note that you may override the location of this file with
ALSA_CONFIG_PATH environment variable. For example:
export ALSA_CONFIG_PATH=/etc/alsa/alsa.conf
To include more files:
export ALSA_CONFIG_PATH=/etc/alsa/alsa.conf:/etc/alsa/alsa1.conf
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem while opening device
2004-04-06 11:14 problem while opening device Pavana Sharma
2004-04-06 11:41 ` Florian Schmidt
2004-04-06 12:49 ` Jaroslav Kysela
@ 2004-04-06 13:19 ` James Courtier-Dutton
2004-04-06 13:33 ` Clemens Ladisch
3 siblings, 0 replies; 8+ messages in thread
From: James Courtier-Dutton @ 2004-04-06 13:19 UTC (permalink / raw)
To: pavans; +Cc: alsa-devel
Pavana Sharma wrote:
> Hi,
>
> I am running a test application on my alsa driver for arm platform.Driver
> is statically built.
> The test application calls the snd_pcm_open.
> With device hw:0,0
>
> At the target I have created sound driver files with snddevices.sh
> In /proc/asound i have the soundcard registered as card0 .
> Can anyone give ideas where can be the problem ..??
>
> this is the error msg I am getting..
> ----------------snip-----------
> ALSA lib pcm.c:1947:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
> --------------------------------
> FYI ..when I use
>
> cat test.raw > /dev/dsp
>
> is working.
>
> Thanks
> Pavana S
>
cat /proc/asound/cards
Sounds like your kernel is using low level oss drivers and not alsa for
that card.
Cheers
James
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem while opening device
2004-04-06 11:14 problem while opening device Pavana Sharma
` (2 preceding siblings ...)
2004-04-06 13:19 ` James Courtier-Dutton
@ 2004-04-06 13:33 ` Clemens Ladisch
3 siblings, 0 replies; 8+ messages in thread
From: Clemens Ladisch @ 2004-04-06 13:33 UTC (permalink / raw)
To: Pavana Sharma; +Cc: alsa-devel
Pavana Sharma wrote:
> ALSA lib pcm.c:1947:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
Please show the output of "aplay -l" and "aplay -L".
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-04-06 13:33 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-06 11:14 problem while opening device Pavana Sharma
2004-04-06 11:41 ` Florian Schmidt
2004-04-06 12:47 ` Pavana Sharma
2004-04-06 12:49 ` Jaroslav Kysela
2004-04-06 13:19 ` James Courtier-Dutton
2004-04-06 13:33 ` Clemens Ladisch
-- strict thread matches above, loose matches on Subject: below --
2004-04-06 13:03 Gupta, Kshitij
2004-04-06 13:15 ` Jaroslav Kysela
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.