Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2594836rdh; Mon, 30 Oct 2023 01:49:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMYufUzU+mllrDwfoJcCWSNVTUlao4hrkK6t0PtKupDZfX4x4O7YyyJKA6R85t/vB1YTLN X-Received: by 2002:a05:6a20:3d02:b0:17e:8326:e4b3 with SMTP id y2-20020a056a203d0200b0017e8326e4b3mr13139385pzi.43.1698655748173; Mon, 30 Oct 2023 01:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698655748; cv=none; d=google.com; s=arc-20160816; b=sG2IrVzeiykURiswiImQZUAfFgxYuEBEFIbAUhkXHTRwDEfRyW1diErh0LWc3ymYJO TbEiG0AJXLfJnZkVgChnABgHBOJ3ZhqvUK7ty1g+LZKD+6WsLRye6LO+tUdn45541DkS DrO4TU0fjQtRFVLaEFk4alysSL12sjjlYhBOhLSGTDOPcRgq3ZyHFaRln36DVgrrCRKB y+lvcSbhWvetBb1kTxr98rjR5bf8cFmSy665+OUEnjAxvC7iCPmACseLB+9RQw5zSxmV RVT3qffiQLfcvhT6xrfhaH+dhDJmpQnOUIj3Bo4KMh8iWf0n2tgzOEOa4fwa3nA7mWhU QGJA== 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=YotGpO2X0UgwVgqgpMtpoIXJZ5xmxjttuTtC1QJZ4Kg=; fh=1AwmILFa7lbrGwfSjB5I8uzixiPwH2j5iWkh3gircbY=; b=d9lTDjQeAWmp+z2N53relZo3Gtr8WGSTidTjlkefeUX0UuPcfy1qsmvdu9CsHIJ5gS BTmegXd2GROidUVFiZfLq7Wsm0TipBoS3W3I1tGReHP7IYZLlZhkOnv+u5vU2bWNrwyS 11R1U0BV4yLMiILs40vZBeTpiVjOVApJiJmf1go9IIUywrYiUFCkYHuPq7DUMBhYrf40 FG6VAMhn6V0tvQbD0+gZmuiFUZbFkfD/9wDwe2URHHzSu/W/aNiWr/Iqu4cQiz51nt2+ RUSvYFTfJrQPGPcHDW244s8z/PP/azZLy4B7rRt3MKa4i7D/6fuyIaZaDz9YE3pKMXz9 T39A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A6f2XbDI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q14-20020a170902a3ce00b001cc31c43773si3257139plb.339.2023.10.30.01.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 01:49:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A6f2XbDI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3D00180A73D9; Mon, 30 Oct 2023 01:49:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232261AbjJ3ItC (ORCPT + 99 others); Mon, 30 Oct 2023 04:49:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbjJ3Isn (ORCPT ); Mon, 30 Oct 2023 04:48:43 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE756B7 for ; Mon, 30 Oct 2023 01:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698655721; x=1730191721; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=8Svl2OIef/iELg/Wu3PXi8qtvE9agVW+eXmQX0CeRqo=; b=A6f2XbDIjImveiz4UWFxQfxMSX8O5EVdtu5MU/aP8lpbapq+UiDf/py9 UhRhfv4k0es6C1UfMUUWNW1phXmm3YWVrYYhZ3ogetNRT4llZ+HGKS4Km FJJ2o2JGvP/ZoGjS6naIaEBuH85HPJgcjDkqrpJHo3m0sAswaqIsIqSEv WAWCBf4lMq1b2RvOV+XExDcV5ilvVW3m5i2hzrjtE2u8QKMloBhoCGPFk p1SJPt/3QOkgMOWmruwOegl6UWbm9C0/aSN87/IHQLw3c0zg0IOzJVuV1 Wb2VWs6JUZFlSTeGM0PcvYTAGwZ+fz1I8lAc6ud6gg+m/tETzR0yWihKl Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="900599" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="900599" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 01:48:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="850848905" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="850848905" Received: from aslawinx-mobl.ger.corp.intel.com (HELO [10.94.0.91]) ([10.94.0.91]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 01:48:37 -0700 Message-ID: <95e0e4a0-edff-43f6-a58b-f2324b730a99@linux.intel.com> Date: Mon, 30 Oct 2023 09:48:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ALSA: hda: intel-dsp-cfg: Use AVS driver on SKL/KBL/APL Chromebooks Content-Language: en-US To: Brady Norander , Takashi Iwai , Mark Brown , alsa-devel@alsa-project.org, Cezary Rojewski Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Pierre-Louis Bossart , Bard Liao , Ranjani Sridharan References: From: =?UTF-8?Q?Amadeusz_S=C5=82awi=C5=84ski?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 01:49:07 -0700 (PDT) On 10/28/2023 2:25 PM, Brady Norander wrote: > 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); + Cezary