From nobody Thu Jun 06 15:12:45 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vw79n2lctz5Mw6m; Thu, 06 Jun 2024 15:12:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vw79n1pzQz4KdM; Thu, 6 Jun 2024 15:12:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717686765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WjrMvUQsH/meMnrFPYY57P49cytwTCYKrxdPTrnna+E=; b=QGMkhQGE0zHtJwVY21YLpiVOpHNSgLCRK9qYscBQVFrcewOkYH/MfOHrL1OEKl413oaoEm 9eE1F8lEV922cIM330hEclBsZi6yhWyanh1bxZsJG093FU9Gmhx3sV+8WYl0+sW67zuRmj 3Hk45MtF9ETQc8tHzjmUAH/udA/gK39psSNyXsT12ghX+b3lHHp59I7KXr8gysiVtPilJh pWj5VzJ8VVgdTIOxQ+Vq/514zi8lPCgF2P4/ykriLsWYUScomBGnYuoyxa7j+iav9ZMqVC +7KiAR5+rRCDZxfk50D3YDpskYnxlsf6X+JYDlMFPFro2BELBN1Aftq72RpHDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717686765; a=rsa-sha256; cv=none; b=kHlCmfFVYC9hho24HGD0HGbba6dkj/V2+ujTJGw1SvcQW4lwY3t5uC1v0cQRKaFQDfmJjx wMKSYSyHeYvY27oVOKTXjlT645fbZpW7wPuogxnqOtmQXeqQdqqNEGI5+3ZYP1PKsK+ox/ aTpqEVkKQrr1+LGHCXsp2Kzz2cQpu8eLe+revj26EScezeuGksTA0At7BEVWo618u5Mqfd aQwhwgDYcQPIfpiRZYu68fGdn82phApO0biDIp2vYUMhYGPVZvAF5baq/2zwfsAaSt5ua5 VdSbIDhiVC5P31GqAgx93sfEBUv0xQxUWa8+pwEhraOh+4hN74v+hqob/lvxXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717686765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WjrMvUQsH/meMnrFPYY57P49cytwTCYKrxdPTrnna+E=; b=IE1GRUljZtmqRZRVZn/IihrKNS7KlARkJkRsFVjUZVxPHlV8IQT6WmaSLlY9p++NVz/egk tpr4O6UZA3eQhu4E7S7eHyfuwUdWprtv6uufycIxMjhvRanfFC+darK6x2L9oImSc8SDeR 37tLn2o3Ae54cHyipDBz1k19+0wqpBAmP2nl/ks9wdmPzAq78eXTJXKe992mVZK2Q/xdJC zynvhd1P4ptMZAMQOkWuswkCUCZbw0O9lVG5KSDPPW9vWPRGJIOWxXv5lrBMEHoy+P/7Rq tRfiou1xYkfDHyS0ZKVm+v1AbxbvnXh77cxLMFlESSLS1gRAagcm7uHRhnjrTg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vw79n1QpKzrTp; Thu, 6 Jun 2024 15:12:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 456FCjTS065196; Thu, 6 Jun 2024 15:12:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 456FCjq7065193; Thu, 6 Jun 2024 15:12:45 GMT (envelope-from git) Date: Thu, 6 Jun 2024 15:12:45 GMT Message-Id: <202406061512.456FCjq7065193@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 4987c12cb878 - stable/14 - snd_hda: Add Lenovo X1 Carbon Gen11 support List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4987c12cb878b77b315e7cd8d75ffb3a9ffc7512 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=4987c12cb878b77b315e7cd8d75ffb3a9ffc7512 commit 4987c12cb878b77b315e7cd8d75ffb3a9ffc7512 Author: Oleksandr Kryvulia AuthorDate: 2024-06-04 00:00:12 +0000 Commit: Christos Margiolis CommitDate: 2024-06-06 15:12:15 +0000 snd_hda: Add Lenovo X1 Carbon Gen11 support MFC after: 2 days Reviewed by: christos Differential Revision: https://reviews.freebsd.org/D45361 (cherry picked from commit ef659a2d041c01b747ae4605160c24156cae081b) --- sys/dev/sound/pci/hda/hdac.h | 2 ++ sys/dev/sound/pci/hda/pin_patch_realtek.h | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/sys/dev/sound/pci/hda/hdac.h b/sys/dev/sound/pci/hda/hdac.h index 6b6bc58a4818..191c835595ef 100644 --- a/sys/dev/sound/pci/hda/hdac.h +++ b/sys/dev/sound/pci/hda/hdac.h @@ -379,6 +379,7 @@ #define LENOVO_X230_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21fa) #define LENOVO_X230T_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2203) #define LENOVO_T431S_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2208) +#define LENOVO_X1CRBNG11_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2315) #define LENOVO_G580_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3977) #define LENOVO_L5AMD_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x381b) #define LENOVO_L5INTEL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x380f) @@ -573,6 +574,7 @@ #define HDA_CODEC_ALC284 HDA_CODEC_CONSTRUCT(REALTEK, 0x0284) #define HDA_CODEC_ALC285 HDA_CODEC_CONSTRUCT(REALTEK, 0x0285) #define HDA_CODEC_ALC286 HDA_CODEC_CONSTRUCT(REALTEK, 0x0286) +#define HDA_CODEC_ALC287 HDA_CODEC_CONSTRUCT(REALTEK, 0x0287) #define HDA_CODEC_ALC288 HDA_CODEC_CONSTRUCT(REALTEK, 0x0288) #define HDA_CODEC_ALC289 HDA_CODEC_CONSTRUCT(REALTEK, 0x0289) #define HDA_CODEC_ALC290 HDA_CODEC_CONSTRUCT(REALTEK, 0x0290) diff --git a/sys/dev/sound/pci/hda/pin_patch_realtek.h b/sys/dev/sound/pci/hda/pin_patch_realtek.h index 49afdedea8a1..abb03c92571b 100644 --- a/sys/dev/sound/pci/hda/pin_patch_realtek.h +++ b/sys/dev/sound/pci/hda/pin_patch_realtek.h @@ -582,6 +582,21 @@ static struct hdaa_model_pin_patch_t realtek_model_pin_patches[] = { } }, { } } + }, { /**** CODEC: HDA_CODEC_ALC287 ****/ + .id = HDA_CODEC_ALC287, + .patches = (struct model_pin_patch_t[]){ + { + .models = (struct pin_machine_model_t[]){ + PIN_SUBVENDOR(LENOVO_X1CRBNG11_SUBVENDOR), + { } + }, + .pin_patches = (struct pin_patch_t[]){ + PIN_PATCH_NOT_APPLICABLE(20), + PIN_PATCH_STRING(33, "as=1 seq=15 device=Headphones loc=Right"), + { } + } + }, { } + } }, { /**** CODEC: HDA_CODEC_ALC288 ****/ .id = HDA_CODEC_ALC288, .patches = (struct model_pin_patch_t[]){