From patchwork Thu Jan 13 10:52:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent Lu X-Patchwork-Id: 12712563 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C2C15C433F5 for ; Thu, 13 Jan 2022 10:56:56 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E6D6C1932; Thu, 13 Jan 2022 11:56:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E6D6C1932 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1642071415; bh=FhVHgSN/lNJeu2IDjj6rTRXUr8eMT8m7IgjmIJEwy3Y=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=RMYyqezoJSzKulVvd+OzlY6L2ETH8Is4kbXxaBguOFeC6cub6wtGh9JDOObLsRTT4 onTOBbMmt/v54hUkESxuBZcfyHchJqAq4PjLIZeFm701c87kpq6OwUsVX0P+qb5g7F IUblgXgmwUY5h2Ly20pUKgUyonpHDVz6TieUQ7o8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 12BF5F8028D; Thu, 13 Jan 2022 11:55:32 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 255ABF8010B; Thu, 13 Jan 2022 11:55:31 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 60EE3F8010B for ; Thu, 13 Jan 2022 11:55:22 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 60EE3F8010B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JcLwQybY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642071324; x=1673607324; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FhVHgSN/lNJeu2IDjj6rTRXUr8eMT8m7IgjmIJEwy3Y=; b=JcLwQybYDrdwrD3prJJrLa9cNtS5acij9cTEw0uG5t+0E3XHIUfYC2Tl CpMaQSch1z7ef3A+zG73gtPxOM//UGvT17Th4jQSmu5b/Sn2XSV1os5lP qPr8H9Fmna7tqEeeaQSqCxw5JtEiAU6+A8SEDq71HYFhbkPcGjmzoV4H0 vMo+a/NPYL/bzXsXmVStQWSoNfzihY/g1nnxLsdUJadeWYefJ4gMaBI8d 5CWGvkK3HGSwnyRxmnZMISVKbYPj1UgwTflZivSgZPxyDG2c7EAZ2Ofo9 yjn8rxDAxBBUhtjf+32CAdxROENDcGhMwUv93RtoumcHkDQMvEnhUEEQV Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10225"; a="330332918" X-IronPort-AV: E=Sophos;i="5.88,284,1635231600"; d="scan'208";a="330332918" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2022 02:55:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,284,1635231600"; d="scan'208";a="475267052" Received: from brentlu-brix.itwn.intel.com ([10.5.253.25]) by orsmga006.jf.intel.com with ESMTP; 13 Jan 2022 02:55:19 -0800 From: Brent Lu To: alsa-devel@alsa-project.org Subject: [PATCH v2 1/2] ALSA: hda: intel-dsp-config: add JasperLake support Date: Thu, 13 Jan 2022 18:52:19 +0800 Message-Id: <20220113105220.1114694-2-brent.lu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220113105220.1114694-1-brent.lu@intel.com> References: <20220113105220.1114694-1-brent.lu@intel.com> MIME-Version: 1.0 Cc: Kai Vehmanen , linux-kernel@vger.kernel.org, Pierre-Louis Bossart , Takashi Iwai , Hans de Goede , =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= , Brent Lu , Bard Liao X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Add rules to select SOF driver for Jasper Lake systems if digital microphone is present or the system is a Chromebook. Signed-off-by: Brent Lu --- sound/hda/intel-dsp-config.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c index c26229ed642f..3a3026fa4a17 100644 --- a/sound/hda/intel-dsp-config.c +++ b/sound/hda/intel-dsp-config.c @@ -309,13 +309,30 @@ static const struct config_entry config_table[] = { }, #endif -/* JasperLake */ +/* Jasper Lake */ #if IS_ENABLED(CONFIG_SND_SOC_SOF_JASPERLAKE) + { + .flags = FLAG_SOF, + .device = 0x4dc8, + .dmi_table = (const struct dmi_system_id []) { + { + .ident = "Google Chromebooks", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Google"), + } + }, + {} + } + }, { .flags = FLAG_SOF, .device = 0x4dc8, .codec_hid = "ESSX8336", }, + { + .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC, + .device = 0x4dc8, + }, #endif /* Tigerlake */