Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No sound in QEMU/KVM guests
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Almad
n00b
n00b


Joined: 29 Apr 2005
Posts: 17

PostPosted: Tue May 06, 2008 9:03 pm    Post subject: No sound in QEMU/KVM guests Reply with quote

Hello,

I'm having 32bit debian running under kvm using this script:

Code:

#!/bin/bash
set -x
User=$USER
TAP=$(sudo tunctl -b -u $User)
sudo /sbin/ifconfig $TAP 0.0.0.0 promisc up
sudo /sbin/brctl addif br0 $TAP
export QEMU_AUDIO_DRV=alsa
export QEMU_ALSA_DAC_PERIOD_SIZE=1024
kvm -hda /var/virtuals/debian-x86.cow -hdb /var/virtuals/sharedprojects.img -soundhw es1370 -m 1024 -localtime -no-acpi -net nic -net tap,ifname=$TAP,script=no
sudo tunctl -d $TAP


However, when starting up, I get this output in console:

Code:

alsa: Could not initialize DAC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac2'
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.adc'


Card is otherwise working fine on host, plus it's blocked when I start guest. There is a hint on alsa faq, but I'm not able to resolve it, ie.e. what do I need in .asoundrc on perfectly working card, or is there any tool to create it (and will it help?).

USE=alsa for compilations set, kvm-audio-help shows alsa.

Any suggestions?
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4987
Location: Dark side of the mood

PostPosted: Wed May 07, 2008 6:37 am    Post subject: Reply with quote

What version of KVM are you using? Did you compile it manually or did you use a custom ebuild?

I personnally never had to use environment variables with Qemu/KVM. Sound always worked without. But I compiled KVM/Qemu with ALSA support. Have you tried without QEMU_AUDIO_DRV and QEMU_ALSA_DAC_PERIOD_SIZE?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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