Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3142757rdh; Thu, 28 Sep 2023 04:08:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGq+BdAdolVHuIOf2KcGD0jlm6xQ2zrHpLNX7rm/Wg4PC5F+ykUz4xc9vK8t7290pDXbh4s X-Received: by 2002:a05:6358:290b:b0:143:788c:2560 with SMTP id y11-20020a056358290b00b00143788c2560mr1014951rwb.15.1695899325274; Thu, 28 Sep 2023 04:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899325; cv=none; d=google.com; s=arc-20160816; b=OhXKGcw0petKyY3Oa4nqrAKDjG5atPkIyH46fC+nfs4UR5mA5w+zYYK3VL2a/SI72B LiPwF1UCbueNiCMn2Tf5MCluvk5AWhE3Ml+MbIl0XiPhbyx/xGDfnEs8jV9BBJYxQHA1 YH1C+6edP984elFuakzc32hr3xxA66JLF++tzyeknEjjfrtJoAeGbWrKharjTLYPKaAi Tu6iqQzJ3TPn1/NGLjHb9CoYJa5uaZFcj6NW9Z+MeZdXffTCYw7JF2+gfG0+mVZb1ERg ITbzidNvIPR6tqtKo8R0zBDLmqNoCIXREf26tqixm6kxI4gfjdIZPRXfosW1vYpW/XIF rHbw== 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 :message-id:date:subject:to:from; bh=RzdgvQw6INw9ze3bVfAhYFUuWHCHF4fWorW8SUzXIm8=; fh=uAHJyyPUpn6IrkkiorP+jZGHnZM9HKgISwDYoF12jww=; b=vZKbSolUZkhOPtY3yxxi0AZzZ+Q3um2NycGkhiXBVx8TcfJoOQINqvYW37WtgdVKWv fW889UH8vKE9RQIebq0TH0bogQz/vnfx9UPvt4d0SpgsoxhxLoRyqNRabRjqPVCGG1fr fqUYs5j/bOqCZeW/h6wrs1Rj+6B0mpYrfOoXuVkVqRush/z7hwNwDcKqvyZS+oTb6tfL QcySrdj9ofZcQgJCmVjwVk+EI+rSxiwoA8vS9U0TO2XEnV3L2ZHP/GmyyrsFypZ/EMwr xXoDu03l/3/kI+HPBxGO7/nb8ZG4EM4U+VIzea7dRaIxc6XI2Ea5FRxydSTqqXTJneVJ /Xkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id e14-20020a63d94e000000b0057d3b77a9e2si12775388pgj.98.2023.09.28.04.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:08:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B7D25804C20E; Thu, 28 Sep 2023 03:57:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbjI1K5q (ORCPT + 99 others); Thu, 28 Sep 2023 06:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbjI1K5p (ORCPT ); Thu, 28 Sep 2023 06:57:45 -0400 Received: from out28-74.mail.aliyun.com (out28-74.mail.aliyun.com [115.124.28.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECABE126; Thu, 28 Sep 2023 03:57:42 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07345675|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0406445-0.000234974-0.959121;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047204;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=30;RT=30;SR=0;TI=SMTPD_---.UqYH824_1695898649; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.UqYH824_1695898649) by smtp.aliyun-inc.com; Thu, 28 Sep 2023 18:57:38 +0800 From: wangweidong.a@awinic.com To: girdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, perex@perex.cz, tiwai@suse.com, wangweidong.a@awinic.com, rf@opensource.cirrus.com, shumingf@realtek.com, herve.codina@bootlin.com, rdunlap@infradead.org, 13916275206@139.com, ryans.lee@analog.com, linus.walleij@linaro.org, ckeepax@opensource.cirrus.com, doug@schmorgal.com, ajye_huang@compal.corp-partner.google.com, harshit.m.mogalapalli@oracle.com, arnd@arndb.de, yang.lee@linux.alibaba.com, u.kleine-koenig@pengutronix.de, liweilei@awinic.com, yijiangtao@awinic.com, trix@redhat.com, dan.carpenter@linaro.org, colin.i.king@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V6 00/10] ASoC: codecs: Add aw87390 amplifier driver Date: Thu, 28 Sep 2023 18:57:17 +0800 Message-ID: <20230928105727.47273-1-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 28 Sep 2023 03:57:53 -0700 (PDT) From: Weidong Wang The awinic aw87390 is a new high efficiency, low noise, constant large volume, 6th Smart K audio amplifier. Add a DT schema for describing awinic aw87390 audio amplifiers. They are controlled using I2C. Modify some code for aw88261 and aw88395 v5 -> v6: Adjust the order and context of the patch Use "len-1" as a loop judgment modifier Use return 0 instead of return ret at the end of a function Use dev_dbg instead of dev_info Use struct_size to calculate the structure size Remove the space before the exclamation mark Weidong Wang (10): ASoC: dt-bindings: awinic,aw88395: Add properties for multiple PA support ASoC: dt-bindings: Add schema for "awinic,aw87390" ASoC: codecs: Remove the "fade-enable property" ASoC: codecs: Rename "sound-channel" to "awinic,audio-channel" ASoC: codecs: Modify the transmission method of parameters ASoC: codecs: Modify i2c driver name ASoC: codecs: Add code for bin parsing compatible with aw87390 ASoC: codecs: Rename "sync-flag" to "awinic,sync-flag" ASoC: codecs: Modify the transmission mode of function parameters ASoC: codecs: Add aw87390 amplifier driver .../bindings/sound/awinic,aw87390.yaml | 58 +++ .../bindings/sound/awinic,aw88395.yaml | 16 + sound/soc/codecs/Kconfig | 15 +- sound/soc/codecs/Makefile | 2 + sound/soc/codecs/aw87390.c | 463 ++++++++++++++++++ sound/soc/codecs/aw87390.h | 85 ++++ sound/soc/codecs/aw88261.c | 27 +- sound/soc/codecs/aw88261.h | 4 +- sound/soc/codecs/aw88395/aw88395.c | 9 +- sound/soc/codecs/aw88395/aw88395.h | 2 +- sound/soc/codecs/aw88395/aw88395_device.c | 47 +- sound/soc/codecs/aw88395/aw88395_device.h | 6 +- sound/soc/codecs/aw88395/aw88395_lib.c | 25 +- sound/soc/codecs/aw88395/aw88395_reg.h | 1 + 14 files changed, 686 insertions(+), 74 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/awinic,aw87390.yaml create mode 100644 sound/soc/codecs/aw87390.c create mode 100644 sound/soc/codecs/aw87390.h base-commit: 633b47cb009d09dc8f4ba9cdb3a0ca138809c7c7 -- 2.41.0