LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2004, 10:37 AM   #1
RefriedBean
Member
 
Registered: Jun 2002
Location: N 37 33.327 E 126 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186

Rep: Reputation: 30
Question Defining ALSA devices for KDE


Hey guys!

How can I tell KDE 3.2 (or arts, rather) to use the ALSA device hw:0,1 instead of the default one (hw:0,0)?

In the KDE control center, under sounds & Multimedia > Sound System > Hardware tab, I've tried to add 'hw:0,1' to the "Override device location" text box, but that doesnt seem to work (it doesnt' seem to 'understand' that syntax).

I've also tried telling it to use the device file thats supposed to correspond to hw:0,1 (/dev/pcmC0D1p), but I think you can't use it directly in ALSA like with OSS. (it also produces an error).

Thanks!!
Refried.

PS. I don't want to tell arts to use ALSA's OSS emulation, as that, for some reason makes arts use 100% CPU, and then eventualy crash with the dreaded 'CPU overload' error.
 
Old 02-22-2004, 06:00 AM   #2
sohmc
Member
 
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Rep: Reputation: 30
I think arts relies on /dev/dsp...that's the error it was giving me when I switched to alsa.

I ran the snddevices or whatever script that comes includes with alsa. That will symlink the correct devices files for you.
 
Old 02-22-2004, 09:37 PM   #3
RefriedBean
Member
 
Registered: Jun 2002
Location: N 37 33.327 E 126 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186

Original Poster
Rep: Reputation: 30
Hey, thanks for the answer.

AFAIK /dev/dsp is what OSS uses (or ALSA with OSS emulation).

However, I'd like to use 'real' alsa with KDE.

When using ALSA, without OSS emulation, you don't use device names (like /dev/dsp), the programs access the sound devices through names like:

hw:0,0 (same as /dev/dsp)
hw:0,1 (same as /dev/dsp1, if you have 2 sound outputs on one card, like es1371 has)
hw:1,0 (for the second sound card)

It works fine when I just select 'Advanced Linux Sound Architecture' in the control center, but it defaults to hw:0,0.

I'd like it to use hw:0,1.

Anyone know how?

Thanks!

Refried
 
Old 02-24-2004, 10:14 PM   #4
RefriedBean
Member
 
Registered: Jun 2002
Location: N 37 33.327 E 126 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186

Original Poster
Rep: Reputation: 30
*bump*, anyone know?
 
Old 02-25-2004, 04:06 AM   #5
sohmc
Member
 
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Rep: Reputation: 30
http://www.alsa-project.org/alsa-doc...module=emu10k1

http://tldp.org/HOWTO/Alsa-sound.html

these helped me. Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE devices:/ dARkHunTEr Linux - Software 4 10-24-2004 09:00 PM
Fix for alsa loading devices like bt87x as card0. joeinspirit Slackware 2 07-10-2004 08:54 AM
ALSA devices dont exist? SciYro Linux - General 8 06-19-2004 12:08 PM
ALSA / AC'97 - Analog Devices AD1985...No Sound using 2.6 kernel. HELP??? MarlyMar Linux - Hardware 6 03-02-2004 08:50 AM
Wine Alsa devices Permission Denied Protex Linux - Games 1 11-05-2003 05:29 PM


All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration