Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jul 2014 11:29:07 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, Mark Johnston <markj@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r268584 - head/sys/dev/sound/pci/hda
Message-ID:  <53D4B853.8040305@FreeBSD.org>
In-Reply-To: <CAJ-VmomUm7JdNk-aX2UOKQMO9LhRh6LhPTNBQu8MCJ%2BPtnWLKw@mail.gmail.com>
References:  <201407131031.s6DAVTja093433@svn.freebsd.org>	<CAJ-Vmo=hsK6k6VPcig69srL%2BV_AO5yQo4z%2B2XycvGB6_fRwSGg@mail.gmail.com>	<53C335EF.2090606@FreeBSD.org> <CAJ-VmomUm7JdNk-aX2UOKQMO9LhRh6LhPTNBQu8MCJ%2BPtnWLKw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27.07.2014 11:20, Adrian Chadd wrote:
> ok, so how do I figure out what the right patch should be?
> 
> pcm0: <Conexant CX20561 (Hermosa) (Front Analog)> at nid 22 and 24 on hdaa0
> pcm1: <Conexant CX20561 (Hermosa) (Internal Analog)> at nid 26 and 29 on hdaa0
> 
> .. and
> 
> hdac0@pci0:0:27:0: class=0x040300 card=0x20f217aa chip=0x293e8086
> rev=0x03 hdr=0x00

Technically there is not all of required info shown above, but assuming
some likeness I would try this (just replace ZZZ with your model name):

Index: hdaa_patches.c
===================================================================
--- hdaa_patches.c      (revision 269151)
+++ hdaa_patches.c      (working copy)
@@ -340,7 +340,8 @@ hdac_pin_patch(struct hdaa_widget *w)
                }
            }
        } else if (id == HDA_CODEC_CX20561 &&
-           subid == LENOVO_B450_SUBVENDOR) {
+           (subid == LENOVO_B450_SUBVENDOR ||
+           subid == LENOVO_ZZZ_SUBVENDOR)) {
                switch (nid) {
                case 22:
                        patch = "as=1 seq=15";
Index: hdac.h
===================================================================
--- hdac.h      (revision 269151)
+++ hdac.h      (working copy)
@@ -236,6 +236,7 @@
 #define        LENOVO_X1CRBN_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21f9)
 #define LENOVO_X220_SUBVENDOR  HDA_MODEL_CONSTRUCT(LENOVO, 0x21da)
 #define LENOVO_X300_SUBVENDOR  HDA_MODEL_CONSTRUCT(LENOVO, 0x20ac)
+#define LENOVO_ZZZ_SUBVENDOR   HDA_MODEL_CONSTRUCT(LENOVO, 0x20f2)
 #define        LENOVO_T420_SUBVENDOR   HDA_MODEL_CONSTRUCT(LENOVO, 0x21ce)
 #define        LENOVO_T430_SUBVENDOR   HDA_MODEL_CONSTRUCT(LENOVO, 0x21f3)
 #define        LENOVO_T430S_SUBVENDOR  HDA_MODEL_CONSTRUCT(LENOVO, 0x21fb)

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53D4B853.8040305>