wine32 bit no audio in pclinuxos 64 bit with alsa

Questions about Wine on Linux
Locked
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

Hi !
I use wine 1.8 32 bit version in pclinuxos 64 bit and i have alsa driver (i removed pulseaudio).
The problem is no audio.
In winecfg in "audio tab" it's empty and i get:

Code: Select all

ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3326:(snd_config_hooks_call) function snd_config_hook_load_for_all_cards returned error: Argomento non valido
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: Argomento non valido
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: Argomento non valido
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: Argomento non valido
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: Argomento non valido
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: Argomento non valido
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: Argomento non valido
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: Argomento non valido
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: Argomento non valido
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default

What can i solve ?
Bye
Francesco bat
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Bob Wya »

Francesco bat wrote: In winecfg in "audio tab" it's empty and i get:

Code: Select all

ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3326:(snd_config_hooks_call) function snd_config_hook_load_for_all_cards returned error: Argomento non valido
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: Argomento non valido
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: Argomento non valido
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: Argomento non valido
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: Argomento non valido
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: Argomento non valido
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: Argomento non valido
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: Argomento non valido
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: Argomento non valido
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default

Those are all alsa library errors i.e. not errors generated by Wine itself...
Francesco bat wrote: I use wine 1.8 32 bit version in pclinuxos 64 bit and i have alsa driver (i removed pulseaudio).
The problem is no audio.
If change the default setup of your distribution in radical ways - then you have to accept personal responsibility for any system breakage!
If you aren't an advanced user it's probably best not to veer too far of the beaten track... :wink:

Wine is typically built against both the alsa and pulseaudio system libraries - so if you purge all the pulseaudio libraries Wine should fall back to alsa as the default audio output.

