Message ID | 20230720092628.758834-1-brent.lu@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2821120vqt; Wed, 19 Jul 2023 18:44:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlFBK9xaAuMhC2wpc5BtNWgPNQhN1hnVom/vfT0nLyTEJvJO4+QWLAI5/iyoAARQBtt78hCn X-Received: by 2002:a17:907:6d91:b0:986:d833:3cf9 with SMTP id sb17-20020a1709076d9100b00986d8333cf9mr1160577ejc.39.1689817443106; Wed, 19 Jul 2023 18:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689817443; cv=none; d=google.com; s=arc-20160816; b=gtV2h2Yw8zSV9kx9+JHQjISODlHmKu/4SdBMVKc1d7ObtUzxhPHVtC5vBsvjy8Iv69 HBKLpAwXf8GNScYgrF/0+Sb8mX9pXt61H7tW2sAMkhRDS1dKG+0MLZkqWrkLl+cekREC 2Hh3DxxNQy1xDMUIwmCiI6rsUC2eF6nOHEFMgSdYR57NvzCzXrU1+KwG3lhmMFlhKCFr qvmijboV+lk0pxVKm6kgT+a04QF7AYXpwqeI6oNSAluNYP7AEmzvjKfZzgkky0QBXy1U oIeeJ0gM3R/3iKV0Zv/YDqNZwiE998VfuhX7UDGgU43tiS4+a5aHn2lVUQhU+NnFUgOu fCuA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a170906c31700b00982c5ee4393si3447859ejz.828.2023.07.19.18.43.40; Wed, 19 Jul 2023 18:44:03 -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 S229813AbjGTBcn (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <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, Yong Zhi <yong.zhi@intel.com>, Ajye Huang <ajye_huang@compal.corp-partner.google.com>, Uday M Bhat <uday.m.bhat@intel.com>, Terry Cheong <htcheong@chromium.org>, Mac Chiang <mac.chiang@intel.com>, "Dharageswari . R" <dharageswari.r@intel.com>, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771902014975845942 X-GMAIL-MSGID: 1771902014975845942 |
Series |
Intel: sof_rt5682: remove quirk flag
|
|
Message
Brent Lu
July 20, 2023, 9:26 a.m. UTC
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(-)
Comments
Hi, On Thu, 20 Jul 2023, Brent Lu wrote: > 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 *** this looks like a nice cleanup, thanks Brent. For the series: Acked-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Minor nit: some spelling erros in cover letter (funcion->function, refactory->refactor, BLURB HERE left), but I think the intent comes across. Br, Kai