Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3907560rdh; Tue, 28 Nov 2023 07:02:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1AWFixVZlJAg6KndmCYChyvPGgoJ94X/X3EHGXuqLQtZECLrXBMjFro5/FagGXMi/am1r X-Received: by 2002:a05:6602:2245:b0:7b3:7173:f5ec with SMTP id o5-20020a056602224500b007b37173f5ecmr12017893ioo.1.1701183751921; Tue, 28 Nov 2023 07:02:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701183751; cv=none; d=google.com; s=arc-20160816; b=X9LNmuSPYKTNmp7A3rql2/IAaJe9CxTZ0lNS6+tEzxIfBY3PRRKSi8SPxsakHUrTIW hKgydiRcfllcDKk7Vfk4/IM0ceIny8snB7cEbdJ1PO7hcDmmbWJxYTcFl+JoTUQw/1K3 p7hlP4sdRpdaKVDppCYjkIyZkrWiQt+/VgzRI4pMNXEP0aneO0Uxh0qruvmy1L5KE1FG wEFZW5/szsrPwgh6QV0CYIk9yLRhgRu59loaS0LB5eoOOTcEGcOyC4M9ig5Rdrd2d1zZ E+nSjA4+jHlMv+u0qTm+HZueXN6QDeGthwmVbXimaGDu0r5cMz/3Zx3/4i7dV0FfDMtQ nxrw== 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 :organization:autocrypt:references:cc:to:content-language:subject :reply-to:from:user-agent:mime-version:date:message-id :dkim-signature; bh=ZkWu2ySemNB+dH9OL9BeVvXo61wInQDnE0WqBxTBfkI=; fh=pPx/cTERIdK6h5EQBbuhPqy/r26j/nKEpu8HseEFkQk=; b=uNQW3F0z30WDJcvTqny2xhxld0j6EsucvZ2VpmhzXPTjSVs3u4ibUTfjUN+4/HZR1l ps7ddn0PHe3VNSwtE+OqT7EGAYHkCKMlBohQc13IYksI5CQMtVBr5A6HVF2nlEi8ql8k PkpGtiAo7JA/9rM3v0hxwlUvSreSWGLC5z6cS2fCP5/hfsYTrb84xvRAVh1/rX24Zq1T ftRpClJXmIiuwqG5cCLqOO/z5UDkECkMsSVDS4kxPsccUNoEhgvKwx8tjBlo/b94B3Yp 9PF9vWAjzWtvwOKmeOhAxCLKw2SFGsJmHcfBwnlF+fu0XSNqDmmFvcHSXXhVwH3nL11F hUdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HIOQlGW1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cd3-20020a056602428300b007b396f1b728si605762iob.40.2023.11.28.07.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:02:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HIOQlGW1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 663B780A3658; Tue, 28 Nov 2023 07:02:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346457AbjK1PB6 (ORCPT + 99 others); Tue, 28 Nov 2023 10:01:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346428AbjK1PB5 (ORCPT ); Tue, 28 Nov 2023 10:01:57 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DFE10E2 for ; Tue, 28 Nov 2023 07:02:03 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40b479b9c35so15467225e9.1 for ; Tue, 28 Nov 2023 07:02:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701183722; x=1701788522; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=ZkWu2ySemNB+dH9OL9BeVvXo61wInQDnE0WqBxTBfkI=; b=HIOQlGW1QxdmrClYbNjwPRnpecuU3Sm1WIvTgc5p9LLB0upiteqAqu2U8Y5/thqsMB pYE0IstAsyI9Ges8ooWajBXuup21LbU/z+nvDLRjOOVtBvZNH4y5PNyf/ogrdJS7NlzG nuN4nHAJKOgmou7YClQedbjjy0zrgwxeQEy+zuX+JGs4IIp0JMYHLsup21ea7Nb11oJC jfykXjVLfTLVtfxFavlSTs98xdFqAxiLiBBYrurNTh8zh2o6xPhpni0Ia0c2USTq1XS2 JMSQllQWx5Po5ZgYqiHoPUZCLm3PnWz1zTGufxXb6RgD4qjqO38HB6kEO62OoIeIbbKg h+Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701183722; x=1701788522; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=ZkWu2ySemNB+dH9OL9BeVvXo61wInQDnE0WqBxTBfkI=; b=Lipk2OzZ8A5BIPWTJSFGHvz0X9ttbYcjiEiLJxl9QW1tq3VXWBkunBhTN16SD/KztM qqY+WhVlI8uCYYGWlOhXWBW+B0sHBeY1RP28zjw6zs6DWpHMI9OjOMqaX7cKUGIxpYbH jezyTniSECyyU+Vtn1x4Qof13RA9mXa0pWuh7Pqt6zld4tOCheeW2z6Y5V4uQ6qIjmMJ OVlWlZdqABWhps8vbOjEMI+qf20hzx0R1HARGPrmd7bXo8hb0KLhrxCFud88lcWabbZx WRo4tsm9qg+QQStJuP72nHU4z3A5Wmcc8N4G48337210OOJ2sQczGHMHzCej+Tnzd1XZ Zymw== X-Gm-Message-State: AOJu0YwpLsH09FsM6Zm1mcx1zUS7LeScCTOVXiKnFRLx7arQ9bdgL8LN YHj6Y3UvJUBcn9AGu0We9AZvlg== X-Received: by 2002:a05:600c:1d17:b0:401:eb0:a974 with SMTP id l23-20020a05600c1d1700b004010eb0a974mr12639457wms.3.1701183721458; Tue, 28 Nov 2023 07:02:01 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:eada:f40e:7ab3:2afe? ([2a01:e0a:982:cbb0:eada:f40e:7ab3:2afe]) by smtp.gmail.com with ESMTPSA id fa20-20020a05600c519400b0040b3e26872dsm12773310wmb.8.2023.11.28.07.02.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Nov 2023 07:02:00 -0800 (PST) Message-ID: <42a6f6e0-2846-4cdc-8702-493fadbafb98@linaro.org> Date: Tue, 28 Nov 2023 16:01:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 5/5] ASoC: codecs: Add WCD939x Codec driver Content-Language: en-US, fr To: Konrad Dybcio , Srinivas Kandagatla , Banajit Goswami , Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231123-topic-sm8650-upstream-wcd939x-codec-v1-0-21d4ad9276de@linaro.org> <20231123-topic-sm8650-upstream-wcd939x-codec-v1-5-21d4ad9276de@linaro.org> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/mvqQtaTtZID2dos04 YqBbshiJbejgVJjy+HODcNUIKBB3PSLaln4ltdsV73SBcwUNdzebfKspAQunCM22Mn6FBIxQ GizsMLcP/0FX4en9NaKGfK6ZdKK6kN1GR9YffMJd2P08EO8mHowmSRe/ExAODhAs9W7XXExw UNCY4pVJyRPpEhv373vvff60bHxc1k/FF9WaPscMt7hlkbFLUs85kHtQAmr8pV5Hy9ezsSRa GzJmiVclkPc2BY592IGBXRDQ38urXeM4nfhhvqA50b/nAEXc6FzqgXqDkEIwR66/Gbp0t3+r yQzpKRyQif3OwE0ETVkGzwEIALyKDN/OGURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYp QTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXMcoJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+ SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hiSvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 07:02:22 -0800 (PST) On 25/11/2023 13:07, Konrad Dybcio wrote: >> + >> +static int wcd939x_io_init(struct snd_soc_component *component) >> +{ >> + snd_soc_component_write_field(component, WCD939X_ANA_BIAS, >> + WCD939X_BIAS_ANALOG_BIAS_EN, 1); > All of these values are BIT()s or 2-4 ORed BIT()s, can you check what they > mean? > > Same for almost all other snd_soc_component_ write/modify functions It uses snd_soc_component_write_field() with is the same as regmap_write_bits(REGISTER, REGISTER_MASK, FIELD_PREP(REGISTER_MASK, value); So the 1 mean write in enable mask in this case, and mask is single bit, read it exactly like if it was using FIELD_PREP(), but even for BITs. I did check every single snd_soc_component_write_field() so far to check it matches. Or it's another question ? Neil > > [...] > > > > Konrad