Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp924651pxb; Wed, 6 Apr 2022 04:27:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDI5lXLDIBnEnnAyiiHDCAqwLUjb4sZeNEiSeAGQ1+443MSCDiGbW1uZosWelCb1rd4Deb X-Received: by 2002:a17:902:c945:b0:154:5215:1da4 with SMTP id i5-20020a170902c94500b0015452151da4mr8099829pla.169.1649244420819; Wed, 06 Apr 2022 04:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649244420; cv=none; d=google.com; s=arc-20160816; b=nVHlT/uzeXi0yZW6B0PSMdzYc1VWfdQRXJLb2ycM5w95326fo5pd0Qn4hKxPBGAmqV cMH6p9UWgJDYAxhJabKAkW7OL2ExoT2gkSXOgyD5rb8Cd/njyIsqzkTOUnLHYCDuN0UF y2ljqQJdsnCNH5JDPMb0Y1RXyJj0suIgLAosqnnj410lt2FxFccoUYEQk7OU8ItCe2np dkUUMMhfXrCswbkI1utz0PNx+k1lo+lyBkJOzqGE1GsMu7yRaqh0PhgJAbpIjr9c/OHU YDjuRK/UF4F1EqCiE84rOb9eBh4Nsgq5ckhebUKSL+XFVDRamW6dHBdAPk60owqzMsBM w52g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LnwvsqgSZj2Ks02AXeWxRERgff0z+XLvlqDf2ClhQgw=; b=Vcdyd36oCnSfaQB1HBLap0Pps1scJS5aIt5ksflh0BIDt8xA/JxY0Fb2gpXpx8AAYG q+QedMIkgR/ZJ5yckI/kCqKjEDQSvNeRk9bt74Dz2Gvg3eQzIS2hWNyRmeJiXYjrFZPf AkRStTm2ErLYnMez8tuYVJtjSvpaI4538MW9gAtyn+G7wQLTNpEI3VFHNt6IQYIhuUeF WXKm2k/1Ka/HX96F7gCSWy6pI898/6F85dWkQCgSE4++x/PNFvSWvxMZV6aANYmYM73I uS1NTK3CkF+XgI8j2OOkcUFHhyp5PEZqAZ+ymXoVO+4F4vK/xxkXkqk7DMxvzfgZjnv0 6dSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M4RloeLr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n3-20020a17090a2bc300b001ca9792869esi4801633pje.145.2022.04.06.04.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:27:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M4RloeLr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4F9B4473BC1; Wed, 6 Apr 2022 02:49:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352218AbiDEUDA (ORCPT + 99 others); Tue, 5 Apr 2022 16:03:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444536AbiDEPlj (ORCPT ); Tue, 5 Apr 2022 11:41:39 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FC6D31364 for ; Tue, 5 Apr 2022 07:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649167536; x=1680703536; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=RykHeuHfrYKWlYaQCFedGFkCWMVDu/x+vCVK9n5m7R8=; b=M4RloeLrrM5SkpbzfepVSNIEBF6QX/8VSL3ca39daXwf0I3+rKbe96og CU0OsodiSpTIdql5eUpnktzNHMGIFzCt2tCI4t0bJbmijcsIBGvdu7iRv Qq/bJSsDsDrwNpb9PknwhiYdxQqPQ56fgV35o5Va1YN0fPLc1J1PArpza WY/ildP/2/+b9xwEYcaaEUgQV6snf+LPA3+uAV35fX6yoqaZtnXYuGTQE 9n/IITSUOjhkzqOPRFIoyMGkgUEl+qndbIwUgaR2Xg5dXrvzD/3YDCtUT woQssGG98c8fy/U3eNpeqxmm5I2ZYZHZkUiWSQ8aqb7MgFua9nGGHSRsa Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10307"; a="259586402" X-IronPort-AV: E=Sophos;i="5.90,236,1643702400"; d="scan'208";a="259586402" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2022 07:05:36 -0700 X-IronPort-AV: E=Sophos;i="5.90,236,1643702400"; d="scan'208";a="651903446" Received: from ctveazey-mobl2.amr.corp.intel.com (HELO [10.255.230.126]) ([10.255.230.126]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2022 07:05:32 -0700 Message-ID: Date: Mon, 4 Apr 2022 10:58:08 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.0 Subject: Re: [PATCH v1] ASoC: Intel: sof_rt5682: Add support for max98360a speaker amp on SSP2 Content-Language: en-US To: Ajye Huang , linux-kernel@vger.kernel.org Cc: Cezary Rojewski , Liam Girdwood , Jie Yang , Mark Brown , Jaroslav Kysela , Takashi Iwai , Ranjani Sridharan , Kai Vehmanen , Daniel Baluta , Brent Lu , Bard Liao , Yong Zhi , Ajye Huang , Mac Chiang , Vamshi Krishna Gopal , alsa-devel@alsa-project.org, sound-open-firmware@alsa-project.org References: <20220324084708.2009375-1-ajye_huang@compal.corp-partner.google.com> From: Pierre-Louis Bossart In-Reply-To: <20220324084708.2009375-1-ajye_huang@compal.corp-partner.google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 3/24/22 03:47, Ajye Huang wrote: > Follow Intel's design to replace max98360a amp SSP2 reather than SSP1 > by judging DMI_OEM_STRING in sof_rt5682_quirk_table struct. > And reusing max98357's topology since DAI setting could be leveraged. > > Signed-off-by: Ajye Huang Acked-by: Pierre-Louis Bossart > --- > sound/soc/intel/boards/sof_rt5682.c | 13 +++++++++++++ > sound/soc/sof/sof-pci-dev.c | 9 ++++++++- > 2 files changed, 21 insertions(+), 1 deletion(-) > > diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c > index ebec4d15edaa..7126fcb63d90 100644 > --- a/sound/soc/intel/boards/sof_rt5682.c > +++ b/sound/soc/intel/boards/sof_rt5682.c > @@ -212,6 +212,19 @@ static const struct dmi_system_id sof_rt5682_quirk_table[] = { > SOF_SSP_BT_OFFLOAD_PRESENT), > > }, > + { > + .callback = sof_rt5682_quirk_cb, > + .matches = { > + DMI_MATCH(DMI_PRODUCT_FAMILY, "Google_Brya"), > + DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98360_ALC5682I_I2S_AMP_SSP2"), > + }, > + .driver_data = (void *)(SOF_RT5682_MCLK_EN | > + SOF_RT5682_SSP_CODEC(0) | > + SOF_SPEAKER_AMP_PRESENT | > + SOF_MAX98360A_SPEAKER_AMP_PRESENT | > + SOF_RT5682_SSP_AMP(2) | > + SOF_RT5682_NUM_HDMIDEV(4)), > + }, > {} > }; > > diff --git a/sound/soc/sof/sof-pci-dev.c b/sound/soc/sof/sof-pci-dev.c > index 4c9596742844..12f5cff22448 100644 > --- a/sound/soc/sof/sof-pci-dev.c > +++ b/sound/soc/sof/sof-pci-dev.c > @@ -83,7 +83,14 @@ static const struct dmi_system_id sof_tplg_table[] = { > }, > .driver_data = "sof-adl-max98357a-rt5682-2way.tplg", > }, > - > + { > + .callback = sof_tplg_cb, > + .matches = { > + DMI_MATCH(DMI_PRODUCT_FAMILY, "Google_Brya"), > + DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98360_ALC5682I_I2S_AMP_SSP2"), > + }, > + .driver_data = "sof-adl-max98357a-rt5682.tplg", > + }, > {} > }; >