From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkoHr-0000Wc-Md for qemu-devel@nongnu.org; Wed, 22 Apr 2015 02:37:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkoHo-0007dH-BV for qemu-devel@nongnu.org; Wed, 22 Apr 2015 02:37:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkoHo-0007d0-7H for qemu-devel@nongnu.org; Wed, 22 Apr 2015 02:37:28 -0400 Message-ID: <1429684644.14806.27.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Wed, 22 Apr 2015 08:37:24 +0200 In-Reply-To: <1646928490.3623689.1429636472739.JavaMail.zimbra@redhat.com> References: <512726257.3420220.1429621594605.JavaMail.zimbra@redhat.com> <1429635048-30665-1-git-send-email-martin.wilck@ts.fujitsu.com> <1646928490.3623689.1429636472739.JavaMail.zimbra@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hda-codec: use smaller dynamic range for input amplifier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Marc-Andr=E9?= Lureau Cc: Martin Wilck , qemu-devel@nongnu.org Hi, > > The "right" solution for this problem would be to implement > > proper dB scaling in QEMU and the audio backends (such as spice). Can we try this please? > > While this clean solution is not available, I suggest to decrease > > the dynamic range for the the emulated Amps in the QEMU hda codec. > > Experiments showed that with 32dB dynamic range with a 0.5 dB step, > > it was possible to set gain values as low as 5 (-29.5dB / 8%). > > Actual HW seems to use similar ranges for input amplifiers. > I am afraid guest OS won't like it the card description changes after a migration. > This will likely need a new VMState field, for the steps, or the amp caps. Correct. This is a guest-visible change, so we have to make this runtime-switchable for compatibility with older qemu versions. This quickly becomes a bit messy, so I'd prefer to avoid this. cheers, Gerd