different user causes 'no such device'
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) functionsnd_func_card_driverreturned error: No such device ALSA lib confmisc.c:397:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) functionsnd_func_concatreturned error: No such device ALSA lib confmisc.c:1248:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) functionsnd_func_referreturned 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
A message that is not in the archive (sent off-list or not yet received): s5h3awkve8l.wl%[email protected]
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/dspto '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: MrUmunhumQuoted 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) functionsnd_func_card_driverreturned error: No such device ALSA lib confmisc.c:397:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) functionsnd_func_concatreturned error: No such device ALSA lib confmisc.c:1248:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) functionsnd_func_referreturned 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 defaultALSA-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
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/dspto '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: MrUmunhumQuoted 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) functionsnd_func_card_driverreturned error: No such device ALSA lib confmisc.c:397:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) functionsnd_func_concatreturned error: No such device ALSA lib confmisc.c:1248:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) functionsnd_func_referreturned 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 defaultALSA-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
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