public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: qemu/kvm seems to take ALSA all for itself?
@ 2007-05-21 15:37 Shahar Frank
       [not found] ` <64F9B87B6B770947A9F8391472E032160BE40BE9-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Shahar Frank @ 2007-05-21 15:37 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

You have to make QEMU use ALSA as your sound system and specify a mixer
device for input and output. This can be done using some environment
variables that should be set before the qemu binary is run.

The following may work:

export QEMU_AUDIO_DRV=alsa	   # the default is OSS if I recall
correctly
export QEMU_ASLA_DAC_DEV=dmix    # for playback mixing
export QEMU_ALSA_ADC_DEV=dsnoop  # for record mixing

Of course you have to install and configure dmix and dsnoop in your alsa
sub-system. Dmix/sdnoop may or may not be installed and configured by
your distribution. Take a look at /usr/share/alsa/alsa.conf (may be in
other location in your system).

I hope this somehow helps,

Shahar

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* qemu/kvm seems to take ALSA all for itself?
@ 2007-05-21 14:29 David Abrahams
       [not found] ` <87ps4umerx.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: David Abrahams @ 2007-05-21 14:29 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: qemu-devel-qX2TKyscuCcdnm+yROfE0A


When I have windows XP running under kvm, I get 

  dave@grogan:/tmp$ aplay /usr/share/sounds/gaim/receive.wav 
  ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
  aplay: main:550: audio open error: Device or resource busy

As soon as I shut down my VM, though, it works perfectly.  Is this
expected behavior?

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-05-02 16:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21 15:37 qemu/kvm seems to take ALSA all for itself? Shahar Frank
     [not found] ` <64F9B87B6B770947A9F8391472E032160BE40BE9-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-05-21 21:04   ` Jon
2007-05-23 12:34     ` Avi Kivity
     [not found]       ` <465434DB.2040103-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-05-23 13:15         ` David Abrahams
     [not found]           ` <87abvv4r6v.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-05-24  6:55             ` Avi Kivity
2008-05-01 19:50     ` David Abrahams
2008-05-02 10:19       ` Avi Kivity
2008-05-02 16:38         ` David Abrahams
  -- strict thread matches above, loose matches on Subject: below --
2007-05-21 14:29 David Abrahams
     [not found] ` <87ps4umerx.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-05-21 14:37   ` Avi Kivity
2007-05-23  2:37     ` David Abrahams
     [not found]       ` <87zm3wcliz.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-05-23 10:05         ` Andreas Hasenack
2007-05-23 12:28         ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox