Intel 82801I hda, STAC9271D codec: problem(s)

Alexander Motin mav at FreeBSD.org
Wed Nov 12 11:31:44 PST 2008


Andriy Gapon wrote:
> 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.

According to specification effect must be the same as setting this 
volume to all related controls directly. In your case as setting pcm and 
vol to 100.

-- 
Alexander Motin


More information about the freebsd-multimedia mailing list