From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 16 16:10:02 2009 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C853C1065679 for ; Wed, 16 Dec 2009 16:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9CD1F8FC14 for ; Wed, 16 Dec 2009 16:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBGGA2mT066302 for ; Wed, 16 Dec 2009 16:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBGGA2wG066301; Wed, 16 Dec 2009 16:10:02 GMT (envelope-from gnats) Date: Wed, 16 Dec 2009 16:10:02 GMT Message-Id: <200912161610.nBGGA2wG066301@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Marcin Wisnicki Cc: Subject: Re: kern/140453: [sound] No sound inside Virtualbox on 50% volume X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcin Wisnicki List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2009 16:10:02 -0000 The following reply was made to PR kern/140453; it has been noted by GNATS. From: Marcin Wisnicki To: Ariff Abdullah Cc: bug-followup@freebsd.org Subject: Re: kern/140453: [sound] No sound inside Virtualbox on 50% volume Date: Wed, 16 Dec 2009 17:03:12 +0100 On Wed, Dec 16, 2009 at 02:57, Ariff Abdullah wrote: > Virtualbox (QEMU too) default to 5bit volume resolution, but it > appears through the volume resolution calibration process as > 6bit. Clearly, it is a "hardware" bug. Virtualbox doing > slightly a better job by "clamping" the results (the lower bits > written as '1') whenever there is a write attempt on 5th (or > 13th) bit, but _without_ resetting those high bit. As such, it > appears as a full 6-bit resolution result on the next codec > read. FreeBSD try to be honest here by doing supposed to be > correct calibration process and see/measure the result as is. > Others probably have their own static > mapping (think about vendor specific driver) or depends on > whatever magic marker, etc. > > You have two choices: > > 1) Fix virtualbox ac97 codec emulation (probably not for you > given the fact that your vbox runs on Windows). > Good to hear it's a known problem. Is there any reason why this patch was not submitted to virtualbox (at least I couldn't find a ticket there) ? I don't really care about it since workaround is so simple, but it would be nice to have it working correctly out of the box. > or > > 2) "Fix" FreeBSD ac97 volume resolution calibration by > accepting certain lower bits magic marker, ignoring the high bit. > >