But this depends on:
  1. Wine being built against the alsa libaries - I think running:

    Code: Select all

    find /usr/lib{32,64}/ -name "winealsa.drv"
    will determine if Wine has alsa support builtin. (NB I'm not sure about the default library paths on PCLinuxOS...)
  2. That you purge all the pulseaudio system libraries, including 32-bit library packages (probably something like lib32pulse*).
  3. That your alsa configuration is working and the necessary 32-bit library dependencies for Wine are installed.
Bob
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

Yes i know: that's my fault :)
I uninstalled pulseaudio because i prefer alsamixer.
Fortunately pclinuxos has a package for secure pulseaudio remove: task-pulseaudio-remove
If i want install it another time, i install: task-pulseaudio
The problem is that in lib64 i still found many pulseaudio files and folders; perhaps they can not be removed :(
I tested:

Code: Select all

find /usr/lib{32,64}/ -name "winealsa.drv"
and i got:

Code: Select all

find: ‘/usr/lib32/’: File o directory non esistente
/usr/lib64/wine/fakedlls/winealsa.drv
So I think that everything is ok.
What can i know if all alsa dependencies for wine 32 bit are installed (if it's the problem) ?
Bye :)
Francesco bat
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Bob Wya »

Francesco bat wrote:Yes i know: that's my fault :)
I uninstalled pulseaudio because i prefer alsamixer.
Fortunately pclinuxos has a package for secure pulseaudio remove: task-pulseaudio-remove
If i want install it another time, i install: task-pulseaudio
The problem is that in lib64 i still found many pulseaudio files and folders; perhaps they can not be removed :(
So you haven't actually purged pulseaudio then... Time for a visit to the PCLinuxOS forums me thinks.
Francesco bat wrote:I tested:

Code: Select all

find /usr/lib{32,64}/ -name "winealsa.drv"
and i got:

Code: Select all

find: ‘/usr/lib32/’: File o directory non esistente
/usr/lib64/wine/fakedlls/winealsa.drv
So I think that everything is ok.
Well it's not really OK - where are your 32-bit multilib libraries then??
64-bit Wine needs all library dependencies to have multilib 32-bit libraries installed (alongside the native 64-bit libraries).
Otherwise Wine will not be able to support any 32-bit Windows software - that's bad btw! :cry:
Francesco bat wrote: What can i know if all alsa dependencies for wine 32 bit are installed (if it's the problem) ?
I don't know what name PCLinuxOS has for the main alsa library. Typically the main alsa library is just split into seperate 32-bit and 64-bit library packages.
I can't even find a list of current PCLinuxOS packages online... So I suggest you ask on the PCLinuxOS forums for further help...

Bob
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

I thought this is problem.
Some days ago i tried to add ibasound.so.2 32 bit in lib folder but it doesn't solve it.
Maybe i must to install more libs for this :(
Thank you for answer :wink:
Bye
Francesco bat
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by lahmbi5678 »

Did you install 32bit alsa libs?
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

lahmbi5678 wrote:Did you install 32bit alsa libs?
I don't know.
Some weeks ago it works all right with alsa.
Now. from some days, it doesn't work more.
Recently pclinuxos has update libalsa; perhaps it is from this moment that no longer works :(
Bye
Francesco bat
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by lahmbi5678 »

Well, I'd suggest looking in your graphical package manager ("synaptic", "Software center" or whatever it is called) for packages like alsa-lib or lib-alsa in 32bit. The exact naming may vary.
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

After some months (i had abandoned the solution), i tried to move .wine folder in home in other folder and the wine created new .wine folder and audio works.
Then the problem in .wine folder.
Is it possible solve in some ways or i must delete old folder .wine ?
I would to use old folder because i have various installed applications and it's a stress restart to begin :-)
Bye
Francesco bat
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Bob Wya »

@Francesco bat

For the original (with broken audio) default .wine WINEPREFIX...
You really want to be storing individual Windows applications in separate WINEPREFIX's - see WineHQ FAQ: 6.5 Wineprefixes ...
You've apparently found a good reason to do this!

Bob
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

This is winecfg in audiotab:

http://imgur.com/mnxj0zC

and this is log (after i clicked test audio and it had got segmentation fault):

Code: Select all

fixme:winediag:start_process Wine Staging 2.11 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3326:(snd_config_hooks_call) function snd_config_hook_load_for_all_cards returned error: Argomento non valido
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: Argomento non valido
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: Argomento non valido
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: Argomento non valido
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: Argomento non valido
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: Argomento non valido
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: Argomento non valido
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: Argomento non valido
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: Argomento non valido
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:seh:setup_exception_record stack overflow 1168 bytes in thread 0035 eip 7bc67e33 esp 00560ea0 stack 0x560000-0x561000-0x660000
Bye
Francesco bat
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Bob Wya »

Well on the plus side Wine is loading your Linux ALSA library OK... :lol:

What's the output from:

Code: Select all

aplay -l
Bob
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

Bob Wya wrote:Well on the plus side Wine is loading your Linux ALSA library OK... :lol:

What's the output from:

Code: Select all

aplay -l
Bob
Here's output:

Code: Select all

**** Lista di PLAYBACK dispositivi hardware ****
scheda 0: Intel [HDA Intel], dispositivo 0: VT1708S Analog [VT1708S Analog]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 0: Intel [HDA Intel], dispositivo 1: VT1708S Digital [VT1708S Digital]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 0: Intel [HDA Intel], dispositivo 2: VT1708S Alt Analog [VT1708S Alt Analog]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 1: NVidia [HDA NVidia], dispositivo 3: HDMI 0 [HDMI 0]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 1: NVidia [HDA NVidia], dispositivo 7: HDMI 0 [HDMI 0]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 1: NVidia [HDA NVidia], dispositivo 8: HDMI 0 [HDMI 0]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 1: NVidia [HDA NVidia], dispositivo 9: HDMI 0 [HDMI 0]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Bob Wya »

Okey dokey... That looks fine. 8)

Can you fire up the Wine Registry Editor:

Code: Select all

wine regedit
and export the key:

Code: Select all

HKEY_CURRENT_USER\Software\Wine\Drivers
The resulting .reg file should be quite small - so you can post it in a forum reply.

Ideally you'd want to compare the above registry branch for:
  • the WINEPREFIX with working audio
vs...
  • the WINEPREFIX with non-working audio

You could also try:

Code: Select all

wineboot --update
to update your busted WINEPREFIX.
See WineHQ: Wineboot ...

Bob
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

I tried with:

Code: Select all

wineboot --update
but it doesn't solved :(
The reg file is:

Code: Select all

REGEDIT4

[HKEY_CURRENT_USER\Software\Wine\Drivers]
"Audio"="alsa"

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv]

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\ALSAInputDevices]

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\ALSAOutputDevices]

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices]

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\0,default]
"guid"=hex:12,e3,5c,85,9b,ed,c6,4e,b7,87,6f,ea,ed,32,e0,aa

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\0,plughw:0,0]
"guid"=hex:7e,11,78,5b,7d,c7,ee,48,80,1e,00,12,23,9e,39,e6

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\0,plughw:0,1]
"guid"=hex:2e,d3,03,49,6e,74,84,4e,87,e6,69,12,42,23,fa,c3

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\0,plughw:0,2]
"guid"=hex:40,a6,59,07,9b,08,a2,42,ac,8a,2c,42,a3,69,c0,e6

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\0,plughw:1,3]
"guid"=hex:6c,87,9c,dd,80,17,d5,44,92,88,5d,66,ba,cc,a4,9f

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\0,plughw:1,7]
"guid"=hex:41,71,c8,ea,fb,e6,7f,49,ae,47,e0,0f,78,6a,d6,b3

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\0,plughw:1,8]
"guid"=hex:86,b0,a4,ed,0e,ff,dd,44,bc,75,68,e6,54,b9,00,4a

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\0,plughw:1,9]
"guid"=hex:27,3d,e7,aa,d8,40,5e,44,9c,f4,86,b6,1c,ee,2e,4d

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\1,default]
"guid"=hex:63,83,13,50,af,22,97,4e,8b,2f,68,4a,81,1d,ad,06

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\devices\1,plughw:0,0]
"guid"=hex:ca,53,4a,7b,e2,1f,45,47,b3,5d,cb,f5,0f,52,20,74

[HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv\winealsa.drv]

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv]

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv\devices]

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv\devices\0,alsa_output.pci-0000_00_1b.0.analog-stereo]
"guid"=hex:f4,a9,3c,a9,98,37,f4,4f,8e,6b,06,1c,f6,7c,94,15

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv\devices\0,alsa_output.pci-0000_00_1b.0.analog-stereo.equalizer]
"guid"=hex:ae,f7,3b,f9,25,e5,84,45,98,41,68,f0,f1,45,7e,f9

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv\devices\0,alsa_output.pci-0000_01_00.1.hdmi-stereo]
"guid"=hex:84,d0,ac,17,ce,96,f6,46,89,bf,c9,92,a5,66,cf,05

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv\devices\1,alsa_input.pci-0000_00_1b.0.analog-stereo]
"guid"=hex:8d,e5,a4,83,c5,d4,17,41,91,58,3b,3d,5d,a1,04,a9

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv\devices\1,alsa_output.pci-0000_00_1b.0.analog-stereo.equalizer.monitor]
"guid"=hex:99,f5,9f,e8,3a,d8,05,4c,b5,3d,0b,c2,34,6e,58,30

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv\devices\1,alsa_output.pci-0000_00_1b.0.analog-stereo.monitor]
"guid"=hex:ba,e7,81,17,c5,43,29,49,99,4d,b6,23,ce,50,e0,d4

[HKEY_CURRENT_USER\Software\Wine\Drivers\winepulse.drv\devices\1,alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor]
"guid"=hex:d2,b8,cc,31,a6,7a,58,46,b9,ab,e7,fd,ab,c4,bf,59
User avatar
Francesco bat
Level 2
Level 2
Posts: 17
Joined: Tue Jul 03, 2012 7:19 am

Re: wine32 bit no audio in pclinuxos 64 bit with alsa

Post by Francesco bat »

Now i tried with:

Code: Select all

export WINEPREFIX=~/.wine-new
wine winecfg 
and audio works :)
But all installed applications are in .wine and no in .wine-new.
If i start an application .exe from pc, it executes like .wine and no like .wine-new :(
Locked