You are not logged in.

#1 2011-02-21 11:41:51

Firestone
Member
From: Amsterdam
Registered: 2009-07-26
Posts: 20

[Wine] Sound card selecting issues

Since a month or too, after one of my weekly updates, wine started to select the wrong sound card for its audio playback. Thus, alas, no sound in wine applications.

When selecting the audio tab in winecfg, I get the following console output:

fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
fixme:jack:JACK_drvLoad error loading the jack library libjack.so.0, please install this library to use jack

I don't use jack, so that can be ignored. The HDA NVidia - the S/PDIF on my NVidia video card I presume, I don't use either. What I do use is my onboard sound chip in combination with alsa, which works perfectly on non-wine applications.

So, I got the following set up:

$ cat /proc/asound/modules
 0 snd_hda_intel
 1 snd_hda_intel

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1818S Analog [VT1818S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: SB [HDA ATI SB], device 1: VT1818S Digital [VT1818S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ ls -l /sys/module/snd/holders
total 0
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hda_codec -> ../../snd_hda_codec
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hda_codec_hdmi -> ../../snd_hda_codec_hdmi
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hda_codec_via -> ../../snd_hda_codec_via
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hda_intel -> ../../snd_hda_intel
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hwdep -> ../../snd_hwdep
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_pcm -> ../../snd_pcm
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_seq -> ../../snd_seq
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_seq_device -> ../../snd_seq_device
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_seq_oss -> ../../snd_seq_oss
lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_timer -> ../../snd_timer

$ lsmod|grep '^snd' | column -t
snd_hda_codec_hdmi  22593  4
snd_hda_codec_via   52963  1
snd_seq_dummy       1479   0
snd_seq_oss         29240  0
snd_seq_midi_event  5516   1   snd_seq_oss
snd_seq             50562  5   snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device      5281   3   snd_seq_dummy,snd_seq_oss,snd_seq
snd_hda_intel       21837  1
snd_hda_codec       74577  3   snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
snd_hwdep           6222   1   snd_hda_codec
snd_pcm             72321  2   snd_hda_intel,snd_hda_codec
snd_timer           19537  2   snd_seq,snd_pcm
snd                 58906  12  snd_hda_codec_hdmi,snd_hda_codec_via,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
snd_page_alloc      7361   2   snd_hda_intel,snd_pcm

Note that I already blacklisted snd_hda_codec_nvhdmi, which was in the above output before blacklisting.
Also note the weirdness of having two identical modules for card 0 and card 1. I guess the chip on the video card is Intel as well. I this possible?

Now the list of things I tried, all without a positive result.

First, I completely reconfigured my alsa set up.
Secondly, I blacklisted snd_hda_codec_nvhdmi in /etc/rc.conf

Thirdly, I used the info from http://wiki.winehq.org/UsefulRegistryKeys to force wine to use card0:

AutoScanCards=N
AutoScanDevices=N
DeviceCTL1=hw:0
DevicePCM1=hw:0

Fourthly, I edited .asoundrc to force alsa to use only card0:

# define soundcard to use, hw0:0
pcm.!default {
   type hw
   card SB
#   device 0
}

# define control device to use, hw0:0
ctl.!default {
   type hw
   card SB
#   device 0
}

Finally, I tried the above globally in /etc/asound.conf
I even waited two wine updates to see if that would fix it.


All above did not solve the sound issue and winecfg still gives the same error output as before.
Note that the sound works fine in everything, except in wine.

Anyone has any ideas or insight?

Offline

#2 2011-03-03 17:37:37

Firestone
Member
From: Amsterdam
Registered: 2009-07-26
Posts: 20

Re: [Wine] Sound card selecting issues

Subtle kick wink

A week went by and I am no closer to a solution. Another update round didn't cut it.

Any help and/or suggestions are welcome.

Offline

#3 2011-03-22 13:42:41

Darkzom
Member
Registered: 2011-03-15
Posts: 28

Re: [Wine] Sound card selecting issues

Hi!

Similar problem here

[zom@myhost ~]$ winecfg
fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
err:module:load_builtin_dll failed to load .so lib for builtin L"winemp3.acm": libmpg123.so.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
fixme:winmm:proc_PlaySound Couldn't play header
fixme:winmm:proc_PlaySound Couldn't play header
[zom@myhost ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889A Analog [ALC889A Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC889A Digital [ALC889A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[zom@myhost ~]$ cat /proc/asound/modules
 0 snd_hda_intel
 1 snd_hda_intel

I will follow some of your steps and research a bit to see if I can find something.

Please remember to post if you get it working!

Regards,

Edit:

Seems the card is not well specified in your /etc/asound.conf

% cat /etc/asound.conf
 pcm.!default {
      type plug
      slave.pcm {
              type hw
              card 0
              device 3
      }
 }

I think you should put the device also, as shown on your "aplay -l". Try and let me know (I will try asap).

Edit: Forget what I just said and just follow strictly the wine wiki page. In my case it was a problem when installing lib32-openal from the repos. It gave an error and did not install the first time, but I thought it was removed from the repos and wasn't needed anymore.

Last edited by Darkzom (2011-03-24 01:00:55)

Offline

Board footer

Powered by FluxBB