From patchwork Wed Feb 28 07:39:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawei Wang X-Patchwork-Id: 13574947 Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D17AE22F02 for ; Wed, 28 Feb 2024 07:39:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709105974; cv=none; b=fvksVRWNCSn60wUoPIiZpJ+OwJ5U2dyMWuV4mzlCogU0Ua8rBfkhPp6Ur1831jQxNxh3sGsRgKMCyXxXXFgD1AXSfIPiGOQq+UX4nKVvJMfuDAyvl8WclzpxziNHc0l5tnqAv68gjxTnYUei6jn0sjt2heOy8q+NywgLjlKTryg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709105974; c=relaxed/simple; bh=851+0y3kCXb+s4VEQeYlTsb/d7DFFOe39J0KhzyUK38=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jPRcLGQ790wr7VfhT2/5nnUkePvHKijOG0T0Qf9Du0O59j2dDvFZX4HB0l7ZM5EUkncp6t6UWY55tHLxDRcDvR2wv697mtlT4dil10YWOMu96xMymCQs6tNq3v6X0TPJ9D1FDCI0jCQU06NOuJBbXGgOd4Fi7bfEQuh4CvvOqjs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jwang.link; spf=pass smtp.mailfrom=jwang.link; dkim=pass (2048-bit key) header.d=jwang.link header.i=@jwang.link header.b=HVIwNPIL; arc=none smtp.client-ip=91.218.175.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jwang.link Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jwang.link Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jwang.link header.i=@jwang.link header.b="HVIwNPIL" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jwang.link; s=key1; t=1709105967; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hK42Y3R+o00YFBay1MHIpPCN4AJq6m3H5mLk1XVwoVQ=; b=HVIwNPILNliDDHU4Cxpf2pvrmDxCo7karBwagvjulkzIluqUBpKSTbBkUB7ZzCZ9hAcL16 Hedv92VvOvTOFjmv/UYhhoE5BO6y+1ZtHKhAUY4B+UXIvYQ367VDvLqlZlYRVNsk1LFZrq KBlmqlUFVMaEJdghSbTQi9zR4pB9PhUcWFclIUcxIhCxpbcezqmnKbsjBYse0p9KJkylz+ Br2G4sgK+YIEDMAf1ZhbmrfR5fqKA8zhRqbQbL6oIh5UdOcPXEpUzeCOs/c5ULU/4p35bl oa1Z32TI6dR1apjdcDgy1TBxd+XsncUv0H9KXobav5sRxaXaYghD8/n5EOAvjQ== From: Jiawei Wang To: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Mark Brown Cc: linux-sound@vger.kernel.org, Jiawei Wang Subject: [PATCH 1/2] ASoC: amd: yc: add new YC platform variant (0x63) support Date: Wed, 28 Feb 2024 15:39:13 +0800 Message-Id: <20240228073914.232204-1-me@jwang.link> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT The Lenovo 21J2 (ThinkBook 16 G5+ APO) has this new variant, as detected with lspci: 64:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 63) Signed-off-by: Jiawei Wang --- sound/soc/amd/yc/pci-acp6x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/amd/yc/pci-acp6x.c b/sound/soc/amd/yc/pci-acp6x.c index 7af6a349b1d4..694b8e313902 100644 --- a/sound/soc/amd/yc/pci-acp6x.c +++ b/sound/soc/amd/yc/pci-acp6x.c @@ -162,6 +162,7 @@ static int snd_acp6x_probe(struct pci_dev *pci, /* Yellow Carp device check */ switch (pci->revision) { case 0x60: + case 0x63: case 0x6f: break; default: From patchwork Wed Feb 28 07:39:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawei Wang X-Patchwork-Id: 13574948 Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00FAD2262B for ; Wed, 28 Feb 2024 07:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709105976; cv=none; b=dFWwLVDLRUcgsNpJSTktbxKDVqpq1pWJn99xO8rp5Y0MPb2jak10Bx3A2ft6A/+lU0xc8ALeYrbmNzqp2xXiJ6VzI9c8rNGzs07ESI4ydQFIz94A0KwBfQ9wx5KIDvVkrx6RSt9hCtjkhTQCaOxGr9n/twt+4O9BDQzEZsubDQU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709105976; c=relaxed/simple; bh=30+IE/wX+J+GmGYD58bOq80Psm6oAk56MlPcFLN+60c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=D51wHsvTqghPhyj6NutDNdocPY61GT5RZA1fy2r5enh9fOT01YVlZ8Kai8S7NW2OdWzYuM5asWUQVM9nzVaSmjdn0SAF1iXJ3JLgWdPCJ0tkLCQ788jks6wor7So5ucsw8vQRSaHXgnaoFgxgFrmVpsVsUuFag4w7sMOXmqWVLM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jwang.link; spf=pass smtp.mailfrom=jwang.link; dkim=pass (2048-bit key) header.d=jwang.link header.i=@jwang.link header.b=TEw+YIVd; arc=none smtp.client-ip=91.218.175.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jwang.link Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jwang.link Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jwang.link header.i=@jwang.link header.b="TEw+YIVd" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jwang.link; s=key1; t=1709105972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ndKq2eVWKXYErGnWKFXFB9z2FnzOLNeieDO4qh9C7k4=; b=TEw+YIVd2tdlyZKBfc7ph4Na1+6jK5DlxpuozWuWwk/DtVkfWqailE8/prapPkY9tmU6F9 XHT4xp7++EBj3sriAbWWikyx4AGqvR53b30vV/ByoGuVpLT959sdWX310ImUCPloABbnb3 GxVdcUOS+cPh75rTskua+qYLAx/dBbHvMHT7RBPTD9zB8x+wFiftsbaZjaG3wFwrR8vjW1 2xebQqdG8XmSwvj7CiOHxT3BHRRHCJFpqWzeHjP41J7dqQi3YAYquHQnLNF+herQQSFA6B cK4vY2hQ9CQqXrjG8qeG404uTLsHaHFLDC5MbUKagVJhts/0UJwgp1OZ+akdpA== From: Jiawei Wang To: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Mark Brown Cc: linux-sound@vger.kernel.org, Jiawei Wang Subject: [PATCH 2/2] ASoC: amd: yc: Fix non-functional mic on Lenovo 21J2 Date: Wed, 28 Feb 2024 15:39:14 +0800 Message-Id: <20240228073914.232204-2-me@jwang.link> In-Reply-To: <20240228073914.232204-1-me@jwang.link> References: <20240228073914.232204-1-me@jwang.link> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Like many other models, the Lenovo 21J2 (ThinkBook 16 G5+ APO) needs a quirk entry for the internal microphone to function. Signed-off-by: Jiawei Wang --- sound/soc/amd/yc/acp6x-mach.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/amd/yc/acp6x-mach.c b/sound/soc/amd/yc/acp6x-mach.c index cc231185d72c..895e73243921 100644 --- a/sound/soc/amd/yc/acp6x-mach.c +++ b/sound/soc/amd/yc/acp6x-mach.c @@ -199,6 +199,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "21HY"), } }, + { + .driver_data = &acp6x_card, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "21J2"), + } + }, { .driver_data = &acp6x_card, .matches = {