Skip to contentSkip to conversation

problem while opening device

DISCUSSION Pavana Sharma 5 participants 6 messages Apr 6, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 18 lines · On Tue, 6 Apr 2004 16:44:56 +0530 "Pavana Sharma" <[email protected]> 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

Quoted 3 lines

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..

Signature · 9 lines
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
#2 lore raw

Hi,

chekout these versions ..I am using,

Quoted 1 line
Quoted 1 line

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).

Quoted 1 line
Quoted 1 line

which verison of alsa-utils do you use [aplay --version]

aplay: version 1.0.3 by Jaroslav Kysela <[email protected]>

Quoted 1 line
Quoted 1 line

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:[email protected]]
Sent: Tuesday, April 06, 2004 5:11 PM
To: [email protected]
Cc: [email protected]
Subject: Re: [Alsa-devel] problem while opening device

Quoted 18 lines · On Tue, 6 Apr 2004 16:44:56 +0530 "Pavana Sharma" <[email protected]> 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

Quoted 3 lines

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

#3 lore raw
In reply to Pavana Sharma
Quoted 7 lines · Pavana Sharma

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

Quoted 8 lines

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 <[email protected]>
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

#4 lore raw
In reply to Pavana Sharma
Quoted 17 lines · Pavana Sharma

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

Quoted 7 lines

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

#5 lore raw
In reply to Pavana Sharma
Quoted 1 line · Pavana Sharma

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