From patchwork Fri Jun 30 14:27:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 114742 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10419768vqr; Fri, 30 Jun 2023 07:41:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Cv52ljRzPAwvlOEB7wMNp+LDuSoUQ1vmU8+bNLUL5yhYhKjb8Est+XBh8I4Wc8GwRRvpE X-Received: by 2002:a05:6830:1282:b0:6b8:691c:88ae with SMTP id z2-20020a056830128200b006b8691c88aemr2874181otp.33.1688136119161; Fri, 30 Jun 2023 07:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688136119; cv=none; d=google.com; s=arc-20160816; b=P9peq77mFqSwZHFgFF7jcOIbdY4F+Qox7vG4HHDwDuizHuuYw20A7aKqKWXa5DduuT d/khU0y3VWO7j7jU3wwU/pT6lnsHgWyH1BL8jMpVvDlLP5ty75i4QjFes6cJ68KdPV0a p+9njKX7uzNeadshfM57i4z9lEwdm9w2WDJPGMMnul3jglU71vvYMOoE+MMF6XwlTthd s696TEGnEvQxW6MIvJBbFzoMuwOWSLqPAd4gOHTx1dN/rge6Zx6aCpkCzGWLEyo8jXyw 2Y1ts65zpsMKjd1iSd94VE4Wdlwqk0ao3+upBVfYZJ8j/DVWAl9HeNGmmLi3KIq1yfvA YK0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dI1a8mXHMK6zcZe8LYP5Hp9K72J94RCIPnfvjCHb0gw=; fh=0TkepFmYXz4U6PH+EYFSuuWUUWn95KEjZbqs8NbnrCg=; b=GWH4dCP9KG42c4i6NwM8FnJ8Mrk/M9IGXdRUsP19Ns7J8OqrBTyYsnrIP3aHGmioty E4zGxqkw3gpfQq3gGZJCR2QnaaksPkR0TwBHIYqSJVNV084GdJQCMFb5WUsdge3+pon/ yVKid64e92aumRseIgKxyzYA6oqPc79x0uzhYpG0QkLftyPdEclyrib4P4Kj4BYYejOD 3EV/J+Czm+0jZA9AzHcDQ3R/yxQwi03vUJUZaLUkWX2xMD9iQxRfHib3Mn416o3qnFsg jeDlvmaZcVKYDaUOaMGSzeEZgjiWhW5JK8sdn0+xumr8s5CwUzw147sW2woQw5YZ9v4D 0beg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Rp+wfgt/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a632304000000b0051b65f4d94asi12424991pgj.484.2023.06.30.07.41.44; Fri, 30 Jun 2023 07:41:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Rp+wfgt/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232523AbjF3O1l (ORCPT + 99 others); Fri, 30 Jun 2023 10:27:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbjF3O1V (ORCPT ); Fri, 30 Jun 2023 10:27:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF5C93AAB for ; Fri, 30 Jun 2023 07:27:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 67D3761767 for ; Fri, 30 Jun 2023 14:27:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB990C433CC; Fri, 30 Jun 2023 14:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688135238; bh=NRFErKcwJ/XzcSK0nLh18CLPEbv6pza++M+LD175n/g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rp+wfgt/fmfucldMXsQFVG5qrpdRwt2MhBa4hhvoo9tTSd9s8F6S09guVvviSPh/b bvOMCWwmWygIQDX8yK6ABQIriIUp8fSs+G96HhRVrxiNbzy/Jzjym4F4HEXRvJr38o gC1AOgAl0g1w86zqKQY7JJuc/k18l98/0N+CmP+cNX7oB5wTM7wwvtQEAtZD/9Ir5F mGDRP0qyjIWKfFkJ2vWj9TyXN7gTh5by1Z+O3tZKJQKV65lK9/L+Zc2tQgIUr1nrKA YXv08G+0rd0aWGx3sd2Nr0LQsBCE87E0E+qlvOnS2I9yA/SEKhID5PrCkmf02qkMXs Mrgz7snhumXqQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1qFF5p-0001O7-8o; Fri, 30 Jun 2023 16:27:25 +0200 From: Johan Hovold To: Mark Brown , Srinivas Kandagatla Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 1/5] ASoC: codecs: wcd938x: fix mbhc impedance loglevel Date: Fri, 30 Jun 2023 16:27:13 +0200 Message-Id: <20230630142717.5314-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230630142717.5314-1-johan+linaro@kernel.org> References: <20230630142717.5314-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770139019230337369?= X-GMAIL-MSGID: =?utf-8?q?1770139019230337369?= Demote the MBHC impedance measurement printk, which is not an error message, from error to debug level. While at it, fix the capitalisation of "ohm" and add the missing space before the opening parenthesis. Fixes: bcee7ed09b8e ("ASoC: codecs: wcd938x: add Multi Button Headset Control support") Signed-off-by: Johan Hovold --- sound/soc/codecs/wcd938x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index e3ae4fb2c4db..b8a52a1a63d5 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -2165,8 +2165,8 @@ static inline void wcd938x_mbhc_get_result_params(struct wcd938x_priv *wcd938x, else if (x1 < minCode_param[noff]) *zdet = WCD938X_ZDET_FLOATING_IMPEDANCE; - pr_err("%s: d1=%d, c1=%d, x1=0x%x, z_val=%d(milliOhm)\n", - __func__, d1, c1, x1, *zdet); + pr_debug("%s: d1=%d, c1=%d, x1=0x%x, z_val=%d (milliohm)\n", + __func__, d1, c1, x1, *zdet); ramp_down: i = 0; while (x1) {