Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90A9AC433EF for ; Wed, 8 Sep 2021 16:40:32 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4DE7161139 for ; Wed, 8 Sep 2021 16:40:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4DE7161139 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org 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 C7FE6168D; Wed, 8 Sep 2021 18:39:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C7FE6168D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1631119229; bh=XUpAV1YeBLo77SXA5+BIgblbG+VplBdhWsGJd+XCjrs=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ggBo+WbnWjw10DGaT/XeVycuhxSGkY5AH9ErLv3nSxWm9q0+ZwNy5rTO+U0ZzC8JP l7eju+7h8n/Tru23Dv3FdvFc1vMbLTQZFyX4bnQVGQ6fpgZXM+l3kcuRg2fEYGRCbZ 3f4FaBfKXcUOpsh9rwVM1TV757fUXB1QEdnpfAws= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 53B92F8026C; Wed, 8 Sep 2021 18:39:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C08C3F802E7; Wed, 8 Sep 2021 18:39:25 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 5DDDCF80166 for ; Wed, 8 Sep 2021 18:39:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5DDDCF80166 X-IronPort-AV: E=McAfee;i="6200,9189,10101"; a="207767971" X-IronPort-AV: E=Sophos;i="5.85,278,1624345200"; d="scan'208";a="207767971" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2021 09:38:57 -0700 X-IronPort-AV: E=Sophos;i="5.85,278,1624345200"; d="scan'208";a="547903077" Received: from sgevirtz-mobl.amr.corp.intel.com (HELO [10.209.141.208]) ([10.209.141.208]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2021 09:38:55 -0700 Subject: Re: [PATCH] ASoC: SOF: fix a typo in put operations for kcontrol To: alsa-devel@alsa-project.org References: <20210907184603.33243-1-pierre-louis.bossart@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <267c65d5-3d3e-84c9-2e83-8d36f9e65b95@linux.intel.com> Date: Wed, 8 Sep 2021 11:38:52 -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: <20210907184603.33243-1-pierre-louis.bossart@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: tiwai@suse.de, broonie@kernel.org, Peter Ujfalusi , Ranjani Sridharan , Rander Wang 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" On 9/7/21 1:46 PM, Pierre-Louis Bossart wrote: > From: Rander Wang > > SOF_CTRL_TYPE_VALUE_CHAN_SET should be used for put operations > for consistency. The current use of _GET is obviously incorrect > but _GET and _SET result in the same action so there is no > functional change introduced by this patch. > > Reviewed-by: Ranjani Sridharan > Signed-off-by: Rander Wang > Signed-off-by: Pierre-Louis Bossart Please discard this patch, it was already sent by Peter on September 2. The effect of the long week-end I guess... Sorry for the noise. > --- > sound/soc/sof/control.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/sof/control.c b/sound/soc/sof/control.c > index a5dd728c580a..504500dd4d43 100644 > --- a/sound/soc/sof/control.c > +++ b/sound/soc/sof/control.c > @@ -108,7 +108,7 @@ int snd_sof_volume_put(struct snd_kcontrol *kcontrol, > if (pm_runtime_active(scomp->dev)) > snd_sof_ipc_set_get_comp_data(scontrol, > SOF_IPC_COMP_SET_VALUE, > - SOF_CTRL_TYPE_VALUE_CHAN_GET, > + SOF_CTRL_TYPE_VALUE_CHAN_SET, > SOF_CTRL_CMD_VOLUME, > true); > return change; > @@ -179,7 +179,7 @@ int snd_sof_switch_put(struct snd_kcontrol *kcontrol, > if (pm_runtime_active(scomp->dev)) > snd_sof_ipc_set_get_comp_data(scontrol, > SOF_IPC_COMP_SET_VALUE, > - SOF_CTRL_TYPE_VALUE_CHAN_GET, > + SOF_CTRL_TYPE_VALUE_CHAN_SET, > SOF_CTRL_CMD_SWITCH, > true); > > @@ -226,7 +226,7 @@ int snd_sof_enum_put(struct snd_kcontrol *kcontrol, > if (pm_runtime_active(scomp->dev)) > snd_sof_ipc_set_get_comp_data(scontrol, > SOF_IPC_COMP_SET_VALUE, > - SOF_CTRL_TYPE_VALUE_CHAN_GET, > + SOF_CTRL_TYPE_VALUE_CHAN_SET, > SOF_CTRL_CMD_ENUM, > true); > >