Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1496762pxb; Sat, 16 Oct 2021 11:25:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDQdcX0/5ZLLOYw7Mza+bVBe3//0+tb6hPtlmJcjb7cCeLDzRe51im/fXIYOepH22EbVpy X-Received: by 2002:a17:907:c0c:: with SMTP id ga12mr15732099ejc.111.1634408706640; Sat, 16 Oct 2021 11:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634408706; cv=none; d=google.com; s=arc-20160816; b=JHqGR4tVOpUdBqPoDFkZZjfPHIyXu1gfPjzv04hAooV+wbKOnuiHu3dBVj2oX63mIZ okgR7KV9h64u/2eTt64Z6q6jW+/+FHMlNtWWljBX6EBTgoyh4fQJ7PzakA8+L+3oLzev YRFmKmq5krS2dWjryYeA+4rqkRRSyReaUpcxNoNdlzYiijQDpH9hyeUcFj6CvMs/uxXr s5gS49qKGAHnZOhWMYWzFYY7cC5op/Y4KDbiraG1273QbbnA7vgggmYDeEn09HicM7M9 1d3lCBvpFrzIiVTQnCjUGeQ65fn1eaCX6N9ia+eZkeq2fj2HWSu45wP7HbWzR7Gj4shY 1lNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=daRVdBjyBvdleQZPcl8fylDvFx6Vh/WTwIiW2N2PJCQ=; b=YNEEgGEuani0KSJDjv3gYk3A4ua5iUFri4fHI5UZpxDtUXqXafO9DV8ElXrlViMxCw LeZFmXdmgU+lW6vf5MOttKZlDg4F3NswdNuRHrFkOerZyZDffogcAJqF9lXKSDgjsn0i TctT8zLYeJX1rGodA/j41qTZifRR2OLxvq/QmC8oteuO/V03AywjNKXePpOg/9F1epBv rcxP3CsaibNET3XqESS5wOZX/d5St2sO3DqlvBRvuehE0Cx0R4pxNyuLDNeNIDRX9Pnq yu+5xIzIgH68sBmU/cJikpjrRUULto6yXhR4odAU+pDLe9wLhYLn1tZk6ALLD+fjck4D x7bg== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si13384593ejb.570.2021.10.16.11.24.43; Sat, 16 Oct 2021 11:25:06 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240390AbhJOPKI (ORCPT + 99 others); Fri, 15 Oct 2021 11:10:08 -0400 Received: from mga12.intel.com ([192.55.52.136]:30284 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233121AbhJOPKH (ORCPT ); Fri, 15 Oct 2021 11:10:07 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10138"; a="208041953" X-IronPort-AV: E=Sophos;i="5.85,376,1624345200"; d="scan'208";a="208041953" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 08:07:57 -0700 X-IronPort-AV: E=Sophos;i="5.85,376,1624345200"; d="scan'208";a="492593233" Received: from liminghu-mobl.ccr.corp.intel.com (HELO [10.212.23.213]) ([10.212.23.213]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 08:07:56 -0700 Subject: Re: [PATCH] ASoC: Intel: sof_sdw: Initialize the sof_sdw_quirk with RT711_JD_NULL To: Chris Chiu , cezary.rojewski@intel.com, liam.r.girdwood@linux.intel.com, yang.jie@linux.intel.com, broonie@kernel.org, tiwai@suse.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20211015133424.494463-1-chris.chiu@canonical.com> From: Pierre-Louis Bossart Message-ID: Date: Fri, 15 Oct 2021 10:07:53 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211015133424.494463-1-chris.chiu@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/21 8:34 AM, Chris Chiu wrote: > The jd_src of RT711 which is initialized in rt711/rt711_sdca_init > will be overridden by rt711/rt711_sdca_add_codec_device_props when > the sof_sdw_quirk is not RT711_JD_NULL. It will force the JD mode > to RT711_JD1 and cause confusion while debugging the JD mode of > the boards without quirk. Initialize sof_sdw_quirk with RT711_JD_NULL > to honor the jd_src value in rt711/rt711_sdca init. Not able to follow what the "confusion while debugging the JD mode of the boards without quirk" is. You need a DMI quirk or need to override the default quirk with the kernel module parameter. This also has the side effect of breaking ALL existing DMI quirks implicitly using JD1... > Signed-off-by: Chris Chiu > --- > sound/soc/intel/boards/sof_sdw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c > index 6b06248a9327..d05c0565e09c 100644 > --- a/sound/soc/intel/boards/sof_sdw.c > +++ b/sound/soc/intel/boards/sof_sdw.c > @@ -15,7 +15,7 @@ > #include "sof_sdw_common.h" > #include "../../codecs/rt711.h" > > -unsigned long sof_sdw_quirk = RT711_JD1; > +unsigned long sof_sdw_quirk = RT711_JD_NULL; > static int quirk_override = -1; > module_param_named(quirk, quirk_override, int, 0444); > MODULE_PARM_DESC(quirk, "Board-specific quirk override"); >