Skip to contentSkip to conversation

different user causes 'no such device'

DISCUSSION william estrada 2 participants 4 messages Oct 3, 2007 – Oct 10, 2007 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi guys,

I have what seams like a interesting problem. I have written an ALSA app
to record wav files and it runs while I am logged in an terminal as the logged in Gnome user or root. But when I su to another user, it can't find the default sound card.

I am running FC6. I tried changing own of /dev/dsp to 'nobody', that did
not work.

Anyone know of this problem and a fix for it.

Thanks for your time.

Signature · 4 lines
William Estrada
[email protected]
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum
Quoted 10 lines

MSGrec - Version 1.1, Mt-Umunhum-Wireless.net
WavMSG: Paused: enter 'q' to stop, <ENTER> to start.
ALSA lib confmisc.c:848:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:397:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1248:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3972:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default

#2 lore raw
In reply to a message not in the archive

Thanks, I will try this.

William Estrada
[email protected]
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum

Quoted 40 lines · Takashi Iwai

At Wed, 03 Oct 2007 12:55:27 -0700,

Quoted 7 lines · william estrada

Hi guys,

I have what seams like a interesting problem. I have written an ALSA app
to record wav files and it runs while I am logged in an terminal as the logged in Gnome user or root. But when I su to another user, it can't find the default sound card.

Quoted 23 lines

I am running FC6. I tried changing own of /dev/dsp to 'nobody', that did
not work.

Anyone know of this problem and a fix for it.

Thanks for your time.

Signature · 4 lines
William Estrada
[email protected]
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum
Quoted 10 lines

MSGrec - Version 1.1, Mt-Umunhum-Wireless.net
WavMSG: Paused: enter 'q' to stop, <ENTER> to start.
ALSA lib confmisc.c:848:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:397:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1248:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3972:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default

ALSA-native apps access only ALSA device files, usually /dev/snd/*, not /dev/dsp*, those for OSS. In this case, it should be /dev/snd/controlC* files. Check the premission of these files.

Takashi

#3 lore raw
In reply to a message not in the archive

Thanks, I did a 'chmod -R 666 /dev/snd/' and it worked.

Now how do I make the hot plugged USB sound device use these setting??

Thanks for your time.

William Estrada
[email protected]
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum

Quoted 40 lines · Takashi Iwai

At Wed, 03 Oct 2007 12:55:27 -0700,

Quoted 7 lines · william estrada

Hi guys,

I have what seams like a interesting problem. I have written an ALSA app
to record wav files and it runs while I am logged in an terminal as the logged in Gnome user or root. But when I su to another user, it can't find the default sound card.

Quoted 23 lines

I am running FC6. I tried changing own of /dev/dsp to 'nobody', that did
not work.

Anyone know of this problem and a fix for it.

Thanks for your time.

Signature · 4 lines
William Estrada
[email protected]
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum
Quoted 10 lines

MSGrec - Version 1.1, Mt-Umunhum-Wireless.net
WavMSG: Paused: enter 'q' to stop, <ENTER> to start.
ALSA lib confmisc.c:848:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:397:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1248:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3972:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default

ALSA-native apps access only ALSA device files, usually /dev/snd/*, not /dev/dsp*, those for OSS. In this case, it should be /dev/snd/controlC* files. Check the premission of these files.

Takashi

#4 lore raw

At Tue, 09 Oct 2007 09:27:04 -0700,

Quoted 4 lines · william estrada

Thanks, I did a 'chmod -R 666 /dev/snd/' and it worked.

Now how do I make the hot plugged USB sound device use these setting??

Usually it's done via udev. But, how to set up depends pretty much on the distro and the version you are using...

Takashi