Message ID | 20230727104354.2344418-1-brent.lu@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp814205vqo; Wed, 26 Jul 2023 20:18:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGLTEvBrjTmLXwGXACBGy7YTstTKQWTE4yFxoEhpYhJmV5tizs71lszIwuZ9IBugcI4Hv2 X-Received: by 2002:a17:90a:c292:b0:267:8012:b39d with SMTP id f18-20020a17090ac29200b002678012b39dmr3396725pjt.29.1690427927342; Wed, 26 Jul 2023 20:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690427927; cv=none; d=google.com; s=arc-20160816; b=eCa8BlmohZEcSiqsjEzEV0/p4UVocroVtu0QD7gFXTbbLcrlrJ2esnvbezmfVH9PEe dSiBkXvM/y+cWlZxzFD71Y5m3mzppbzPMjHk94CtQpN9N0Ylni81xDUHdV7Daoc3Hmlj 69yas5+PoAVwtCz89CbQmT2FKyj/8RJuCc7ckj1HvE1zJ3sXF3e6RaJrN7dbzYPLEgqi FTEZ0evsyWzmoo4WnwMcJ00lPJWwLJG88tgHo91OqWozR870hEBEFcJn2rAbvJs/Y91y 4friulYDoQy3br86LYUD0umm1nnanCrSB8hZUb1cWyNQvAcLWlbSbfDVV2fiu+24Yg+8 OVwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IZL2Paf6nGpT75zyIYo1EzTS7Q1DZ/1HMIGFIJFDaLY=; fh=Lz5/hqROUpcBQKAp9YzBGY+SBeOpUnHmW51VPPw0uQw=; b=neYJdVZoRUAnET7NE8eThY5Nr9Z76yauXbRDH48+ZQrrmw4dWa6WUCul3DgsHZTZAx qr4VrCFup3vPlett+PMzs3vvG6yVZ6nnrob+fhdQ2wWGr3kKslmL91/dTxujCiI6eoHM +LLVcoK3KHauZP1/Y9i6QmKq+QRI2yAgisdV5AIaJi3cLrvJ/jhEF4b9qAlrTCiClNd7 Bb3aPL/YpGsUcnUsMqZ7cCLVmytDcClOqJ4s9kKaeEjImgbggcgMF3Hxc1qNpWCDFcB4 Egi9TfAyU84vnkxeDZIfLqX7DmSMUDrWo44FgfGCMvVoEaOg9z6w3K2NgDEaNVb5xGRW DBjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Iw6Gs6TN; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a17090a9b8900b00267f99d5b8csi533902pjp.20.2023.07.26.20.18.33; Wed, 26 Jul 2023 20:18:47 -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=@intel.com header.s=Intel header.b=Iw6Gs6TN; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbjG0CuK (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 22:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbjG0CuJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 22:50:09 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A6810FA for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 19:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690426208; x=1721962208; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1cqg8XWA880hz+tYVWZgsJCbByja1Pcs6NSiVkqFjqM=; b=Iw6Gs6TND0hBuLdfWaRcWQHd8pnuB00ksTEu69YQvGJYArflrd+HPHn6 1lEom/JowAA5L7ug92lLZCCHwv0JAIhKGxGdrrPPJetLZYeq840lSjHO1 QmmKlcGwgDQKrSR864Sdvix8Ko0y5oe/H4E5H6/4dPCAi6CsgTP6Dvto8 b6o/Cp4CGXQPDzvIBK8sf2S0+ceNshPgPYjqOKcogqE0+ewwZoLHF2wBy toaLHB3hbodzR6y7JoSjFdMY+32rAlP7kuv7Fbwd7VP7Nzsn9Qi32leG9 Fgujzzt56xtSc37cXR/QwgUuNz74iaZmIdKF2Op+poq7YNnIvY4Zil+o1 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10783"; a="358187866" X-IronPort-AV: E=Sophos;i="6.01,233,1684825200"; d="scan'208";a="358187866" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2023 19:50:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10783"; a="1057488612" X-IronPort-AV: E=Sophos;i="6.01,233,1684825200"; d="scan'208";a="1057488612" Received: from brentlu-desktop.itwn.intel.com ([10.5.252.92]) by fmsmga005.fm.intel.com with ESMTP; 26 Jul 2023 19:50:03 -0700 From: Brent Lu <brent.lu@intel.com> To: alsa-devel@alsa-project.org Cc: Cezary Rojewski <cezary.rojewski@intel.com>, Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>, Liam Girdwood <liam.r.girdwood@linux.intel.com>, Peter Ujfalusi <peter.ujfalusi@linux.intel.com>, Bard Liao <yung-chuan.liao@linux.intel.com>, Ranjani Sridharan <ranjani.sridharan@linux.intel.com>, Kai Vehmanen <kai.vehmanen@linux.intel.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Brent Lu <brent.lu@intel.com>, linux-kernel@vger.kernel.org, Ajye Huang <ajye_huang@compal.corp-partner.google.com>, Yong Zhi <yong.zhi@intel.com>, Terry Cheong <htcheong@chromium.org>, Uday M Bhat <uday.m.bhat@intel.com>, Mac Chiang <mac.chiang@intel.com>, "Dharageswari . R" <dharageswari.r@intel.com>, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>, ye xingchen <ye.xingchen@zte.com.cn>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Subject: [PATCH v3 0/2] Intel: sof_rt5682: remove quirk flag Date: Thu, 27 Jul 2023 18:43:52 +0800 Message-Id: <20230727104354.2344418-1-brent.lu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772542154266044407 X-GMAIL-MSGID: 1772542154266044407 |
Series |
Intel: sof_rt5682: remove quirk flag
|
|
Message
Brent Lu
July 27, 2023, 10:43 a.m. UTC
We add a helper function to detect amplifier number according to device instance in ACPI table so the SOF_MAX98390_TWEETER_SPEAKER_PRESENT flag and a dmi quirk for 4-amplifier configuration could be safely removed. Also refactor the max_98390_hw_params() function to use an array to handle the TDM parameter. Amplifier number detection and TDM parameter are tested on two Chromebooks. One with 2 MAX98390 and one with 4 MAX98390 amplifier. V2 Changes: - fix some typos in cover letter - use for_each_acpi_dev_match() macro to simplify the codec - use 'unsign int' for codec number variable V3 Changes: - replace pr_err() with dev_err() Brent Lu (2): ASoC: Intel: maxim-common: get codec number from ACPI ASoC: Intel: sof_rt5682: remove SOF_MAX98390_TWEETER_SPEAKER_PRESENT flag sound/soc/intel/boards/sof_maxim_common.c | 171 +++++++++++++--------- sound/soc/intel/boards/sof_maxim_common.h | 21 ++- sound/soc/intel/boards/sof_rt5682.c | 37 +---- 3 files changed, 112 insertions(+), 117 deletions(-)