Sound with ALSA but not with WINE

Questions about Wine on Linux
Locked
Ladde
Newbie
Newbie
Posts: 1
Joined: Thu Jan 30, 2014 3:56 pm

Sound with ALSA but not with WINE

Post by Ladde »

Hello,

I have some troubles activating sound in WINE.

I run an up-to-date Arch Linux and WINE was installed as a dependency of pipelight (installed with yaourt from the AUR).

I have an Asus P8H77-M board with onboard sound and enabled the onboard HDMI Output for audio via ALSA.

Details on the sound device (lspci -knn):

Code: Select all

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
Output of aplay -l:

Code: Select all

**** 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
Output of aplay -L

Code: Select all

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 got the sound output working with ALSA. Here's my /etc/asound.conf

Code: Select all

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
}
"speaker-test -c 2" and "speaker-test -D HDMI_TV -c 2" both output some nice pink noise on my speakers, so ALSA seems to be working in general.

When I start winecfg I find the following devices in the Output device drop down list on the Audio tab:
  • (SystemStandard)
  • Out: default
  • Out: HDA Intel PCH - VT1708S Analog
  • Out: HDA Intel PCH - VT1708S Digital
  • Out: HDA Intel PCH - HDMI 0
Whichever I select, I hear no sound when I click the "Test Sound" Button.
Driver dignostics says: Selected driver:winealsa.drv
When I click the button the first time after starting winecfg I get the message "err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded" on the console - I have no idea how and if this is directly related to my audio problem.

In earlier trys, WINE seemd to try to connect to pulseaudio (which is not installed); I received the message "err:pulse:pulse_contectcallback Cntext failed: Connection refused" when I switched to the Audio tab of winecfg.
I then used "winetricks sound=alsa" to switch to alsa as standard audio backend.

I tried adding the "HDMI_TV" device I defined in asound.conf to the registry key ALSAOutputDevices. It then showed up in winecfg's Output devices dropdown list, but there is still no sound :(

I am somewhat out of options, what to try next, so if any of you have some idea, please let me know.

If you need more information on my setup, please let me know. As I am somewhat of a newbie with Linux, ALSA and WINE, please also give me directions on where to find the information you need.

Thanks in advance and best regards
Lasse

Btw: I also have XBMC installed, which works perfectly (including 5.1 sound output via HDMI)
Locked