You are not logged in.

#1 2010-12-21 04:05:57

sheeva_fans
Member
Registered: 2010-12-08
Posts: 13

[Wine] - How to deal with undetected ALSA Device problem

All hail Google and Archwiki big_smile

sorry for that nonsense, I'm just too happy after two days trying to make my speaker work with Wine. For those who get same problem with me (Wine didn't detect your ALSA device correctly and/or didn't list it on winecfg), this is simple workaround  to get them working.
Note: In oppose to Wiki's advice to install wine-suse from AUR, I use Wine from Community repo. AUR install always give me "WARNING: Dependencies have been installed before the failure" error sad
Additional note: Using this workaround. One may get error when try to use sound test within winecfg, and you'll likely get this error message on terminal:

fixme:wave:ALSA_ComputeCaps Device has a minimum of 2 channels

As far as google can tell, this will bring no harm to your box, unless proven otherwise big_smile

1. First thing first, if you don't know which device you should use, check it with 'cat /proc/asound/devices', else skip to step 3,

bam ~/Desktop >  cat /proc/asound/devices
  2:        : timer
  3: [ 0- 0]: digital audio playback
  4: [ 0- 0]: digital audio capture
  5: [ 0- 0]: hardware dependent
  6: [ 0]   : control
  7:        : sequencer
  8: [ 1- 0]: digital audio playback
  9: [ 1- 0]: digital audio capture
 10: [ 1]   : control

2. Pick each device marked audio playback and test the output:

bam ~/Desktop >  aplay -D hw:1,0 /usr/share/sounds/alsa/Front_Center.wav 
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

if you get this error:

aplay: set_params:1059: Channels count non available

replace hw:x,y with plughw:x,y.

3. After you get the working device number (e.g: hw:1,0), launch regedit

wine regedit

navigate to HKEY_CURRENT_USER\Software\Wine

4. Create new key named Alsa Driver , make new yalues as follow

[Software\\Wine\\Alsa Driver]
#disable auto scan sound card
"AutoScanCards"="N" 
#specify number of output device
"DeviceCount"="1"
#point it to your hw number
"DeviceCTLn"="hw:1"
#same as above
"DevicePCMn"="hw:1"
#optional: direct hardware interface
"UseDirectHW"="Y"

detailed explanations can be found in Wine wiki (link on bottom)

5. close and test it by launching an apps (using test sound in winecfg will give you error!).
6. If your settings correct, you'll get your sound working wink

Hope this help someone smile

references:
http://alsa.opensrc.org/index.php/DigitalOut
http://wiki.winehq.org/UsefulRegistryKeys

ps: Sorry for misspelled word/gramatical error, I'm not too good on English.

Offline

Board footer

Powered by FluxBB