Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp161830pxb; Wed, 3 Nov 2021 01:53:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzamTG0yd8jLQJSkppH0tBfKJnLsugREssNSwmWgjoshMpk4HmXp15jKbxr8pqG8YukyJ6l X-Received: by 2002:aa7:c508:: with SMTP id o8mr45486078edq.393.1635929599133; Wed, 03 Nov 2021 01:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635929599; cv=none; d=google.com; s=arc-20160816; b=oU7xnoLQxsF1VQZ4XeCHD/oIWt9snRnRiqfbgQpkG231u5oElPQ5HcIzjpFkvPTu9r bjiamvuh1LEKJ+qBHI1DJQR36+0OjoGHH5W+6Yor5wPKd36H5ate7UGJIOoK0tBJAxIB jmAWCE0AQJT7GbwhdltjfU/Crry2zrkCkM9NpuC1uKpj952UQekahMNmXjROsTEOLWu5 fgMT5LB+wq6Tkz2fc0yUucsggpQMpWe2HryeivRaHjFR921xjNew636GvBGSSWzeBmQe M7zOkEEgiWuNXYpLMAdR4FfrUnt7gC5QPRjkRO7bfT2UbEqd+CB61y1SNQPHD9uHGvhp snwg== 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:dkim-filter; bh=vFDLdnkcHsfk2/QTntSCR/dfoDKCHLwuRZx4pBby7YA=; b=bfouPaN/Nw/9Buab4jAo/9Jyxd0zoSmoQE8WjTNp17ie5nw8QLnjMg8iOLlBYOdN75 pFWpwMaYnVyuaI+k5HhYLtlE7jkXrsqyyF3Aec+tGM9moTlOVU8hGPte3frM2ex8jfaK vaFfIx6uzPlWjLES5L6Hpd9sDLfKV5rViTO1qPZvR822UHpVHx8ruKpoMZfYbpWmHh+b KHgFAa/C+FCBocvNqw7FfX9XpH9Ul7VSLET7sGNx1eywumKQYSCY9Pj59jnYfvHjS+ZK aTzc8A0BMA7QS6bxyq+SeBVcQjhbfkmD0oEK+uYdWuii8HQcGijnOFABl5MlaGX/04si Wwdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@perex.cz header.s=default header.b=N8CokAGH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=perex.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb9si3516349ejc.163.2021.11.03.01.52.55; Wed, 03 Nov 2021 01:53:19 -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; dkim=pass header.i=@perex.cz header.s=default header.b=N8CokAGH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=perex.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232029AbhKCIxq (ORCPT + 99 others); Wed, 3 Nov 2021 04:53:46 -0400 Received: from mail1.perex.cz ([77.48.224.245]:40436 "EHLO mail1.perex.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232068AbhKCIxb (ORCPT ); Wed, 3 Nov 2021 04:53:31 -0400 Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id D48ABA003F; Wed, 3 Nov 2021 09:50:49 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz D48ABA003F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1635929449; bh=vFDLdnkcHsfk2/QTntSCR/dfoDKCHLwuRZx4pBby7YA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=N8CokAGHnvJ7JSUcHrunu04N62GiSOSzsmmM6fgknTNI8sN6oAEGb/4xYRLI8gbmB FhVYmFlM5+CBGg3wNe94fD7RKU95mcLkhRDvt40V2ITK/x5pZwg1VkhB05JlaG3C8A 4waT4ejxQEPM72d0+rQX9aKAbMWlZ+CmrcSKaKdg= Received: from [192.168.100.98] (unknown [192.168.100.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: perex) by mail1.perex.cz (Perex's E-mail Delivery System) with ESMTPSA; Wed, 3 Nov 2021 09:50:40 +0100 (CET) Message-ID: <8a00ea68-4859-fbcc-6292-909a66b0a188@perex.cz> Date: Wed, 3 Nov 2021 09:50:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH 0/4] Fix kcontrol put callback in Tegra drivers Content-Language: en-US To: Sameer Pujar , broonie@kernel.org, lgirdwood@gmail.com, tiwai@suse.com Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <1635915897-32313-1-git-send-email-spujar@nvidia.com> From: Jaroslav Kysela In-Reply-To: <1635915897-32313-1-git-send-email-spujar@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03. 11. 21 6:04, Sameer Pujar wrote: > This series fixes kcontrol put callback in some of the Tegra drivers > which are used on platforms based on Tegra210 and later. The callback > is expected to return 1 whenever the HW update is done. The logic is a little bit another. The 1 means change, so you should compare the register / cached value and return 1 only when a different value is set. Your implementation invokes the change events for duplicate updates. Jaroslav -- Jaroslav Kysela Linux Sound Maintainer; ALSA Project; Red Hat, Inc.