Hi!

So I have an X230 and a T400 - both require fiddling of the default
sound unit sysctl when I want to use headphones.

Does this above patch outline what I need to do to get it working dynamically?


-a


On 13 July 2014 03:31, Mark Johnston <ma...@freebsd.org> wrote:
> Author: markj
> Date: Sun Jul 13 10:31:29 2014
> New Revision: 268584
> URL: http://svnweb.freebsd.org/changeset/base/268584
>
> Log:
>   Add a headphone redirection quirk for the Lenovo G580.
>
>   MFC after:    1 week
>
> Modified:
>   head/sys/dev/sound/pci/hda/hdaa_patches.c
>   head/sys/dev/sound/pci/hda/hdac.h
>
> Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c
> ==============================================================================
> --- head/sys/dev/sound/pci/hda/hdaa_patches.c   Sun Jul 13 09:34:59 2014      
>   (r268583)
> +++ head/sys/dev/sound/pci/hda/hdaa_patches.c   Sun Jul 13 10:31:29 2014      
>   (r268584)
> @@ -350,7 +350,8 @@ hdac_pin_patch(struct hdaa_widget *w)
>             (subid == LENOVO_X1_SUBVENDOR ||
>             subid == LENOVO_X220_SUBVENDOR ||
>             subid == LENOVO_T420_SUBVENDOR ||
> -           subid == LENOVO_T520_SUBVENDOR)) {
> +           subid == LENOVO_T520_SUBVENDOR ||
> +           subid == LENOVO_G580_SUBVENDOR)) {
>                 switch (nid) {
>                 case 25:
>                         patch = "as=1 seq=15";
>
> Modified: head/sys/dev/sound/pci/hda/hdac.h
> ==============================================================================
> --- head/sys/dev/sound/pci/hda/hdac.h   Sun Jul 13 09:34:59 2014        
> (r268583)
> +++ head/sys/dev/sound/pci/hda/hdac.h   Sun Jul 13 10:31:29 2014        
> (r268584)
> @@ -241,6 +241,7 @@
>  #define        LENOVO_T430S_SUBVENDOR  HDA_MODEL_CONSTRUCT(LENOVO, 0x21fb)
>  #define        LENOVO_T520_SUBVENDOR   HDA_MODEL_CONSTRUCT(LENOVO, 0x21cf)
>  #define        LENOVO_T530_SUBVENDOR   HDA_MODEL_CONSTRUCT(LENOVO, 0x21f6)
> +#define        LENOVO_G580_SUBVENDOR   HDA_MODEL_CONSTRUCT(LENOVO, 0x3977)
>  #define LENOVO_ALL_SUBVENDOR   HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
>
>  /* Samsung */
>
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to