Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1736430rdh; Sat, 28 Oct 2023 05:25:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFX18zX+esTZnxgkmbIK0OQ1UZp0iWBfVyJlDGzWGrwC1VKIXNlBueyhiZ6Hu0NRuGQw/S5 X-Received: by 2002:a05:6358:281d:b0:168:ceb1:ac25 with SMTP id k29-20020a056358281d00b00168ceb1ac25mr7261643rwb.7.1698495927669; Sat, 28 Oct 2023 05:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698495927; cv=none; d=google.com; s=arc-20160816; b=PFGXk+CV/YPW7DP3+1iwuejjo39AbE1v5aI93vgB/NORb+4dF9IlxtHWn51WLB/oP+ eYC5LKumEWK9B2TAKDoTrHleXGizXSX5qtmKXClKRJzzhfOxA+uRaFZp4M3DwcP9KJsP M3vWTWw5ViIODPJybRKeMDhBbXdr3OnW+UUofef1KSWLVLitkjTEbm2f5l1YZ2cCnXAI OvUG9UDwUXWWJMi618xhsNYMlTZzItW5h4h5FQN16mJYLhOj/427Ig3J2v/b+EzdCix+ Q+gZT4mU1h7/LSptIhKA5XRxS79sJQZll2k5uGE0lkcwIdicMrlBWoLyVmA7CMQJOOI2 jouA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=vSxHFmesFAB9kTq2jfm6itRE/8cOOBEbwEMaK6v6h14=; fh=O4BPtPZDfdrT9lJlJGcBtI3OsYdfAuh1dxRwsHjxqdg=; b=NH6+fs9IPSv1cyRyVHDSHsEIopcSDqbB/eJUO9Psm4hYuqSO4TXgjV1GzPo+6pDFGi WB+9r450oh9vEUO9wfES36QlQ9bKuQmZW6gYJSRchrRYdrgkoxMc4rLlYAHA2dNnX5mV /Xu4i1efrhmk/gCp9aTy51la3zvSqytfdiXZxSkCqTk21GkCsYQnqkbTyK1TRorPj7UA jqm3CUKl8hvSfFPsW29tTkzaouyCXLtjVCbEjdBW04o+cW72kuOU6mvuLDaeR9gemHkL EcBVzO0GjUO13fAeFsa5wCsTmWpVIDuqz803R2LKO1o6NfacPq9srYCyu02Ozl66dAht gnww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SjzPPaEU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h63-20020a638342000000b00585a6bdce46si2452356pge.308.2023.10.28.05.25.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 05:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SjzPPaEU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0A77980A0DD5; Sat, 28 Oct 2023 05:25:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbjJ1MZN (ORCPT + 99 others); Sat, 28 Oct 2023 08:25:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjJ1MZM (ORCPT ); Sat, 28 Oct 2023 08:25:12 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2A9491 for ; Sat, 28 Oct 2023 05:25:09 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7a950f1451fso37811639f.1 for ; Sat, 28 Oct 2023 05:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698495909; x=1699100709; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=vSxHFmesFAB9kTq2jfm6itRE/8cOOBEbwEMaK6v6h14=; b=SjzPPaEUoap57SuvzkOXELjnU4SZq+dbhQJFAKTy/QXdnWSosNDH6HbhcfiCt+e6Y0 pb9v857ybLEsjHyniAbpJe+ePP9KACDYBfz/sh/FcYBcYAWiFoarEWHQsiAUZSptGYQN 0bpbYOLngGQGGLXHrZhiu5/PqXiWhCUdpt95O9R47RhQ2vja1Hj8XUER+2TJWONV7wMb iVjn2hLm8RJkWP5yGGUTwNf330g/yr6RxHwnf2+8UtEhlCmH4OzQo98XKxHrGHDXLV41 7Q6XrRyEugb6raKA0LagkzWzJ4lu0j+UHq8/mmIQEJRFWKsIvWczGarZVWTQ6a/bWZJb Jp7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698495909; x=1699100709; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vSxHFmesFAB9kTq2jfm6itRE/8cOOBEbwEMaK6v6h14=; b=cUpKJ0MSItQSXBHbk1g6lPsBIP+oU4YSGwrCfs8YpQuiWvYMMEOIkxySiOQehFyzEO N7s9394vF1UEO9IWE6XLLq+ksAwwJ12GEZRy977p1HgxHzVxFPVLL8TsIl3bQwlkQIk9 0uT0V8wcsbbEQAOagcUwqNApl0amVOY8KAQaFeE3RHXRAmuzwZ1KtaJnm9c1hGbuywhh fmEmzb1PhftZ/3hb+SCqFFvLhpB25tmGpF0VMTpIpRzmOBPvX1IZMrTMAh5UuwbF+9So KgV82z9tMdu8OmqOOsyudrSn0dFCm9V7neqy9zykCS3o5hwH3rN7Tvh8hFtMy4iRRErg UEJw== X-Gm-Message-State: AOJu0YxxZEiKi8dU0CNnbnkd5paCHkHrkEqhTn4Yi4a0ou5eEvf9K5WW GVzuIwV54Z1Jdwyf4jgVNB4= X-Received: by 2002:a05:6e02:218a:b0:359:a6d:bcf6 with SMTP id j10-20020a056e02218a00b003590a6dbcf6mr918480ila.1.1698495908891; Sat, 28 Oct 2023 05:25:08 -0700 (PDT) Received: from arch (c-68-55-100-39.hsd1.mi.comcast.net. [68.55.100.39]) by smtp.gmail.com with ESMTPSA id w4-20020a056e021a6400b003579f927291sm1108075ilv.38.2023.10.28.05.25.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 05:25:08 -0700 (PDT) Date: Sat, 28 Oct 2023 08:25:06 -0400 From: Brady Norander To: Takashi Iwai , Mark Brown , alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Pierre-Louis Bossart , Bard Liao , Ranjani Sridharan , Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= Subject: [PATCH] ALSA: hda: intel-dsp-cfg: Use AVS driver on SKL/KBL/APL Chromebooks Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 28 Oct 2023 05:25:25 -0700 (PDT) The legacy SKL driver no longer works properly on these Chromebook platforms. Use the new AVS driver by default instead. Signed-off-by: Brady Norander --- sound/hda/intel-dsp-config.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c index 756fa0aa69bb..1045be1fd441 100644 --- a/sound/hda/intel-dsp-config.c +++ b/sound/hda/intel-dsp-config.c @@ -16,10 +16,11 @@ static int dsp_driver; module_param(dsp_driver, int, 0444); -MODULE_PARM_DESC(dsp_driver, "Force the DSP driver for Intel DSP (0=auto, 1=legacy, 2=SST, 3=SOF)"); +MODULE_PARM_DESC(dsp_driver, "Force the DSP driver for Intel DSP (0=auto, 1=legacy, 2=SST, 3=SOF, 4=AVS)"); #define FLAG_SST BIT(0) #define FLAG_SOF BIT(1) +#define FLAG_AVS BIT(2) #define FLAG_SST_ONLY_IF_DMIC BIT(15) #define FLAG_SOF_ONLY_IF_DMIC BIT(16) #define FLAG_SOF_ONLY_IF_SOUNDWIRE BIT(17) @@ -56,7 +57,7 @@ static const struct config_entry config_table[] = { /* * Apollolake (Broxton-P) * the legacy HDAudio driver is used except on Up Squared (SOF) and - * Chromebooks (SST), as well as devices based on the ES8336 codec + * Chromebooks (AVS), as well as devices based on the ES8336 codec */ #if IS_ENABLED(CONFIG_SND_SOC_SOF_APOLLOLAKE) { @@ -81,7 +82,7 @@ static const struct config_entry config_table[] = { #endif #if IS_ENABLED(CONFIG_SND_SOC_INTEL_APL) { - .flags = FLAG_SST, + .flags = FLAG_AVS, .device = PCI_DEVICE_ID_INTEL_HDA_APL, .dmi_table = (const struct dmi_system_id []) { { @@ -96,13 +97,13 @@ static const struct config_entry config_table[] = { #endif /* * Skylake and Kabylake use legacy HDAudio driver except for Google - * Chromebooks (SST) + * Chromebooks (AVS) */ /* Sunrise Point-LP */ #if IS_ENABLED(CONFIG_SND_SOC_INTEL_SKL) { - .flags = FLAG_SST, + .flags = FLAG_AVS, .device = PCI_DEVICE_ID_INTEL_HDA_SKL_LP, .dmi_table = (const struct dmi_system_id []) { { @@ -122,7 +123,7 @@ static const struct config_entry config_table[] = { /* Kabylake-LP */ #if IS_ENABLED(CONFIG_SND_SOC_INTEL_KBL) { - .flags = FLAG_SST, + .flags = FLAG_AVS, .device = PCI_DEVICE_ID_INTEL_HDA_KBL_LP, .dmi_table = (const struct dmi_system_id []) { { @@ -667,6 +668,9 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci) } } + if (cfg->flags & FLAG_AVS) + return SND_INTEL_DSP_DRIVER_AVS; + return SND_INTEL_DSP_DRIVER_LEGACY; } EXPORT_SYMBOL_GPL(snd_intel_dsp_driver_probe); -- 2.42.0