Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2369724rdg; Sun, 13 Aug 2023 23:22:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLYbQA6YWkxUzzLs8feyCAluxscW/mn549wCLJtIibPkXBkV+mTNyeHm3bwgFVu/84eqi0 X-Received: by 2002:a17:906:21c:b0:99b:d4f5:a518 with SMTP id 28-20020a170906021c00b0099bd4f5a518mr8244129ejd.13.1691994152567; Sun, 13 Aug 2023 23:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691994152; cv=none; d=google.com; s=arc-20160816; b=BuU3QePq7rm+RbDUrJfF77by5tpH6KhAf6DuKIsltVIkW0BY7bMFLihC04MtpNe0+T xMEc1ofBFbGHl6oV/Qams+NX6W+xjUujVvR6vojgol1vAsSC3rFx6ddCs1n3ofECAMgv QMRcUT3/ZmFPeZKti6G8dZijhS0T45D8biMu9J2XXkmX/8w+IWoBp4tgbN9vuVNUDxpc AOAlBTI82q58L3cMD/S1zMhLtg3qiQUOAFxCId0DW57SAtnbiVqb77yuP329uEmIjqnz tAYriZod34TNmkTsuChWfsvzbxbWoVWTKJ7MOAC40wYDxYVD/N07uTfYJs+K4EwRP5Yb M5tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=smIMHxHMXsRlFYyRESAqNumkyyEmxXc2Ju+pIkoWNX4=; fh=X5L8pU0hfVoMs9kUMPUQjorVmchn6H3J/ivtTEMY7LM=; b=Qsas1VrngvwM5g4Ix/V1+Nv1rTVSWfSElTGhqIHqRYsspn6Qqg362RcRj+Yc/IBi96 BvOcrcK+Xn6s6QyA4j1pbafx/0oQc42dG4z9EQ+eA6aroG+OC/ridD2GElLutQt0AsOA WgFGo9hzzON6MhYFF+GOEc7gOg5y5jhiXZ57pJrCy9fdviTIDP0VLitwGW/ZoiX7ftVh Jg6a6ordNPYb8/MJzvwLiAV5zJViSnQPh5Dl1tRclwfPVGELI4cd+fJEMLD6YxKe5Tyk J+4oGPFY729xhrYqJOJaV/DKIy4IGoDOLX2BVA4J1Vsg9atxneyUB6K2PggoqBtCQTDu Y79g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=5fdxfd6F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a170906168e00b0099ca9258139si7153452ejd.569.2023.08.13.23.22.07; Sun, 13 Aug 2023 23:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=5fdxfd6F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232613AbjHNCzr (ORCPT + 99 others); Sun, 13 Aug 2023 22:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232634AbjHNCzn (ORCPT ); Sun, 13 Aug 2023 22:55:43 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F1CBE65 for ; Sun, 13 Aug 2023 19:55:42 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-589ed5132c5so8126287b3.3 for ; Sun, 13 Aug 2023 19:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691981741; x=1692586541; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=smIMHxHMXsRlFYyRESAqNumkyyEmxXc2Ju+pIkoWNX4=; b=5fdxfd6F6QHgKWiN5mW0zFkn7HZ95IC9hzQtDBwX9+4px886A+/RyLZUzVZDMtkR/X jwYX3Fzbhiea8ecprls7+NAuymhEt0MZal5FkOD3kC1Gll/RId99A19ZN3lHPbYJxlvK +m5yhBRqq5jRIbbw8VMdM2jRQpTYMe34ek98FQ0btSRoW65rc+krBqjh1NjeUBkpL8AB Aha+3axkgMK4/BYaqpNf5RqwC6G9HdllnNeo207tiBQU8ME9ZEX9VQoBl5dPrJTV8vO2 e9RaCgXYnntqxpD8jJVOwa50iYmBDbEUcFEBuu3Cpzjf02ZuCIqLV7nGnVZiu+/SQTma 1Wng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691981741; x=1692586541; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=smIMHxHMXsRlFYyRESAqNumkyyEmxXc2Ju+pIkoWNX4=; b=abz2wMhvnuXLYx4yMXJjvwXMLieZh0H8WGFF9oEdEQ0VzZ5aAimlga1rdOkf0BQ87g gdt4x7XlXdk9FD40fO+G22/1zww8dYUnqn6zjrBCwejGp7wXBSfxaiXhqyz0gDned7kb 5seL5hv8xf/o3UKPZbENm3A4euqMfVMm00b7cTwQQR2ob7sge6CDmZzU9DV5oAIj/oes Q3a6X/EvlD91GYEhhpwDF4NbF7h1giT5qLFwRwcJrZ+Zc7niJY88wNR1ss0s3gWyk3DJ O+mHNbTv/bxDdfyyHseCmP3ZfYYYtNtwBMwsr0fT3KcAlSDqgL6DPXSR85zta+0bcOlE Pl/A== X-Gm-Message-State: AOJu0YzXxsOyYstN7xEzR2sbfXb7e1o3EIGXLLKFf305sI3bxpQPIsE3 kafeSifrI3HDV4FBw/RtTZ08fcnYzHMQpEjjuUeyFIThB2OAaWrmjzWLw/7/ X-Received: by 2002:a81:5fc5:0:b0:57a:6e41:948e with SMTP id t188-20020a815fc5000000b0057a6e41948emr9043483ywb.11.1691981741173; Sun, 13 Aug 2023 19:55:41 -0700 (PDT) MIME-Version: 1.0 References: <20230804085648.3721416-1-ajye_huang@compal.corp-partner.google.com> In-Reply-To: <20230804085648.3721416-1-ajye_huang@compal.corp-partner.google.com> From: Ajye Huang Date: Mon, 14 Aug 2023 10:55:30 +0800 Message-ID: Subject: Re: [PATCH v1] ASoC: Intel: Add rpl_nau8318_8825 driver To: linux-kernel@vger.kernel.org Cc: Mark Brown , Pierre-Louis Bossart , Bard Liao , Peter Ujfalusi , Liam Girdwood , Akihiko Odaki , Yong Zhi , ye xingchen , "balamurugan . c" , Libin Yang , Jaroslav Kysela , Ranjani Sridharan , Cezary Rojewski , David Lin , Brent Lu , Takashi Iwai , Terry Cheong , Kai Vehmanen , Kuninori Morimoto , Gongjun Song , Arnd Bergmann , apoorv , alsa-devel@alsa-project.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pierre, Could we have your reviews? Before we had your reviews on "adl_nau8318_nau8825" driver name last year. And now the adl and rpl ids were split, so add "rpl_nau8318_8825" back to maintain support. Thanks On Fri, Aug 4, 2023 at 4:57=E2=80=AFPM Ajye Huang wrote: > > Boards were using this in older kernels before adl and rpl ids were > split. Add this back to maintain support. > > Signed-off-by: Ajye Huang > --- > sound/soc/intel/boards/sof_nau8825.c | 10 ++++++++++ > sound/soc/intel/common/soc-acpi-intel-rpl-match.c | 12 ++++++++++++ > 2 files changed, 22 insertions(+) > > diff --git a/sound/soc/intel/boards/sof_nau8825.c b/sound/soc/intel/board= s/sof_nau8825.c > index 4fc6e1c6aef3..46b7ecf6f9f1 100644 > --- a/sound/soc/intel/boards/sof_nau8825.c > +++ b/sound/soc/intel/boards/sof_nau8825.c > @@ -684,6 +684,16 @@ static const struct platform_device_id board_ids[] = =3D { > SOF_BT_OFFLOAD_SSP(2) | > SOF_SSP_BT_OFFLOAD_PRESENT), > }, > + { > + .name =3D "rpl_nau8318_8825", > + .driver_data =3D (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0= ) | > + SOF_SPEAKER_AMP_PRESENT | > + SOF_NAU8318_SPEAKER_AMP_PRESENT | > + SOF_NAU8825_SSP_AMP(1) | > + SOF_NAU8825_NUM_HDMIDEV(4) | > + SOF_BT_OFFLOAD_SSP(2) | > + SOF_SSP_BT_OFFLOAD_PRESENT), > + }, > { } > }; > MODULE_DEVICE_TABLE(platform, board_ids); > diff --git a/sound/soc/intel/common/soc-acpi-intel-rpl-match.c b/sound/so= c/intel/common/soc-acpi-intel-rpl-match.c > index 4eefdb2dd45c..1dd699181765 100644 > --- a/sound/soc/intel/common/soc-acpi-intel-rpl-match.c > +++ b/sound/soc/intel/common/soc-acpi-intel-rpl-match.c > @@ -351,6 +351,11 @@ static const struct snd_soc_acpi_codecs rpl_rt1019p_= amp =3D { > .codecs =3D {"RTL1019"} > }; > > +static const struct snd_soc_acpi_codecs rpl_nau8318_amp =3D { > + .num_codecs =3D 1, > + .codecs =3D {"NVTN2012"} > +}; > + > struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[] =3D { > { > .comp_ids =3D &rpl_rt5682_hp, > @@ -373,6 +378,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_mach= ines[] =3D { > .quirk_data =3D &rpl_max98373_amp, > .sof_tplg_filename =3D "sof-rpl-max98373-nau8825.tplg", > }, > + { > + .id =3D "10508825", > + .drv_name =3D "rpl_nau8318_8825", > + .machine_quirk =3D snd_soc_acpi_codec_list, > + .quirk_data =3D &rpl_nau8318_amp, > + .sof_tplg_filename =3D "sof-rpl-nau8318-nau8825.tplg", > + }, > { > .comp_ids =3D &rpl_rt5682_hp, > .drv_name =3D "rpl_rt1019_rt5682", > -- > 2.25.1 >