Discussion:
[linux-audio-user] No state is present for card
Denis de Leeuw Duarte
2003-05-24 16:12:00 UTC
Permalink
Hello again,

By the looks of it, the new alsa 0.9.3c snd-usb-audio driver loads correctly
with my Quattro, but I get this message when running the alsasound script:
"No state is present for card Quattro". I have the impression that the
documentation on the alsa site for .asoundrc doesn't really cover the newer
asound.state file, is that correct? For instance, alsa looks for a
state.Quatto{} clause in asound.state, but I can't find anything in the
documentation about this state clause. I don't really know what to put in
it. I tried Patrick Shirkey's .asoundrc file from the Wiki but that doesn't
work. Any ideas?

Thanks in advance and regards,

Denis de Leeuw Duarte

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
Clemens Ladisch
2003-05-24 18:19:00 UTC
Permalink
Post by Denis de Leeuw Duarte
By the looks of it, the new alsa 0.9.3c snd-usb-audio driver loads correctly
"No state is present for card Quattro".
"State" means the current mixer settings, but the Quattro doesn't have any
mixer elements. The message is misleading in this case.


HTH
Clemens
Denis de Leeuw Duarte
2003-05-24 19:30:00 UTC
Permalink
Post by Clemens Ladisch
"State" means the current mixer settings, but the Quattro doesn't have any
mixer elements. The message is misleading in this case.
Ah thanks! Well it is working now!!!! I've been struggling with this device
for a week. First I had to return it to the store because they gave me the
wrong power supply and probably a defective unit. I'm very glad it works
now. Except for the fact that I can't use the device as a normal user (and
yes I am in the audio group) but this is probably so trivial I won't bother
you with it (yet;-)

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
iriXx
2003-05-25 01:37:01 UTC
Permalink
Post by Denis de Leeuw Duarte
Post by Clemens Ladisch
"State" means the current mixer settings, but the Quattro doesn't have any
mixer elements. The message is misleading in this case.
Ah thanks! Well it is working now!!!! I've been struggling with this
device for a week. First I had to return it to the store because they
gave me the wrong power supply and probably a defective unit. I'm very
glad it works now. Except for the fact that I can't use the device as a
normal user (and yes I am in the audio group) but this is probably so
trivial I won't bother you with it (yet;-)
after you've modprobed you'll need to do
chmod a+rwx /dev/dsp /dev/mixer /dev/sequencer /dev/midi

i find i need to do this manually each time (okay i could add it to my
startup scripts but i prefer the control of doing it by hand each time...)

bw
m~
--
|\ _,,,---,,_
ZZZzz /,`.-'`' -. ;-;;,_ HTTP 503: Too Busy
|,4- ) )-,_. ,\ ( `'-'
'---''(_/--' `-'\_) fL


.::. www.iriXx.org .::. www.copyleftmedia.org.uk .::.

gnupg key ID: AEB7A31E
Patrick Shirkey
2003-05-25 07:43:00 UTC
Permalink
Post by Denis de Leeuw Duarte
Post by Clemens Ladisch
"State" means the current mixer settings, but the Quattro doesn't have any
mixer elements. The message is misleading in this case.
Ah thanks! Well it is working now!!!! I've been struggling with this
device for a week. First I had to return it to the store because they
gave me the wrong power supply and probably a defective unit. I'm very
glad it works now. Except for the fact that I can't use the device as a
normal user (and yes I am in the audio group) but this is probably so
trivial I won't bother you with it (yet;-)
chmod a+rw /dev/dsp*
chmod a+rw /dev/mixer
chmod a+rw /dev/sequencer
--
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No!
We want normal music!", I think that was more like acting than anything
I've ever done.

Goldie, 8 Nov, 2002
The Scotsman
Erik de Castro Lopo
2003-05-25 08:52:01 UTC
Permalink
On Sun, 25 May 2003 14:50:04 +0900
Post by Patrick Shirkey
chmod a+rw /dev/dsp*
chmod a+rw /dev/mixer
chmod a+rw /dev/sequencer
Thats one way of fixing it, but there is a better way (I believe that the
above needs to be done on every reboot which is a pain).

On my machine:

***@coltrane > ls /dev/dsp
crw-rw---- 1 root audio 14, 3 Aug 10 2001 /dev/dsp

Notice that the device allows rw access by the audio group. Therefore,
all you need to do, is for each user on the system who is allowed to
access these devices, as root:

adduser <username> audio

Cheers,
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo ***@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
This is Linux country. On a quiet night, you can hear NT re-boot.
Patrick Shirkey
2003-05-25 08:12:19 UTC
Permalink
Post by Denis de Leeuw Duarte
Post by Clemens Ladisch
"State" means the current mixer settings, but the Quattro doesn't have any
mixer elements. The message is misleading in this case.
Ah thanks! Well it is working now!!!! I've been struggling with this
device for a week. First I had to return it to the store because they
gave me the wrong power supply and probably a defective unit. I'm very
glad it works now. Except for the fact that I can't use the device as a
normal user (and yes I am in the audio group) but this is probably so
trivial I won't bother you with it (yet;-)
I see that too. I'll let the alsa-devel list know. Or Clemens will
probably read this.

I get this error while normal user which doesn't occur as root.

aplay -f cd -d 10 -D quattro1 test.wav
aplay: main:480: audio open error: Permission denied
--
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No!
We want normal music!", I think that was more like acting than anything
I've ever done.

Goldie, 8 Nov, 2002
The Scotsman
Denis de Leeuw Duarte
2003-05-25 10:42:10 UTC
Permalink
Well I fixed the access problem quite easily last night actually. This might
be a bit distro dependent since not all of them use the devfs, so ymmv. In
/etc/devfsd.conf add this:

LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660

Which then gives access to the audio group automatically. Add yourself to
the audio group and you're done. It didn't seem to work with me at first,
but I just had to log out of my kde session an login again and then it
worked.
Subject: Re: [linux-audio-user] No state is present for card
Date: Sun, 25 May 2003 15:07:34 +0900
Post by Denis de Leeuw Duarte
Post by Clemens Ladisch
"State" means the current mixer settings, but the Quattro doesn't have
any
mixer elements. The message is misleading in this case.
Ah thanks! Well it is working now!!!! I've been struggling with this
device for a week. First I had to return it to the store because they gave
me the wrong power supply and probably a defective unit. I'm very glad it
works now. Except for the fact that I can't use the device as a normal
user (and yes I am in the audio group) but this is probably so trivial I
won't bother you with it (yet;-)
I see that too. I'll let the alsa-devel list know. Or Clemens will probably
read this.
I get this error while normal user which doesn't occur as root.
aplay -f cd -d 10 -D quattro1 test.wav
aplay: main:480: audio open error: Permission denied
--
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================
Being on stage with the band in front of crowds shouting, "Get off! No! We
want normal music!", I think that was more like acting than anything I've
ever done.
Goldie, 8 Nov, 2002
The Scotsman
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

Loading...