From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 12 17:57:13 2008 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33C071065672; Wed, 12 Nov 2008 17:57:13 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 2DF9E8FC19; Wed, 12 Nov 2008 17:57:11 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA23233; Wed, 12 Nov 2008 19:57:09 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491B18F4.10501@icyb.net.ua> Date: Wed, 12 Nov 2008 19:57:08 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: Alexander Motin References: <4910CD23.9090902@icyb.net.ua> <491162E9.4020400@FreeBSD.org> <4911AA93.9050603@icyb.net.ua> <4911B9FE.6000505@FreeBSD.org> <4912E1A5.6040206@icyb.net.ua> <491AEB24.8030109@icyb.net.ua> <491AFF68.9080104@FreeBSD.org> <491B0D30.2050102@icyb.net.ua> <491B1023.2090605@icyb.net.ua> In-Reply-To: <491B1023.2090605@icyb.net.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org Subject: Re: Intel 82801I hda, STAC9271D codec: problem(s) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 17:57:13 -0000 And one more thing, glimpsed from linux: http://lxr.linux.no/linux+v2.6.27.5/sound/pci/hda/patch_sigmatel.c#L690 It seems that they program Volume Knob widget to use direct control of sub-ordinate amplifiers and set the volume to max. I hacked our driver to do the same by adding the following: +#if 1 + if (w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_VOLUME_WIDGET) { + hdac_command(sc, + HDA_CMD_SET_VOLUME_KNOB(cad, nid, 0xff), cad); + } +#endif And it seems that I got louder volume with the same mixer settings as before. But maybe this is a psychological effect. -- Andriy Gapon