Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2994397rdb; Tue, 13 Feb 2024 03:56:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTyyBkE+q4v7tnWSqt5a3VwbxA6gxSkSYB4wNQfrGlN0HF61/v1wKo9lDuLJVsmjwoXLwk8gaPuBmO1KL22zJuiAgYfVWabvMuINesxg== X-Google-Smtp-Source: AGHT+IHhfk7AYMpjyFQ7qyneqVf+v/gE1mxbqYci27tgwlQN5DnPU7MK1UiMEZMXdRryvqvFAr0x X-Received: by 2002:a17:906:454f:b0:a3c:c89b:38ef with SMTP id s15-20020a170906454f00b00a3cc89b38efmr3489544ejq.74.1707825403765; Tue, 13 Feb 2024 03:56:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707825403; cv=pass; d=google.com; s=arc-20160816; b=NceI2UT87K+lWbFKdbq4QSfBwKaTAtac3Kux8/oN18oB5hGae5/Xl6JWrbe9jV8a5P 4jvSuOnDG0atGH/SEMt3GVfwseyNf25X47sGz77QFx6pPKdxCKa7uqddefLW6W1zDDOZ VmyOg0LBSQ6ny/Yx4K3qnYBp5C00/Va0XhgoagMhI5p/MVn7xgXRbh/YY/o2MPZFNEyf z9K2ZRVCk3jZd92hdKg7iOHAkWO5dwpPbZeVaOaTS7EXzH0lx+my3iOp1+gZ4FcOafeL 6jkGn9KWCS6yr3q9mex4dodxn57Px8cPgYxXK8GDhFuH1Y/8pIqEVWXsWQnWbC2jMx0m qyoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=zdZyvgYPBQJDkU+5nXmVSJQwMHfnGYfuPE6w4sZ9NNI=; fh=CEMemPBSxJm4QyOy0NhFkhNphuQQqnl2tNdmWQpDpqc=; b=DE555zv0m5ZjzYcE/Du9f9cYId4x/3JW0a5BIB+fdaMZL1ydXwbBuP3ZwJXIB/VV3x neZGMQfRCsmDBZNs5G+3JP8UXxJvn1cvKDA4FbRb32C5DpquS+nBsEciHdaElFczFAs5 79z35z9Pjck1xI1urF3ZOnj1n+Kr7jZVRENXh7lRJL6lTwEvb878h8EYZweoYTz+dFZn WyUfoB68m+T52S3F3o/JQkVOBMeUYrrZMO3yo9QU4EUJ5z2I+6OxlvCT4lgNpDsnRsng VAycXi68yUTTOpYZkoJMgtsbxddXNhPht1Ls33NMLc8JCkJQH51xCsmpBPCNdyFG5qam OIBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GN2cMZVA; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-63471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCXl1ir8BaopvEWv1YjzQJpyAaxhxEEnmtfj37Y0jEX7I7UNTT+XZRJIoqa2nHKRvqEnV0uqq48MdbqptwsVCHQV0hu2qv9watT6yym/sQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id mf11-20020a170906cb8b00b00a3cf5b63575si749784ejb.452.2024.02.13.03.56.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:56:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GN2cMZVA; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-63471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5BE8F1F23F48 for ; Tue, 13 Feb 2024 11:56:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2352383B9; Tue, 13 Feb 2024 11:56:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GN2cMZVA" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5773136AF0; Tue, 13 Feb 2024 11:56:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707825396; cv=none; b=cBfjbGnUD+PV97GOYUJDkWgsPAX+jZJH1tw4NuOxrIwr1RzOyxtIAhQESTo2K8nF2BUO0VXr2kScLelRGSvjJr3VHf3NHcQ7YYcouv+ZcrjmlZeRFOvYq/PTLWPEA2ueHMV9SEIgmZpS56+2XuoCu8bm/hexwwaAdr+2GItaSHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707825396; c=relaxed/simple; bh=qxXy/4C00miKD08z6hE3dWYxSISHDwA054ygcHf/2YA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XOR0pwnBPRG8hlb3REdmtr8cfzZcVJt5vAOJPJCGbMkv0XyLBULHyOU8n61Rtk0bH2qoDJCQKzVIdu0VOsotipu5mMd8725Jki6gOkFRKB4rjrq3N8MjhDrM+lE3AxbnxlDvCC2q7WK6EWzZzWWlWyop7zJdU5ZXj4hTrhYMBhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GN2cMZVA; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a3c1a6c10bbso345156366b.3; Tue, 13 Feb 2024 03:56:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707825392; x=1708430192; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zdZyvgYPBQJDkU+5nXmVSJQwMHfnGYfuPE6w4sZ9NNI=; b=GN2cMZVAddDa5LhXsWjGEo1LhxsYzGRJ07NY2KAyFJFzoVdD1y3RCEx+u1EwoZ8FiQ eruIkMEZBjTPXv7aRP4o7/LfMvn3berCpKxDgJ940Kc0zeCb/wHANyHxVLgWlrnJFPLk DZVbcsRDdsb7GAenJXPyYTIDI/kOga4fDzTmZ/eE3ZKdk0xk4O0jj+a4rhE2ZU32X3DB 8zxTmz0tMcuSLqaHd/lGPrGmk3zhV7V+hv85nmaHlHlxBIYJp56RsrMDY7SOsZX9D36i vtTAId/v0YrZIfLv0c8h2tCLyioPrsygw2uWbmpI5RS5kdyZiWFo63u91oWbuONaisLB 0odA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707825392; x=1708430192; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zdZyvgYPBQJDkU+5nXmVSJQwMHfnGYfuPE6w4sZ9NNI=; b=r91SqOKmfFocR50UfXzv9YUYytxEi2xdKawoSfX0GqhzkmfTYnPkJbuH95El7MoLcF GfAZstl5+g4BJdFASevmFqkK+pK383gVwbZU6AdafwX0SrF+w2j3bGBG8fUycIuhLiTq Ul2+wixieFj0S+oWoXcwAquc1Ts6yx12AQqWakkxFfRdfih8S9LpRSRASKSCJIr1frST lSwX9MeXgurTDw3pzxWdlbFMcfLBm+Vj/xAHEHroMjBJ6oVekpDTOoScmaUWR/r5ymcs V1DB6439fyl2BByf+8g380hv+prL70CMR/9Kitht40k+j8JIxsc53mMkO8DUKugMeE11 uoVQ== X-Forwarded-Encrypted: i=1; AJvYcCWzYXhCwGxx3Iz6mPxLL6pkbWsZNMbFEhIrYxX0kaTUXhao5TQ6hxQPJduX7LSdwRNoUKZZ+744y+T5tIPHil6D8eGRJ5GCMrXWkQp7f7460r1zlLuex63EhD0nEGUmJlILo/PsfvaCYfg= X-Gm-Message-State: AOJu0YwMDfuE/1WuYGeNxTzKgwWT3LUCMg+O5oyiq3IPe4DJ81aPxiJb PeiE4tCvDXrWWX9ltPlqAzoIO57Fzwxv0BDEzkarOlZmcFlX+mii X-Received: by 2002:a17:906:a392:b0:a3c:c97e:7d64 with SMTP id k18-20020a170906a39200b00a3cc97e7d64mr3576268ejz.48.1707825392367; Tue, 13 Feb 2024 03:56:32 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWiR4FYMHwWf5HfXJFc5o/vmOXgOdH+m1QxxIMk+tMNt/b0/PEPFeNwzT49q7WLJHVcXpEdBL5qRrfyu04SsgH3Nx7bzCM5ui7pa28OzCBo/NCBYJXYmMNGostuyZ3lBo70R9Y0Y3UIp5EZKq1EWGyWRW2Z20YIEQrtajQU9tyafMchFwib/cN4QVFmsWQIL6hYN94ff6wJMEJc3xyBwwc3ufmHSZAsaEYGlCm4dT9xSGUJmOPauaWart7nitRjNanOpmUd+G+8pwX9qbJPDyxuobBvE18Zdf+VKKPllKI557luRdMllm3qce99BUkhmTWb6iogLSQ5mf4yrVADtIThf7Z4eJqqEZcbMXRZtI/nq1Jp5QgKf0VngjTuWyMsWv5VrBZ0djf8nLDeCDItvNj2JQeWmQjfZiNZZs2oQ+y//tcaD6Z/aal5oJOs615rCwBylYAXceT/oXtHYsnzAaZT2c0deEX2lGqyAb2C+f/l6x5NA2sSsOU2Qngjt4SErQ8SOpxLRu9ZDop80UzGgV9mEpLNjUy0aA== Received: from tkudela.. (c156-103.icpnet.pl. [85.221.156.103]) by smtp.gmail.com with ESMTPSA id k13-20020a170906a38d00b00a3cb2295aefsm1210723ejz.205.2024.02.13.03.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:56:32 -0800 (PST) From: Tomasz Kudela To: sbinding@opensource.cirrus.com Cc: alsa-devel@alsa-project.org, andy.chi@canonical.com, david.rhodes@cirrus.com, james.schulman@cirrus.com, kailang@realtek.com, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, luke@ljones.dev, patches@opensource.cirrus.com, perex@perex.cz, ramzes005@gmail.com, rf@opensource.cirrus.com, ruinairas1992@gmail.com, shenghao-ding@ti.com, tiwai@suse.com, vitalyr@opensource.cirrus.com Subject: [PATCH v3] Add Lenovo Legion 7i gen7 sound quirk Date: Tue, 13 Feb 2024 12:56:14 +0100 Message-Id: <20240213115614.10420-1-ramzes005@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <000101da5e63$6a2565e0$3e7031a0$@opensource.cirrus.com> References: <000101da5e63$6a2565e0$3e7031a0$@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Tomasz Kudela" Add sound support for the Legion 7i gen7 laptop (16IAX7). Signed-off-by: Tomasz Kudela --- sound/pci/hda/cs35l41_hda_property.c | 2 ++ sound/pci/hda/patch_realtek.c | 1 + 2 files changed, 3 insertions(+) diff --git a/sound/pci/hda/cs35l41_hda_property.c b/sound/pci/hda/cs35l41_hda_property.c index d74cf11eef1e..57b21285ab6a 100644 --- a/sound/pci/hda/cs35l41_hda_property.c +++ b/sound/pci/hda/cs35l41_hda_property.c @@ -95,6 +95,7 @@ static const struct cs35l41_config cs35l41_config_table[] = { { "10431F12", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 }, { "10431F1F", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, -1, 0, 0, 0, 0 }, { "10431F62", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 0, 0, 0 }, + { "17AA386F", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 }, { "17AA38B4", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 }, { "17AA38B5", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 }, { "17AA38B6", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 }, @@ -431,6 +432,7 @@ static const struct cs35l41_prop_model cs35l41_prop_model_table[] = { { "CSC3551", "10431F12", generic_dsd_config }, { "CSC3551", "10431F1F", generic_dsd_config }, { "CSC3551", "10431F62", generic_dsd_config }, + { "CSC3551", "17AA386F", generic_dsd_config }, { "CSC3551", "17AA38B4", generic_dsd_config }, { "CSC3551", "17AA38B5", generic_dsd_config }, { "CSC3551", "17AA38B6", generic_dsd_config }, diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 6994c4c5073c..0029f61d4693 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -10260,6 +10260,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x3853, "Lenovo Yoga 7 15ITL5", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS), SND_PCI_QUIRK(0x17aa, 0x3855, "Legion 7 16ITHG6", ALC287_FIXUP_LEGION_16ITHG6), SND_PCI_QUIRK(0x17aa, 0x3869, "Lenovo Yoga7 14IAL7", ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN), + SND_PCI_QUIRK(0x17aa, 0x386f, "Legion 7i 16IAX7", ALC287_FIXUP_CS35L41_I2C_2), SND_PCI_QUIRK(0x17aa, 0x3870, "Lenovo Yoga 7 14ARB7", ALC287_FIXUP_YOGA7_14ARB7_I2C), SND_PCI_QUIRK(0x17aa, 0x387d, "Yoga S780-16 pro Quad AAC", ALC287_FIXUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x387e, "Yoga S780-16 pro Quad YC", ALC287_FIXUP_TAS2781_I2C), -- 2.34.1