Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8942384rwp; Wed, 19 Jul 2023 18:56:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlG6XrimruX6VTJF4e0olwtZOeq9SNUn3nUiWbjAkD+iVf6Vh2efEuTjdkIuFBzHs832Ioer X-Received: by 2002:a17:906:3a97:b0:988:8fce:17ba with SMTP id y23-20020a1709063a9700b009888fce17bamr821462ejd.31.1689818168277; Wed, 19 Jul 2023 18:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689818168; cv=none; d=google.com; s=arc-20160816; b=g8SmuQCB+VdaL9yOSG7kzd2udotAnrwDIelXeDP7ouTlpjFsdDwqtxVeC4uHsrpF5k zVXRYWTqUdZ5E6Fvj07neW/OsD+g1OFs/2WgSAR+nKaO1h2Nl3/fGM8GqzDIuPwxlz38 G+E2LyLq9en6h5oXIjngRhzBTMsx5oteNYOH10JNRc20fRO2j2EAs4yAWpVxmRIKj4TQ dNQcRUlEd+5DqbQKFm+DtCHh7sLLNTxd2pm4jRMmFDlWZ3u+zmIRtNDIcM4G6+Sginfs FkP20McvwRtZuJvT3chbPqnqvVbaKlp9ynyOjZ0HNc++TmRzj3jKCNWD7AIk1sa2d5Fv TMxw== 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=84FvIqZiH3opb9NqOwWG1LJHPDFMNud9+bH7bVQKtys=; fh=d5kaFi490xhtCCJ3TerUmGkycRMyMY6ISVyskXPOS9g=; b=yPqoxh3CL8EgH7WbIpjJrYnhJiXN68rsVnuNVBOwmNu3pZUG9fUhXPG6b0Een5wUwN vUk3xGmE9VsufxVS5ZCZ9T2pwsHK4kZCLyBOYiOH9fYt2M6Y+JyQfgRHR64vIQz/XeXK 0EP1mwzLMShVXtBWyEXCmcYB3yJoV446U31ptczbmIWE+JAFQ2IBNWN8MXV5muZgExTt H3MD47dBhAO6YAO3i+WMg3X/XOOJe3OEVByGqE9OUQQ8tFwkeI8FfGUcmOjQ7cB2IlGV ljGoNDosVXvagWDxXsT9GRSi/79TcZIr4bzdvdwn2w/Z1B6OLnJF0bsGqqvNY7HiXB4j p+RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ic0dMrHQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a170906780800b00988b2dfc3b3si3687961ejm.517.2023.07.19.18.55.44; Wed, 19 Jul 2023 18:56:08 -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=ic0dMrHQ; 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 S229809AbjGTBcn (ORCPT + 99 others); Wed, 19 Jul 2023 21:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjGTBcl (ORCPT ); Wed, 19 Jul 2023 21:32:41 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCB9A2103 for ; Wed, 19 Jul 2023 18:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689816760; x=1721352760; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=EEH92Op2Nr+VsnZvGqzZkmZfh8Q0ed/IE38X40WNBaE=; b=ic0dMrHQRPDE8HLBOnCaXYjYG9IRXZM882gNq6FFWubmwuxGe5WasWwo Y8Ydw6aPPzdwLRe35S+o+VakAWDuilazFy2OkhI6By0umWSLtkjPF4w4i gpSrqsLhWEiBkFaq4gi7KHr+QeR+2Hww0RdFE+SeV8wV8sJinK1pLPNdE 5txZmr4mLhpvENPK8LGUE7DkRryrLNqN49h5+baKv3LyRmskerxvUo6H1 F84Dw1dzk3hVTlijAMv0DXhb0mIpg1g1xoPHl8x0ldQZ9skaaknUCKQzp QqJ7OM3GQrjEQ+1DB4vj1XaWejvs2HbAWxA9lyAGwOy074oyy38IfXhOz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="364067929" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="364067929" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2023 18:32:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="867681273" Received: from brentlu-desktop.itwn.intel.com ([10.5.252.92]) by fmsmga001.fm.intel.com with ESMTP; 19 Jul 2023 18:32:37 -0700 From: Brent Lu To: alsa-devel@alsa-project.org Cc: Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , Jaroslav Kysela , Takashi Iwai , Brent Lu , linux-kernel@vger.kernel.org, Yong Zhi , Ajye Huang , Uday M Bhat , Terry Cheong , Mac Chiang , "Dharageswari . R" , Kuninori Morimoto Subject: [PATCH 0/2] Intel: sof_rt5682: remove quirk flag Date: Thu, 20 Jul 2023 17:26:26 +0800 Message-Id: <20230720092628.758834-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,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: X-Mailing-List: linux-kernel@vger.kernel.org We add a helper funcion 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 refactory 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. *** BLURB HERE *** 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 | 174 +++++++++++++--------- sound/soc/intel/boards/sof_maxim_common.h | 21 ++- sound/soc/intel/boards/sof_rt5682.c | 37 +---- 3 files changed, 115 insertions(+), 117 deletions(-) -- 2.34.1