Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2869531rdh; Mon, 30 Oct 2023 09:57:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0IsSZiVdIqS/8fiavrj7afqN5JfF7cJIlp92R3zkcGZBHNQIObEO60jd4J/VccMtiVDO2 X-Received: by 2002:a05:6358:5e08:b0:168:d6cd:7b2e with SMTP id q8-20020a0563585e0800b00168d6cd7b2emr10182983rwn.29.1698685024567; Mon, 30 Oct 2023 09:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698685024; cv=none; d=google.com; s=arc-20160816; b=IyLLweLIlyDEwwpkFMxvCIjVJMG74E+u5j6ujlEjmENLhmESb0d69i7dTU6JmgYoWE QZodJ4MVSKKoCgQC+TN+h7HYls8yad9D74eG7eIpngwyWX/NKls/W9ZMnETdAjtg7LXY WK+uEZOHOUifHz6c9wJVRi0Oi0b3U6kOfk7pYeepVdwe/BZUMw1gK9o9vVIOGpJnPDzx 0Tv81AxAzt//T+95Q6q3xuI4rHU8WmvW7GBlQT4lqngmmq6kvYGvPJxall1LqBEv/Qdw roqVKtDqBQNSDUS1Qdx4QcM30ZtkvGCIcg0fmDo3IzpDwkXkyQKoP3FYaSYfAy+IcCkl IngA== 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=fQM/8I5k8kJEjKpHT1+ebmcr2XyUOcpBcm/rRjanSos=; fh=01f6YX51gcoRbL3apj9wZiaPm7yAACMmbYD7DuQmgCI=; b=knBgW5FPvKTMXFmOFmdoJ/IiE9JtxbOPgKhMELt1K2tqDOlzHZoWMF9Swrgi9M4QLn xUANmeW+FiN46kRd89n1VWekXkHQUbsch+ZXwekEmS9LQIhLv1fATjF5tj2ZUnZeWs0K ruNsn+Jn2Rn46EerknEXmhBoEO1ovgI1kuTtW2hyoBUNXDu9dhPn11R2NIuIZUKdhX/Z V+DIi5X4NfD5DwqGh8Pa/TwIWnWjnNV2+ocdeVETP9zjVfhjLGKjJLDj6EiO3NdBIAtC x8Z3EA4JYCpLcqCWrOI0mDduyRrtLtSu7oqZAIpHaZewkzoYIIwW87/e61gAoO7Gbp/d EtZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WffeSOA6; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id z4-20020a63c044000000b0059f0cebd046si5144559pgi.729.2023.10.30.09.57.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 09:57:04 -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=@intel.com header.s=Intel header.b=WffeSOA6; 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=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8238080A567F; Mon, 30 Oct 2023 09:56:52 -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 S232072AbjJ3Q4l (ORCPT + 99 others); Mon, 30 Oct 2023 12:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231433AbjJ3Q4k (ORCPT ); Mon, 30 Oct 2023 12:56:40 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A33A9 for ; Mon, 30 Oct 2023 09:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698684999; x=1730220999; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=dEjCXDT0zPEo0nS7+2ecfgvoIT2oYjrfZSHG4lH9szk=; b=WffeSOA6C8LUXvmVrXnTh9RBQV6TopmQIJfarbA/ZwGuxHCgq93Jjxyb ascQ5CMOBJwu1vNpvLKSechJeujKxzYerN+HgrrggO8XsWygwjH30SJE8 z2ySzZLv+Cfkpy3eZi8aEQtcWA/ZJXp4t07oH18du7d8aPh4EcDfNFfrA Cvzf3uzr7hkcb40VW5uphwkFoa+YHMyRcNxWHRQ2R4EdMvxLQUkOoKZ3E 5CKcPB8FY2XDKE6tSeRiEJ0lAEvaC7vuHA8nK/6dFk+A61hAv10xoiFdV aTyADGyubcWX9YqCXXSdoBOoRgjkWAlJz1dF6gql34tq+MGbBW+if9s2c w==; X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="957307" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="957307" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 09:56:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="830736415" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="830736415" Received: from wezedi-mobl1.amr.corp.intel.com (HELO [10.212.223.192]) ([10.212.223.192]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 09:56:37 -0700 Message-ID: <257609dc-8fa9-40e0-8730-29e45af93878@linux.intel.com> Date: Mon, 30 Oct 2023 11:08:50 -0500 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 Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Bard Liao , Ranjani Sridharan , =?UTF-8?Q?Amadeusz_S=C5=82awi=C5=84ski?= References: From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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]); Mon, 30 Oct 2023 09:56:52 -0700 (PDT) On 10/28/23 07:25, Brady Norander wrote: > The legacy SKL driver no longer works properly on these Chromebook > platforms. Use the new AVS driver by default instead. shouldn't this be used only if AVS is compiled in? > > 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);