Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2800861rdb; Mon, 4 Dec 2023 07:56:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrFhcW1OFsfMJNR2RjcGDPtZyRaJguq8NYLWr5zdLJkwHJZjRk/1QVHuGmAh4EJtRrK8/C X-Received: by 2002:a05:6a20:ae27:b0:18f:97c:ba15 with SMTP id dp39-20020a056a20ae2700b0018f097cba15mr1995528pzb.111.1701705364919; Mon, 04 Dec 2023 07:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701705364; cv=none; d=google.com; s=arc-20160816; b=I1K/iP+aeQnjKglYUO5tQyvj8JyHpTeHrLZb+16ySAnyQaRTH9+kIfdFBz8LEIj8Cq 1QXCyoxS7HF8zNCb5P8RyI49gvCBKns3DkBT0ObaJfGlziydhn9MWUPVZBqnc0YnWAIo gYSrvIJJ2VcYcT0oBW+6xF1W1OwL7TW5hJevPxEn2WxSQERPOWxHwFF2FgUQAjNwisg4 aEIuW3Rfo3nje7pAKcCiFnfOJLmCdLBIZxtyRD5r0QuOTrzQADBweUQtgS+imAX4qvX3 h7xfhLyaPR878r4PKmfLp0WQD6V6fZtVo5k59hr35C0+ewfbpGdbckv/AMANGq8y/vd4 BQOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IZUWin5EelBcVCwXF9m42SDzkrRDDfJE27u7Pqz+/Ak=; fh=qxm0PpreOn7jB5vnGalCwUdV+ciNuoKXTKsviUB+ngo=; b=Igvi6UU4YpwfVdRJFEnIxN+yebdgP/SmFpOeoVPbDLgectnM7yxTXBZKt5WNTVQY9N 4L10OHQk/UPKu04psPskh/1ZWKKm9jmPK74UWYMlRyuDSQe+LVaU5DPDGlVUo/pt2C+O HRiPDNyFsmWOALaNnqKLi4zBqimkrGT9evvIltsShrvtnmUDfFKcPdX3qcG9OQAhnYXl LV5Jkijy2XZUEFJPxWq89RAAbp1d41J7XuxJLXJXVcIOnlDk5XZBLRcBesd5UxyYvaxE OyijiQLV6OtH5YLFXmHLQfQ+8PUYDz4Q1EPyaP+qfSiNDE1wqQuY1UR5sQd6ExdE/Ayt CyiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=JHp6evJF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id r9-20020a63d909000000b0058986c61bb6si8061678pgg.706.2023.12.04.07.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:56:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=JHp6evJF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6ADAC807C871; Mon, 4 Dec 2023 07:55:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234119AbjLDPym (ORCPT + 99 others); Mon, 4 Dec 2023 10:54:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbjLDPyl (ORCPT ); Mon, 4 Dec 2023 10:54:41 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD051A4; Mon, 4 Dec 2023 07:54:47 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3B4FgDvs016348; Mon, 4 Dec 2023 09:54:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= PODMain02222019; bh=IZUWin5EelBcVCwXF9m42SDzkrRDDfJE27u7Pqz+/Ak=; b= JHp6evJFr0W8eDl30hvb+oD3WVFRr9YfK2s+c48A9lp3rwO91aV2chXN1sbuZMOg bEmR/fTRfmHp7Zca6RTUNvct+kqjQwvdkmDzXehsbv++n3JsaRQB1YOkfFjDl4am jq3tMULEc8zr+6Z/gfaqU24YbPGDAHwGR9lEPbFl2kPDgLP74RzUl/GMUTacquQr S5+HSNBYqT5rPSZos6QUVl20nJA9VqiuXQIFzTdexHyhSj169fBiXtEExLKuQHAU W6OJFNsc0NWLjCkdoYr3PLN1t5/zIfDNGKQpedUJo67mlCU4COmiER8KPFc4gMBv 9bD2FzMLXATT62fYmFhoXg== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3ur1vnj3v7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 09:54:37 -0600 (CST) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 4 Dec 2023 15:54:35 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.40 via Frontend Transport; Mon, 4 Dec 2023 15:54:35 +0000 Received: from [198.90.251.82] (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.82]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id B9D94468; Mon, 4 Dec 2023 15:54:35 +0000 (UTC) Message-ID: Date: Mon, 4 Dec 2023 15:54:35 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] ASoC: Intel: soc-acpi-intel-tgl-match: add cs42l43 and cs35l56 support Content-Language: en-US To: Pierre-Louis Bossart , , , CC: , , , , , , References: <20231204135614.2169624-1-rf@opensource.cirrus.com> <8510b464-9352-480d-88cf-857597e16cbc@linux.intel.com> From: Richard Fitzgerald In-Reply-To: <8510b464-9352-480d-88cf-857597e16cbc@linux.intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: JC-uyXW0VORSYtc4g51NQ7HKt1O_BmeG X-Proofpoint-ORIG-GUID: JC-uyXW0VORSYtc4g51NQ7HKt1O_BmeG X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 07:55:10 -0800 (PST) On 04/12/2023 14:55, Pierre-Louis Bossart wrote: > > > On 12/4/23 07:56, Richard Fitzgerald wrote: >> From: Bard Liao >> >> This is a test configuration for UpExtreme with Cirrus Logic >> CS35L56-EIGHT-C board. >> >> The codec layout is configured as: >> - Link3: CS42L43 Jack >> - Link0: 2x CS35L56 Speaker (amps 1 and 2) >> - Link1: 2x CS35L56 Speaker (amps 7 and 8) >> >> Signed-off-by: Bard Liao >> Reviewed-by: Pierre-Louis Bossart >> Signed-off-by: Peter Ujfalusi >> Signed-off-by: Richard Fitzgerald >> --- >> Changes since V1: >> - Changed ALSA prefixes for CS35L56 to 'AMPn' >> - Renumbered the CS35L56 prefixes to match the numbering of the >> OUTn speaker sockets on the EIGHT-C board >> --- >> .../intel/common/soc-acpi-intel-tgl-match.c | 78 +++++++++++++++++++ >> 1 file changed, 78 insertions(+) >> >> diff --git a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c >> index 5804926c8b56..e5f721ba5ed4 100644 >> --- a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c >> +++ b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c > >> +static const struct snd_soc_acpi_adr_device cs35l56_0_adr[] = { >> + { >> + .adr = 0x00003301FA355601ull, >> + .num_endpoints = 1, >> + .endpoints = &spk_r_endpoint, >> + .name_prefix = "AMP1" >> + }, >> + { >> + .adr = 0x00003201FA355601ull, >> + .num_endpoints = 1, >> + .endpoints = &spk_3_endpoint, >> + .name_prefix = "AMP2" >> + } >> +}; >> + >> +static const struct snd_soc_acpi_adr_device cs35l56_1_adr[] = { >> + { >> + .adr = 0x00013701FA355601ull, >> + .num_endpoints = 1, >> + .endpoints = &spk_l_endpoint, >> + .name_prefix = "AMP8" >> + }, >> + { >> + .adr = 0x00013601FA355601ull, >> + .num_endpoints = 1, >> + .endpoints = &spk_2_endpoint, >> + .name_prefix = "AMP7" >> + } >> +}; > > Don't we need the same change of name_prefix for > soc-acpi-intel-mtl-match.c? I see this in the existing code: > The chain that Peter sent only has CS35L56 added to tgl-match. I've checked the history of mtl-match and the patch that added CS35L56 there was not cc'd to any cirrus.com email address so we didn't notice it. Otherwise we would have picked this up earlier. alsa-devel is noisy. I haven't got a MTL platform to test on but I can send a separate patch to change mtl-match if you are happy with this prefix change. FWIW I was going to switch to using "cs35l56-n" prefix but while editing all our unit test cases to the new prefix I realized that's a problem if we make similar devices with the same controls. We often make a family of devices that have the same (or very similar) software interface - for example CS35L41/L51 and the CS47L15/35/85/90/92/93/48L92 family. If we use the chip ID as the prefix it would create a bogus change in the ALSA control names even though they are the same controls. OTOH if we used "cs35l56-n" for all cs35l56-like devices (to avoid the name change) it's strange that there's a control named for a chip you don't have... If it quacks like a duck it would be nice if it looks like a duck :)