Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp527505pxb; Wed, 6 Oct 2021 09:50:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhEjwO4SFOM5BB4Y04M/zKf4z2a6kDtsYkySoBsEl8NmoeoN8Dj8IARkCvbYIXoPC6w0Xu X-Received: by 2002:a50:fa8c:: with SMTP id w12mr36285570edr.65.1633539040437; Wed, 06 Oct 2021 09:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633539040; cv=none; d=google.com; s=arc-20160816; b=znJ8wpXCcKzHubu6fi6eO6XLbKKG9kxYUO7xl91Oku11v7vkkUkKhVGqy9mzAsZuOO cDu9cIDQGZ20xObRQv7WCDPJrhoKjk9jxkDVbolkzeOZXojEpWOW2zG+aBi9FFCbN23U sSRWchIIheI9cERXQ+VOIGQt+IyE7fuALpGXTzP9ruNym3Z7gzMllrCucUbafZtZKzrf CARIrHEsPKwgdTTgRuOYEjDJdBP5J5t/cLk+plX6r9fqWbjXuRIXnG5cGmoYkIZHL4Tk 7ttfOcjJp+U4E62t68rFHPhlR1cCxPnruWLVjpywS5mnxN66cxkbTrkPop6T+2Wa0TkE gLHg== 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=cokz5/aCsU+6IISL087/xdQjeJJNdXltlIJFHh9WDIY=; b=eFUWKslpTDm3hiX5qnzkGO2YOPRSlXk3C9zturrphF1TIliCTOX8+90TTH19nlsffb /OoU1X3Zj4gMhHV3pxlBXc54nTNR3FDs76u2lrI4Cjo8/woDSbSeeHGqtAfurAnNPUz0 gt9+DZZWm8k3Iy06N5gZ83Ggi06jN1G+oAGec3WwmjZv9b0chQRY5tnMgM9e08K2Hw1U QLCqPm1YK3Yn1ur8xiAOWxQEW+zwntJX6PKn/C3jkhAmUihraGRoUlJeH8/umiN7jLdn p0rqZGedbE3FPWjZLLCy/2zCiX2GZDQMFixemxa337/tJcexMhE+9vGqLzJXGPua3G4x 5wSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p3qZXdpk; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si2651083eje.257.2021.10.06.09.50.13; Wed, 06 Oct 2021 09:50:40 -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=@gmail.com header.s=20210112 header.b=p3qZXdpk; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231942AbhJFQtS (ORCPT + 99 others); Wed, 6 Oct 2021 12:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239233AbhJFQtR (ORCPT ); Wed, 6 Oct 2021 12:49:17 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8267C061746 for ; Wed, 6 Oct 2021 09:47:24 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id dj4so12232241edb.5 for ; Wed, 06 Oct 2021 09:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cokz5/aCsU+6IISL087/xdQjeJJNdXltlIJFHh9WDIY=; b=p3qZXdpk4WQccufsvK4m6KyFOU8memXMUyYFo+6dgqN/7w5vd1mJOPqpQd5hVoAmJW mo3UEMujCeB28FTLtFjvOsRV3CwDnd84QaN9X+KYYIYzJC7HZHmwcdhrs0XVFyZ4I889 RjDpF+2JfBMiVQcRDfhBkL9b8ephHuCo5Pt2BuCpF0qqNhEXJkn1tjE+wnyRuhAcFAAc cb8UinmC2gFZyS5PxVQnHqeK96xv00CP8qjrqswmeTd8Sxr/Qsszw1irQnGHhqXwCOOg uVvDcatwfhkeolZvGnzylYwqvBiU5iEIYMtxg+es717pKCmcniqQfzSLxAokJ+Sa+iDz gx8A== 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=cokz5/aCsU+6IISL087/xdQjeJJNdXltlIJFHh9WDIY=; b=1AmK2/QvOhHNZJLNQt2BPZ0+4h/cE/Zsn3W46o7/ythJpPe4ticTTSRP8nc2MxZjj2 YYTrXuqw0W6wIoZGooC0GeE2DZoRSF7KOzIctE2SOoYDJus9sQ8Xw6+4qiKU44AzoGpb 7smPrxVAbIt8cDOMWcRuI1rRfKYfOU8OYsehTL0gd6sk75F6Ouvn/UFmvRUhWQC71t6f N0yycTc0pWZ600krTGMgGRUY0bcQCcu0DG/1YOy+I9nPREW/l5/gE/8BxAU3xLkIawuN HK3Y1dYLqojf3WIlbwopr1Ta32unqJw/lkmOpu8W/McqWEHlwcRXL5cI+s9diYfRasdc 02hg== X-Gm-Message-State: AOAM532+W0pLpbEZUrWmkxPqEHj/yvUOYybFcvGEi9elRMolVSxc1cq8 HMxzm6zoFoIuZDkz3AjvH4EiLj+jijOfotRi4Kgn2X3bYgQ= X-Received: by 2002:a17:906:2887:: with SMTP id o7mr32800370ejd.425.1633538843226; Wed, 06 Oct 2021 09:47:23 -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: Andy Shevchenko Date: Wed, 6 Oct 2021 19:46:47 +0300 Message-ID: Subject: Re: [PATCH 3/3] ASoC: Intel: sof_rt5682: use id_alt to enumerate rt5682s To: Brent Lu Cc: ALSA Development Mailing List , 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 On Wed, Oct 6, 2021 at 7:23 PM Brent Lu wrote: > > Use the id_alt field to enumerate rt5682s headphone codec and remove > redundant entries in tables. ... > +static struct snd_soc_acpi_codecs adl_rt5682s_hp = { > + .num_codecs = 1, > + .codecs = {"RTL5682"} Keeping commas in non-terminator entries is always good to avoid churn in the future. > +}; ... > +static struct snd_soc_acpi_codecs rt5682s_hp = { > + .num_codecs = 1, > + .codecs = {"RTL5682"} Ditto. > +}; ... > +static struct snd_soc_acpi_codecs rt5682s_hp = { > + .num_codecs = 1, > + .codecs = {"RTL5682"} Ditto. > +}; ... > +static struct snd_soc_acpi_codecs rt5682s_hp = { > + .num_codecs = 1, > + .codecs = {"RTL5682"} Ditto. > +}; ... > +static struct snd_soc_acpi_codecs rt5682s_hp = { > + .num_codecs = 1, > + .codecs = {"RTL5682"} Ditto. > +}; ...and so on. -- With Best Regards, Andy Shevchenko