Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp388117pxx; Wed, 28 Oct 2020 07:15:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDTLkdEgUdqtXbvKNdXeIv7AWd+in2gd/sOQHyNqm3L9WDC3zRypkqbNchdMP89lXXZyvN X-Received: by 2002:a17:906:6d04:: with SMTP id m4mr8210848ejr.68.1603894547298; Wed, 28 Oct 2020 07:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603894547; cv=none; d=google.com; s=arc-20160816; b=NH0gV7NRYyVg/TtUm4ob/8KefIisTQjQuDLQH/ecGfj3qmGUAeBJpGbX4OKXFCMbWH xf0f12DqEF5Yb5ULyKlwokRebfqB1qprBDZ6VQiNJz14fxTGmt2qkj0H86Sn7KQ1Vo7r MvBNXzjbOoowC5SE1rxnRjIdVbdWpiXLc6xPY5Fhje1J+8c74UB/xExH3bYtfxYhP6cM rh4QzWvGlVi1wDR18VNzP4CZVEn4EFqyk5t9jC4MPztimhBnAZGtwo3YFFaSFeWQSzae NWec/oa7phYhtfgkSh9TQ+tbq5l6yR00gShlKM91OdCEZ+Z7eZvF828nUExCckRXnIRh aO7Q== 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=h37rZ84yUlMPxZ52fmSpLMeLqlol2eWDk9MOFQsQ2Go=; b=p0IIhbJd5/L1EZ3I+sWcjgoXiaexknyvEDfn+y0VHuIcqBJgskpiSco2DHH6cK1Wge AFQw/ptBAzNhCNf6dW+4YFDoxKA8XTG4dp/BV8uwL7yxZP5mFwZpSHNoEHlCxSp+6WVW wCe1yInd1KmyEdGm4IcTFOeBn7JRPlx/7GFIl5+6QFzSHouJkjlURZePEzmJWegk3jbh R35dUp3YftLZEft+ygTs6c503O3MgegGnKmUUTgu4W9jUv+/z1CU3mcCPzckd/vXLDD/ CbF669Xe2dzej+/a8QaHTyX6yPCSFxopICpiOqjaEezigxCr+76Sk6/0NKtelHqpr8pw CdpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iZmRSShO; 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=fail (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 s18si2795558ejd.147.2020.10.28.07.15.24; Wed, 28 Oct 2020 07:15:47 -0700 (PDT) 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=@kernel.org header.s=default header.b=iZmRSShO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1805015AbgJ0QAV (ORCPT + 99 others); Tue, 27 Oct 2020 12:00:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:54040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1794439AbgJ0PQp (ORCPT ); Tue, 27 Oct 2020 11:16:45 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D08E2224A; Tue, 27 Oct 2020 15:16:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811804; bh=ir6FlJ9wXpWc5edmvnrn9AviT3w1Aidz7OhxTJybd7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iZmRSShOmW+Ggwl2wEHhtyy3zLupSyPjG9au0fU5uLdt0pZ0GJWw7aOorxAGodM+F k++MbDwbDkRGyG+vHppZROWg4jyoRm32Py6EchbyqjMxa8eTWvHcghpbdRrnlriX4u b/l+g51OP7M+UqOzOWIxwta3GoGqcKEDlNjZmQnQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guennadi Liakhovetski , Sathyanarayana Nujella , Mac Chiang , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 5.8 615/633] ASoC: Intel: sof_rt5682: override quirk data for tgl_max98373_rt5682 Date: Tue, 27 Oct 2020 14:55:58 +0100 Message-Id: <20201027135551.678564878@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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: Sathyanarayana Nujella [ Upstream commit 3e1734b64ce786c54dc98adcfe67941e6011d735 ] A Chrome System based on tgl_max98373_rt5682 has different SSP interface configurations. Using DMI data of this variant DUT, override quirk data. Reviewed-by: Guennadi Liakhovetski Signed-off-by: Sathyanarayana Nujella Signed-off-by: Mac Chiang Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20200821195603.215535-13-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/sof_rt5682.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c index 13a48b0c35aef..11233c3aeadfb 100644 --- a/sound/soc/intel/boards/sof_rt5682.c +++ b/sound/soc/intel/boards/sof_rt5682.c @@ -118,6 +118,19 @@ static const struct dmi_system_id sof_rt5682_quirk_table[] = { .driver_data = (void *)(SOF_RT5682_MCLK_EN | SOF_RT5682_SSP_CODEC(0)), }, + { + .callback = sof_rt5682_quirk_cb, + .matches = { + DMI_MATCH(DMI_PRODUCT_FAMILY, "Google_Volteer"), + DMI_MATCH(DMI_PRODUCT_NAME, "Terrador"), + }, + .driver_data = (void *)(SOF_RT5682_MCLK_EN | + SOF_RT5682_SSP_CODEC(0) | + SOF_SPEAKER_AMP_PRESENT | + SOF_MAX98373_SPEAKER_AMP_PRESENT | + SOF_RT5682_SSP_AMP(2) | + SOF_RT5682_NUM_HDMIDEV(4)), + }, {} }; -- 2.25.1