View previous topic :: View next topic |
Author |
Message |
disperato Tux's lil' helper
Joined: 27 Apr 2004 Posts: 120
|
Posted: Tue Apr 17, 2012 11:28 pm Post subject: [solved] audio errors using qemu-kvm |
|
|
Hi everyone, I'm having this trouble with qemu-kvm.
A long ago, I used to get sound from kvm with SDL as library and es1370 as sound card. After a major upgrade of world, whilst everything else works fine, when I try starting the virtual machine (from terminal), it yelds:
Code: |
sdl: SDL_OpenAudio failed
sdl: Reason:
sdl: SDL_OpenAudio failed
sdl: Reason:
audio: Failed to create voice `es1370.dac2'
audio: Failed to create voice `es1370.adc'
sdl: SDL_OpenAudio failed
sdl: Reason:
sdl: SDL_OpenAudio failed
sdl: Reason:
audio: Failed to create voice `es1370.dac1'
sdl: SDL_OpenAudio failed
sdl: Reason:
sdl: SDL_OpenAudio failed
sdl: Reason:
audio: Failed to create voice `es1370.dac1'
sdl: SDL_OpenAudio failed
sdl: Reason:
sdl: SDL_OpenAudio failed
sdl: Reason:
audio: Failed to create voice `es1370.dac2'
audio: Failed to create voice `es1370.adc' |
Of course befoure starting the vm, I issue:
Code: | export QEMU_AUDIO_DRV=sdl
export QEMU_SDL_SAMPLES=2048 |
Then I tried with alsa, either with es1370 and ac97. Here is the output for ac97 (that one for es1370 is the same fashion):
Code: | alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `ac97.pi'
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `ac97.po'
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `ac97.mc'
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `ac97.pi'
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `ac97.po'
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `ac97.mc'
|
(Obviously before testing with alsa I issued the command export QEMU_AUDIO_DRV=alsa)
Cannot figure out what files to give permissions (if any), what settings to change (if any), and so on. All I have are these cryptic messages. _________________ The free men's path is always obstructed by mediocrity.
Last edited by disperato on Fri Apr 27, 2012 11:58 pm; edited 1 time in total |
|
Back to top |
|
|
disperato Tux's lil' helper
Joined: 27 Apr 2004 Posts: 120
|
Posted: Fri Apr 27, 2012 11:58 pm Post subject: |
|
|
well, it turned up that something in my alsa configuration was wrong, and that effects of misconfiguration had been triggered by a kernel upgrade from 2.6.32-r24 to 3.2.12.
Here is the full story ([solved] Could not open playback device 'default'):
https://forums.gentoo.org/viewtopic-t-920572-highlight-.html
while the solution (I admit, extreme and noobish) was just as follows:
emerge --unmerge alsa-headers alsa-lib alsa-utils alsa-oss
cd
#backup:
mv /var/lib/alsa var_lib_alsa
emerge alsa-oss alsa-utils --keep-going --quiet-build
#this pulled in alsa-headers along with alsa-lib
and mplayer started working without errors, while playing better than before (reasonable volume response to settings).
As for the virtual machine, in the script that launches it, there was no more need of setting environment variables, while before I had to set the appropriate combination in the following:
#SDL_AUDIODRIVER=alsa
#AUDIODEV=hw
#QEMU_AUDIO_DRV=sdl
#QEMU_AUDIO_DRV=alsa
#QEMU_SDL_SAMPLES=2048 _________________ The free men's path is always obstructed by mediocrity. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|