qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [HACK] hda: expose microphone instead of line-in


From: Jan Kiszka
Subject: [Qemu-devel] [HACK] hda: expose microphone instead of line-in
Date: Wed, 25 Apr 2012 13:03:00 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

Hi Gerd,

I had problems with Windows LiveMeeting expecting a microphone as
input. But the HDA model only exposes a line-in port. The following hack
works for me, but I bet there is a cleaner solution. Any suggestions?

BTW, sound output quality of a Win7 guest on my Linux hosts sucks while
it's fine for a Linux guest. I vaguely recall that Windows requests a
too small DAC buffer, is that true? Is there anything one can do about
this?

Jan


diff --git a/hw/hda-audio.c b/hw/hda-audio.c
index 8995519..bf28969 100644
--- a/hw/hda-audio.c
+++ b/hw/hda-audio.c
@@ -411,7 +411,7 @@ static const desc_node duplex_nodes[] = {
         .params  = duplex_params_audio_linein,
         .nparams = ARRAY_SIZE(duplex_params_audio_linein),
         .config  = ((AC_JACK_PORT_COMPLEX << AC_DEFCFG_PORT_CONN_SHIFT) |
-                    (AC_JACK_LINE_IN      << AC_DEFCFG_DEVICE_SHIFT)    |
+                    (AC_JACK_MIC_IN       << AC_DEFCFG_DEVICE_SHIFT)    |
                     (AC_JACK_CONN_UNKNOWN << AC_DEFCFG_CONN_TYPE_SHIFT) |
                     (AC_JACK_COLOR_RED    << AC_DEFCFG_COLOR_SHIFT)     |
                     0x20),

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux



reply via email to

[Prev in Thread] Current Thread [Next in Thread]