LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-20-2004, 08:29 AM   #1
Lekyaira
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
Wine and Alsa


So far, Alsa has been causing me a few problems, but once I figured out what was wrong, they've mostly been easy to fix. My soundcard is integrated with my modem, and my modem happens to be the first device, which is apparently what everything defaults to. XMMS gave me the first clue: it had two devices, one under hw:0,0 (which doesn't output sound, at least not through my speakers) and hw:1,0. Once I put it on the second one, XMMS played just fine. KDE had a similar problem; I had to check the override device location box and add the line hw:1,0.

Now the only program I have that won't play sound is Wine. I've looked through the Wine documentation, and on winehq.com, and here on the forums, but I can't find anything that helps. Is there some way I can tell Wine to use the hw:1,0 device?

I noticed some lines under [dsound]:
;; Sets default playback device (0 - number of devices - 1)
;"DefaultPlayback" = "0" ; use first device (/dev/dsp)
;"DefaultPlayback" = "1" ; use second device (/dev/dsp1)
;"DefaultPlayback" = "2" ; use third device (/dev/dsp2)
;; Sets default capture device (0 - number of devices - 1)
;"DefaultCapture" = "0" ; use first device (/dev/dsp)
;"DefaultCapture" = "1" ; use second device (/dev/dsp1)
;"DefaultCapture" = "2" ; use third device (/dev/dsp2)

Is there anything like this for the Alsa devices?

Failing that, is it possible to tell Alsa to use hw:1,0 as the default?

Thanks.
 
Old 11-26-2004, 09:42 AM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
It is possible but you can fix this by redefining the alsa default device to be hw:1,0 ... the alsa docs explain this. But if you're on FC3 try putting this in /etc/asound.conf

pcm.!default {
type slave
slave.pcm "hw:1,0"
}

or the equivalent.
 
  


Reply



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
Wine, dsound, alsa ... conn-fused Linux - Software 5 04-10-2005 02:56 PM
ALSA drivers and wine [ITA]freeware Linux - Software 2 03-28-2005 12:24 PM
wine and alsa and games amatin Linux - Software 0 03-27-2004 10:35 AM
Wine Alsa devices Permission Denied Protex Linux - Games 1 11-05-2003 04:29 PM
Slackware 9.1 Alsa Wine issues sclebo05 Linux - Software 4 10-15-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:37 PM.

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
Open Source Consulting | Domain Registration