From patchwork Wed Nov 1 09:02:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangweidong.a@awinic.com X-Patchwork-Id: 13442614 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F817C4332F for ; Wed, 1 Nov 2023 09:02:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232624AbjKAJC1 (ORCPT ); Wed, 1 Nov 2023 05:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231570AbjKAJC0 (ORCPT ); Wed, 1 Nov 2023 05:02:26 -0400 Received: from out28-173.mail.aliyun.com (out28-173.mail.aliyun.com [115.124.28.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7379F1; Wed, 1 Nov 2023 02:02:22 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.162632|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.00934526-0.000121555-0.990533;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047204;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=11;RT=11;SR=0;TI=SMTPD_---.VCeeghj_1698829334; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.VCeeghj_1698829334) by smtp.aliyun-inc.com; Wed, 01 Nov 2023 17:02:18 +0800 From: wangweidong.a@awinic.com To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, wangweidong.a@awinic.com, liweilei@awinic.com, u.kleine-koenig@pengutronix.de, yang.lee@linux.alibaba.com, nathan@kernel.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/3] ASoC: codecs: Modify some error codes Date: Wed, 1 Nov 2023 17:02:07 +0800 Message-ID: <20231101090211.177125-1-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-sound@vger.kernel.org From: Weidong Wang The maximum value that calib can set should be consistent with the maximum value of re. An error code should be return when the re is greater than the maximum value or less than the minimum value The value of vsense_select should be either 32 or 0 in both cases, so modify the AW88399_DEV_VDSEL_VSENSE macro to 32. v1 -> v2: Added changes to the calib range Weidong Wang (3): ASoC: codecs: Modify the maximum value of calib ASoC: codecs: Modify the wrong judgment of re value ASoC: codecs: Modify macro value error sound/soc/codecs/aw88395/aw88395.c | 2 +- sound/soc/codecs/aw88399.c | 6 +++--- sound/soc/codecs/aw88399.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) base-commit: fa7d0c17278644aa691f96d08bef8001b762f9cd