Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240464pxf; Wed, 10 Mar 2021 05:26:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJ49zkTnnifHd7abAnqGAhUVVNCJdSd6f7ebAF91lhWy8QzxNyqW8aXb6KVVO0Paj22s0n X-Received: by 2002:a17:906:1759:: with SMTP id d25mr3697180eje.524.1615382794637; Wed, 10 Mar 2021 05:26:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382794; cv=none; d=google.com; s=arc-20160816; b=dEAmMDqK0DbPn0QRh9w35wVuXs/6S0GDeOR/H3O9DYMQNVEvZUpWwXqonWBygXmPaa m2XmPHRZ6H37/FSRs6IO3SqjjcCq+noMETGxdIXcOGtJdyKLoKDIOnjwNDqhmA29rSvv RCwnLUVKVyDwSwuNYykSXXOj3WLsANNbyHiQqOH4u51tEKxHHG3CaMqr4+3UGLtnRUJM NYFjsHK71BqkKjMCF7Gh6kqZVfTmCb8yqUECEMYe+/KKXjhPEU0a2kJWHvLaPLQMgQax BJ2l54PJ0oj/42zFURTxW1DWClaSH53/e8RAn8zfP1yNEeeCuZu+k4baz8UHOH5fdTpX GdHg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sFQ27Td9yVQ1NJyvhFPMiJOV4CWMQVt5lTfSm55deAc=; b=aP7UQJjM3oa0ve+rciJJOi5u3uCu5SV4RvnSVfEgcstnIBEiN4WcmBgwUIZFuOMyvO mTSbMw9SssxK0X+ilkCM9DabtOIlqyXBiHsI8vZXRQA2qD3LZKS3DkruOKrmhnGzmerv SNs/lesOYbeVCqLQVNUGi4sd/t5GsJgkzDhekdbQQTlCiANOWgvHHRMJl056Ta0C90aS VnV2V+LoetTiFbvIR2SeCZi73WmS7xaUOJ58saECX8COBtW6S0UT+/atyQTcCYfcWZvM K9O3AABFXojvzahJaKxwnS/4YtGADafE7Exz7Sv6U/yq9a8kQKD7Nt2g54mtONQbgcs+ LtZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0FKFPnea; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si9105453eds.85.2021.03.10.05.26.10; Wed, 10 Mar 2021 05:26:34 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=0FKFPnea; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233209AbhCJNZG (ORCPT + 99 others); Wed, 10 Mar 2021 08:25:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:45560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232810AbhCJNYX (ORCPT ); Wed, 10 Mar 2021 08:24:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AB37464FEE; Wed, 10 Mar 2021 13:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382663; bh=5TDSqLg28VoXOdVEEjzepYWUdpM9ZU99j05eAp3bpA8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0FKFPnea33smw33GIqahkn6Wb0GRD9MM4ggFBWerbkNpvMOnoFP8aAvVWgNC3pttf CMsXrvMRHQTfEQDQjHuSFZWNT74TQ+O05iJaevfwjwAJMv/A43DYLePmFqxDPjnQJT oBqr4J+qMK/+3Ws6d8n70BTCVyF7A2NDscrPOaxs= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brent Lu , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 5.10 09/49] ASoC: intel: sof_rt5682: Add quirk for Dooly Date: Wed, 10 Mar 2021 14:23:20 +0100 Message-Id: <20210310132322.252659726@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Brent Lu [ Upstream commit bdd088ce5bfd32b95ab1bd90b49405e7c1f1fff5 ] This DMI product family string of this board is "Google_Hatch" so the DMI quirk will take place. However, this board is using rt1015 speaker amp instead of max98357a specified in the quirk. Therefore, we need an new DMI quirk for this board. Signed-off-by: Brent Lu Acked-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20201030170559.20370-3-brent.lu@intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/sof_rt5682.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c index ddbb9fe7cc06..c6c33910bc35 100644 --- a/sound/soc/intel/boards/sof_rt5682.c +++ b/sound/soc/intel/boards/sof_rt5682.c @@ -99,6 +99,24 @@ static const struct dmi_system_id sof_rt5682_quirk_table[] = { SOF_RT5682_MCLK_24MHZ | SOF_RT5682_SSP_CODEC(1)), }, + { + /* + * Dooly is hatch family but using rt1015 amp so it + * requires a quirk before "Google_Hatch". + */ + .callback = sof_rt5682_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "HP"), + DMI_MATCH(DMI_PRODUCT_NAME, "Dooly"), + }, + .driver_data = (void *)(SOF_RT5682_MCLK_EN | + SOF_RT5682_MCLK_24MHZ | + SOF_RT5682_SSP_CODEC(0) | + SOF_SPEAKER_AMP_PRESENT | + SOF_RT1015_SPEAKER_AMP_PRESENT | + SOF_RT1015_SPEAKER_AMP_100FS | + SOF_RT5682_SSP_AMP(1)), + }, { .callback = sof_rt5682_quirk_cb, .matches = { -- 2.30.1