Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp613581pxb; Wed, 6 Oct 2021 11:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7/tT60ecdFtppzd2kejg72ZdvglxROEftkpP2aNNCR9tRVyndIojFPpcOYD5KIMV3YedW X-Received: by 2002:aa7:824b:0:b0:44c:22ad:2763 with SMTP id e11-20020aa7824b000000b0044c22ad2763mr27900302pfn.63.1633545364080; Wed, 06 Oct 2021 11:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633545364; cv=none; d=google.com; s=arc-20160816; b=RglpBdnOazriRlEso1IQ9MxWA7qadM6o3oi9ScbugKxtcKGrXhhkr26r4qmSvz6oSZ F/ywyBE2JP5Dqyvrlz+gx39h63Zh8dfLkxfTpR3u5+bFVb4lIi/1LUcVIky5BJmHue1M T2UcMN5FxSUA5NAuwizkSPTi0r3X1oq9Z7DSbalZvsEGd1tHQpEj6IWVXp6q24ciH/Ub bcPxb0BThweiy92homHQ6sfm5nNEj67zDhMz0+TIyQO4kyPg5RBVk8pf6WVPchkNVCOp oiVRb02dDaSMT1Tjo/4maZUDU6SV2RQA1XKTHAhUaN7TkIKO3/Oa+x6Jxx3h6M+eqCwO j2vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pEruuwb7cFwr8Ofs6shqqJVVofNEKWYdi6q9NkQEo5U=; b=J4I0ndKZbXEg3huc9nqz+XswQQG8bp9LqHTVY2/Tib1tL7+zY7tp5Gxcmit7GBY/Ta nfIXruwUqQDLTygBw2xjc3bd8gqX3HWUHzUo2eBy64GbhupkZhfGff+h1kuWgFZFzwqJ LqBj3Zxo1iwSfkY5PVkvy4cUdRLsr2bj8XmmyfCZWQinChRb6U9dSvaKXVKhEspVWSRW OCsHcE7/emvPY2hiivlRgl0a3HZ6Bld8SMzxYtIEW9vGa2f9GMvK3o6ybzqVXQcyjPQu N7w5upTcIei3ouak9jgN37KrJobf0g6MYIsaP8MhPRW5u4kjOnJFngNfy5lQEtzGeypm BcCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=V0jNzxJM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si7957122pgb.283.2021.10.06.11.35.49; Wed, 06 Oct 2021 11:36:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=V0jNzxJM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231804AbhJFSg6 (ORCPT + 99 others); Wed, 6 Oct 2021 14:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbhJFSg5 (ORCPT ); Wed, 6 Oct 2021 14:36:57 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A42F0C061746 for ; Wed, 6 Oct 2021 11:35:04 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id x12so3506135qkf.9 for ; Wed, 06 Oct 2021 11:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pEruuwb7cFwr8Ofs6shqqJVVofNEKWYdi6q9NkQEo5U=; b=V0jNzxJMeyddmMFs1uAHg88DuwmoRlW6I1WULYxGh5c4yht9k8VM5GWrRah9BKjsJ8 eF+yfgWFZZ3zV9wSH2fOqwmZ5ti4skmxpJJ8U18MAx6+18/sVEfZKu5tyM2hyACUJ3h1 Kgp1GwTX5s7IOTaaBKFKmk3dcC2kQtnV7gWT3N1Qo8f3+2Z0Ky5KU5YgItZb5bvDzV48 ehn0TiDRTGVn23f7lg9QktVnm7MbpLqX8CiZvcIkW9yazLT6x5Tn3D4otRgBJJAR94O2 v3SgtlnmBDnhbWZi3oFoyjSpUcQJ2g7rovgKEQidM0wrf80ASJtjoe9f/KejepSxbxrE 0QNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pEruuwb7cFwr8Ofs6shqqJVVofNEKWYdi6q9NkQEo5U=; b=pVhHaEYxadQ6Es/f8BTbB3stXiNFwNqtC6ZvpuVvNWJ2erC26QlMs/IYK478R7T836 +iqu+l3rsltopAD6723eP0s12yNepYOt4yEVgpZZw+M9Z9k7h+oOlIdHdfH/FmdjmbnA Au1AXym7nb9tEcc8atiUckVcJTtIXt33S/F+V7pPnsk5TYlZz/QeKFDXl9nSkz1L0Ly9 JkVlthhKyRwrfXy88gxCDYRJMLZgYUNlvcFdTt078gi4AilvTDBu+RZJRuW11JmlQrGh rPdk7rBwWWTMDS2/FU1dzXYb/5EW/EhyifQPGbYmoy5hDPzCYlj02QDggpTkFGbK0O1j ZXVw== X-Gm-Message-State: AOAM531CU9omHVPBf4fHQRU45JbyXtVbcO8eFhGzvj25hJxXouOy62q1 xRSV0r5Ydoji0Q5t3xRZX9nv7n+/YmO6+VbwyTniYw== X-Received: by 2002:a37:b142:: with SMTP id a63mr209095qkf.393.1633545302972; Wed, 06 Oct 2021 11:35:02 -0700 (PDT) MIME-Version: 1.0 References: <20211006161805.938950-1-brent.lu@intel.com> <20211006161805.938950-4-brent.lu@intel.com> In-Reply-To: <20211006161805.938950-4-brent.lu@intel.com> From: Curtis Malainey Date: Wed, 6 Oct 2021 11:34:52 -0700 Message-ID: Subject: Re: [PATCH 3/3] ASoC: Intel: sof_rt5682: use id_alt to enumerate rt5682s To: Brent Lu Cc: ALSA development , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Cezary Rojewski , Pierre-Louis Bossart , Jie Yang , Kai Vehmanen , Guennadi Liakhovetski , Yong Zhi , Vamshi Krishna Gopal , Linux Kernel Mailing List , Rander Wang , Bard Liao , Malik_Hsu , Libin Yang , Hans de Goede , Charles Keepax , Paul Olaru , Curtis Malainey , Mac Chiang , Gongjun Song Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > }; > > +static struct snd_soc_acpi_codecs adl_rt5682s_hp = { > + .num_codecs = 1, > + .codecs = {"RTL5682"} > +}; > + > struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = { > { > .id = "10EC5682", > + .id_alt = &adl_rt5682s_hp, > .drv_name = "adl_mx98373_rt5682", > .machine_quirk = snd_soc_acpi_codec_list, > .quirk_data = &adl_max98373_amp, > @@ -296,6 +302,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = { > }, > { > .id = "10EC5682", > + .id_alt = &adl_rt5682s_hp, > .drv_name = "adl_mx98357_rt5682", > .machine_quirk = snd_soc_acpi_codec_list, > .quirk_data = &adl_max98357a_amp, > @@ -304,6 +311,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = { > }, > { > .id = "10EC5682", > + .id_alt = &adl_rt5682s_hp, > .drv_name = "adl_mx98360_rt5682", > .machine_quirk = snd_soc_acpi_codec_list, > .quirk_data = &adl_max98360a_amp, Is there any way we can collapse this and the primary id into a single list to avoid having 2 locations to track for the IDs?