You are not logged in.

#1 2014-01-31 00:08:50

Ladde
Member
Registered: 2014-01-30
Posts: 1

Sound in ALSA but not in WINE

Hello,

I have some trouble activating sound in WINE and hope for your help smile

I run Arch on a PC with Asus P8H77-M mainboard with onboard sound. Here's some details on the sound device:
lspci -knn

00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
        Subsystem: ASUSTeK Computer Inc. P8H77-I Motherboard [1043:8415]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: VT1708S Alt Analog [VT1708S Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L

null
    Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=PCH
    HDA Intel PCH, VT1708S Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Digital
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 0
    HDMI Audio Output

I added the the HDMI output as standard output to /etc/asound.conf and also added HDMI_TV for testing purposes:

pcm.!default {
        type hw
        card 0
        device 7
}

ctl.!default {
        type hw
        card 0
        device 7
}

pcm.HDMI_TV {
        type hw
        card 0
        device 7
}

ctl.HDMI_TV {
        type hw
        card 0
        device 7
}

When it test the setup with speaker-test -c 2 or speaker-test -D HDMI_TV -c 2 I get some nice pink noise on my speakers smile

I have a number of Output devices to select from in winecfg, but with none of them I can get any sound out of my speakers: sad

  • (System standard)

  • Out: default

  • Out: HDA Intel PCH - VT1708S Analog

  • Out: HDA Intel PCH - VT1708S Digital

  • Out: HDA Intel PCH - HDMI 0

When I fist started winecfg and selected the Audio tab, I got some pulse related error message (something like "err:pulse:pulse_CallbackContext Connection refused", I don't remember exactly). I have pulseaudio installed (as a dependency of chromium) but it's not active, so I turned to ALSA with winetricks sound=alsa.

Now I don't get the pulse error message anymore, but there is still no sound and when I hit the Test Sound button the first time after starting winecfg, I get the error message "err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded". I have no idea whether this is directly related to my sound problem.

I tried adding HDMI_TV in the registry key ALSAOutputDevices. Now I have one more device to select from, but still no sound sad

I am running out of ideas what to try next, so if anybody has a hint, please tell me (y)

If you need more information on my hardware or software, please tell me! smile
As I am somewhat of a newbie with Arch and WINE, you might also have to tell me where to get that information smile

Thanks & best regards
Lasse

Btw: I installed XBMC and sound output via HDMI works perfectly smile

Offline

#2 2014-01-31 01:37:26

supermariolinux
Member
Registered: 2014-01-21
Posts: 11

Re: Sound in ALSA but not in WINE

Are you running the 64 bit version of arch? if so you need to install the lib32-alsa-plugins package. You may also want lib32-libpulse as well.
If you get an error trying to install those make sure you have enabled the Multilib repostory in you're pacman.conf file.

Offline

#3 2014-02-04 14:50:00

ColdPie
Member
Registered: 2007-09-18
Posts: 47

Re: Sound in ALSA but not in WINE

Hi, I'm one of Wine's main audio maintainers.

supermariolinux is right that you'll need the 32-bit audio packages. If you're not using PulseAudio, you should only need lib32-alsa-lib. If you are using Pulse, you will also need lib32-alsa-plugins and lib32-libpulse. You can do "pacman -Qi wine" to get a list of optional packages that you may be missing.

You said that you got an error saying, "err:pulse:pulse_CallbackContext Connection refused". This doesn't seem possible if you're using the official Arch Wine package, as Arch doesn't supply the unofficial Pulse audio backend. Are you building Wine yourself? Do you get an errors upon running configure?

The CoInitializeEx message is harmless.

Finally, you can get a debug log which may give you more information about what's happening. There are more instructions for that here: http://wiki.winehq.org/Sound under "What to include when filing a bug." You may find some useful information near lines containing "AudioClient_Initialize". If you upload a log someplace, I can take a look as well.

Offline

Board footer

Powered by FluxBB