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=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 35570C433E6 for ; Fri, 19 Mar 2021 06:55:39 +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 F228E64F6C for ; Fri, 19 Mar 2021 06:55:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F228E64F6C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=perex.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@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 ABCDD167F; Fri, 19 Mar 2021 07:54:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz ABCDD167F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1616136934; bh=37sGlGbo1W4d/H0baQpnQp1ehNkuIW+krxhAkY2XKag=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=MYL2e9CLf/qIUVaEA033Q2XTgU6VI7cRKXV5tiWkLtyp6a/VNDtYpb573bWa5xxFy sXloOu+K72yWxjWxLpXAkAxv4JQg2u3HgBX6ftfNe3J/9LjTU480vj7rCsvQKZu1fJ KL58mAZJKRd13jNHXSiOO6NPvxzq4G95N6dZP8iY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1CF47F80124; Fri, 19 Mar 2021 07:54:44 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5E59DF8021C; Fri, 19 Mar 2021 07:54:40 +0100 (CET) Received: from mail1.perex.cz (mail1.perex.cz [77.48.224.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 4E53FF80124 for ; Fri, 19 Mar 2021 07:54:32 +0100 (CET) Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id D81D9A003F; Fri, 19 Mar 2021 07:54:30 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz D81D9A003F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1616136870; bh=P/qyZmhVW0dKKRsxR1Cz5ZqR6oAiQHxSnKurai0R6o8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=RKggjy1LUAtiRM9xZSvXbg5PauHzTFaMG8AIrUVXKC6QcZOwgofRkYiLnT/tv9/p5 BfrExemCdXhGtosFyWb8By6SIzB0fbqVjZ8ugFg78mSl4RuQP71R5GQs1OiAhkftkH A5PxeQEHWaRo4cOfYULzl15+CwW9AtI/sKPKvs9w= Received: from p1gen2.localdomain (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; Fri, 19 Mar 2021 07:54:21 +0100 (CET) Subject: Re: [PATCH 1/2] ASoC: rt715: add main capture switch and main capture volume To: Jack Yu , broonie@kernel.org, lgirdwood@gmail.com References: <20210319030337.16213-1-jack.yu@realtek.com> From: Jaroslav Kysela Message-ID: <2d55b97c-e781-552a-5064-5715443fb7e9@perex.cz> Date: Fri, 19 Mar 2021 07:54:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210319030337.16213-1-jack.yu@realtek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: oder_chiou@realtek.com, alsa-devel@alsa-project.org, lars@metafoo.de, derek.fang@realtek.com, shumingf@realtek.com, flove@realtek.com 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" Dne 19. 03. 21 v 4:03 Jack Yu napsal(a): > Add main capture switch and main capture volume control. > Main capture control has its own channel value respectivelly. It's a 'deja vu' without a proper solution. Please, resolve issues described in the first thread: https://lore.kernel.org/alsa-devel/20201214064903.2746-1-jack.yu@realtek.com/#t It's bad to map multiple controls to operate on top of the same registers without any kind of synchronization. Also, I note that the put callback should return 1 when the value is changed. Your callbacks return only 0 in all cases. I would not apply this patch. Jaroslav -- Jaroslav Kysela Linux Sound Maintainer; ALSA Project; Red Hat, Inc.