From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: qemu/kvm seems to take ALSA all for itself? Date: Wed, 23 May 2007 15:34:35 +0300 Message-ID: <465434DB.2040103@qumranet.com> References: <64F9B87B6B770947A9F8391472E032160BE40BE9@ehost011-8.exch011.intermedia.net> <20070521210459.GA5594@localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, David Abrahams To: Jon Return-path: In-Reply-To: <20070521210459.GA5594@localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Jon wrote: > On Mon, May 21, 2007 at 08:37:48AM -0700, Shahar Frank wrote: > > >> 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. >> > > >From the ALSA wiki: > > "For ALSA 1.0.9rc2 and higher you don't need to setup dmix. Dmix is > enabled as default for soundcards which don't support hw mixing." > > I've found this to be the case on my laptop, where I use: > > export QEMU_AUDIO_DRV=alsa > export QEMU_AUDIO_DAC_FIXED_FREQ=48000 > export QEMU_AUDIO_ADC_FIXED_FREQ=48000 > export QEMU_ALSA_DAC_BUFFER_SIZE=16384 > > Buffer size is very important, else it crackles and pops for me. > > This works for me (alsa 1.0.14rc3). Thanks. > Now if only sound could survive a loadvm/savevm it'd be perfect. :-) > Is qemu-devel aware of this issue? -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- 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/