| View previous topic :: View next topic |
| Author |
Message |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Sun Jan 24, 2010 7:03 pm Post subject: .asoundrc help |
|
|
Hi,
Could someone please tell me where is the documentation for .asoundrc?
Thanks,
Don James
Last edited by donjames on Sun Jan 24, 2010 9:21 pm; edited 1 time in total |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Sun Jan 24, 2010 8:23 pm Post subject: documentation for .asoundrc |
|
|
Hi,
Thanks. I found the docs for .asoundrc
Next question:
How do I make the sound go to my usb headset instead of the built-in speakers on my laptop?
Thanks,
donjames |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Sun Jan 24, 2010 8:37 pm Post subject: documentation for .asoundrc |
|
|
Hi,
I think I'm getting somewhere.
I put the following into /root/.asoundrc:
| Code: |
pcm.!default {
type hw
card 2
}
ctl.!default {
type hw
card 2
}
|
Now, when I run:
the sound is routed to the usb headset. But, when I try to use my Xlite softphone, the sound goes to the built-in speakers.
Can I get some more help?
Sincerely,
donjames |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6609
|
Posted: Mon Jan 25, 2010 3:13 am Post subject: Re: documentation for .asoundrc |
|
|
| donjames wrote: | | /root/.asoundrc |
That's for the root user. Change ~/.asoundrc for your normal user instead. "~" is just a shorthand for the home directory of the user. |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Mon Jan 25, 2010 3:24 am Post subject: .asoundrc help |
|
|
Hi,
I am the root user and the only user.
I just need help getting the sound to go to the headset when I'm using Xlite.
How do I do that?
Thanks,
donjames |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6609
|
Posted: Mon Jan 25, 2010 3:58 am Post subject: |
|
|
Since it's apparently ignoring your new "default" setting, I dunno. Never heard of that app. Probably best to ask on their own support forum.
Check that it's actually using ALSA (/dev/snd) rather than OSS (/dev/dsp):
fuser -v /dev/snd/* /dev/dsp* |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Mon Jan 25, 2010 1:47 pm Post subject: asoundrc help |
|
|
I think we're getting down to the problem now.
fuser -v /dev/snd/* /dev/dsp* gives the following output:
| Code: |
Cannot stat /dev/dsp*: No such file or directory
Cannot stat /dev/dsp*: No such file or directory
USER PID ACCESS COMMAND
/dev/snd/controlC0: root 5861 F.... knotify4
root 5890 F.... kmix
/dev/snd/controlC2: root 5890 F.... kmix
/dev/snd/pcmC2D0c: root 7920 F...m VirtualBox
/dev/snd/pcmC2D0p: root 7920 F...m VirtualBox
|
This is because OSS is not enabled in the kernel.
I think Xlite is attempting to use OSS.
Should I enable both ALSA and OSS?
Thanks,
donjames |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6609
|
Posted: Mon Jan 25, 2010 5:19 pm Post subject: Re: asoundrc help |
|
|
| donjames wrote: | | I think Xlite is attempting to use OSS. |
Why do you think that? If /dev/dsp* doesn't exist, then OSS doesn't exist, and Xlite can't use OSS if it doesn't exist. The 2 "No such file or directory" lines are caused by the fuser command, not Xlite.
| Quote: | | Should I enable both ALSA and OSS? |
No. You'll only encounter the usual annoyance of ALSA's emulation of OSS preventing dmix from working, so we'll see a "cannot play more than 1 sound at once" thread from you  |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Mon Jan 25, 2010 11:58 pm Post subject: .asoundrc help |
|
|
Okay.
I only have ALSA enabled in the kernel.
I get sound from the built-in speakers when I start KDE. I get sound from the usb headset when I run
speaker-test
I get no sound at all from XLite.
What do I do next?
Please give me something to try.
Thanks,
donjames
Don James |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Tue Jan 26, 2010 5:30 am Post subject: .asoundrc help |
|
|
Hello.
Since I can't get ALSA to work and can get no help, I have re-configured my gentoo kernel so that NO sound modules or sound support of any kind gets loaded.
I cannot get ALL of the sound routed to my usb headset no matter what I do.
I think ALSA sucks and the ALSA documentation sucks!!!!!!!! Well, the ALSA documentation is so general that it is worthless.
If you have to be a super geek to get the sound working, then it is worthless to me.
Sincerely,
donjames |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6609
|
Posted: Tue Jan 26, 2010 5:49 am Post subject: |
|
|
You're getting "no help" because you're asking on the WRONG forum, as I said.
Xlite is a proprietary app, which I've never even heard of - so go ask THEM why they're using ALSA *weirdly* (i.e. not using the "default" output). |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Tue Jan 26, 2010 6:18 am Post subject: .asoundrc help |
|
|
Well, what the hell do I know?
Excuse me for living. |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Tue Jan 26, 2010 6:29 am Post subject: .asoundrc help |
|
|
Oh yes.
The sound would not go to KsCD, no matter what I did. It went to the built-in speakers. Is this a proprietary application? I thought I had set the headset to be the default sound device. The sound from speaker-test DID go to the headset.
Xlite is a softphone made my counterpath. http://www.counterpath.com. |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Tue Jan 26, 2010 5:12 pm Post subject: .asoundrc help |
|
|
Hi,
I finally got it to sort of work. All of the sound now goes to the usb headset.
I first took all of the alsa sound out of the kernel except for the usb sound. Recompiled the kernel. Unplugged the usb headset. Rebooted the computer.
Now, all of the sound goes to the usb headset. It is the only audio device now on the computer. Also, the sound from KsCD goes to the usb headset.
However XLite still does not get the default sound -- it gets no sound at all. So, as you pointed out, the problem is with
XLite, not with gentoo.
Anyhow, I do appreciate the help.
Sincerely,
Don James |
|
| Back to top |
|
 |
timeBandit Administrator


Joined: 31 Dec 2004 Posts: 2667 Location: here, there or in transit
|
Posted: Tue Jan 26, 2010 7:36 pm Post subject: |
|
|
@donjames, please re-read the forum Guidelines, in particular #12: one problem, one thread. Thanks.
I have closed your other threads on this problem and referred them here. Also: | Quote: | Well, what the hell do I know?
Excuse me for living. | While PaulBredbury's reply was perhaps a bit short, this was not a well-considered response. Posting insistently about the same problem does not make a good impression. While that does not excuse pointed replies, it does encourage them. Let's chalk this up to the difficulties of the communication medium and leave it at that.  _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Tue Jan 26, 2010 9:04 pm Post subject: .asoundrc help |
|
|
PaulBradbury,
| PaulBredbury wrote: | You're getting "no help" because you're asking on the WRONG forum, as I said.
Xlite is a proprietary app, which I've never even heard of - so go ask THEM why they're using ALSA *weirdly* (i.e. not using the "default" output). |
No, this IS the RIGHT forum.
You did answer my question by telling me that XLite is a proprietary product and, as such, we gentoo users have no control over how it uses the sound resources.
I didn't know this. But, now I know.
Thanks again for your help.
Sincerely,
Don James |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6609
|
Posted: Wed Jan 27, 2010 3:49 am Post subject: Re: .asoundrc help |
|
|
| donjames wrote: | | No, this IS the RIGHT forum. |
This is the WRONG forum. Because exactly zero ALSA, OSS, and Xlite, devs look at this forum, from what I've seen. This is because they have their own support forums/chatrooms/websites/bugzillas.
And I've participated in quite a few ALSA threads - you can check my 6000+ post history, if doubtful I love the way newbies think they know everything, even though they're asking for easy help.
The ALSA documentation is certainly lacking, which is why I wrote this article.
Why does every American think my name is Bradbury rather than Bredbury?
| timeBandit wrote: | | While PaulBredbury's reply was perhaps a bit short |
ALL my replies are short and to-the-point. I'm a computer programmer, helping others for free. This will never be Shakespeare. |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
Posted: Wed Jan 27, 2010 12:22 pm Post subject: Re: .asoundrc help |
|
|
| PaulBredbury wrote: | Why does every American think my name is Bradbury rather than Bredbury?
|
Because your just one letter to be famous
http://en.wikipedia.org/wiki/Ray_Bradbury
edit: And for the no help, for me it's the way you ask. "Can someone point me doc", "ok, thx, now tell me because i don't want to read the doc you've just gave me".
I feel it like "Please, what time is it ?" -> "oh shit i'm late, can you drive me there...". If you want someone to drive you somewhere ask for a driver.
Next time just ask and build a thread for your problem, not for another one and change subject after (and it seems a speciality to do that http://forums.gentoo.org/viewtopic-p-6148748.html#6148748) |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Wed Jan 27, 2010 6:46 pm Post subject: .asoundrc help |
|
|
Hi PaulBr e dbury,
Sorry about misspelling your name.
I was just trying to get a little help.
I'll try the XLite forum.
Thanks,
Don James |
|
| Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 152 Location: Henderson, Texas USA
|
Posted: Wed Jan 27, 2010 7:13 pm Post subject: .asoundrc help |
|
|
Hi,
I found my answer. The current version of XLite for Linux ONLY talks to OSS, not Alsa.
Just want to say thanks to everyone for their help.
Don James |
|
| Back to top |
|
 |
|