From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6F1BC433F5 for ; Fri, 8 Oct 2021 04:50:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B988E60F94 for ; Fri, 8 Oct 2021 04:50:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231512AbhJHEwU (ORCPT ); Fri, 8 Oct 2021 00:52:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbhJHEwT (ORCPT ); Fri, 8 Oct 2021 00:52:19 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E9C8C061570; Thu, 7 Oct 2021 21:50:25 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id ls18so6622492pjb.3; Thu, 07 Oct 2021 21:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=dQvWqpd/3Ixk1BH86MpPJQ+yUHdjySlHvST/lPNe1C4=; b=Ovb1m3ooLxAOlI2LIrwDmKVAwwXTG6aBjZAiOM+hiYh4fqDEycaymEZckvxCWQuHkN TnIK6ZbmLZ29EsbQtZuyfMOuNymobir8U6J+kNpyqQs+mJnr8km9Csn5eLcs/rjlRfpm qlWEw4nyPi0JacVXycf0T+MWz/rONcs3OXCy1jjSUcQSY4E9lAbDZYs0RjnsUnb7Q4d6 kxtwNT1KQDDIIDwxZwDgngKYCVE3n6faSBbvlG3jwf9cg+SmZQFh32WKhDrnwdox3F04 PL6ptx+Hq/iuPKrIWE03IGjBHr7QxYU5fZOA51qGLXtfZfdwv9s6ZWC9FPf88SI525bt xPtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dQvWqpd/3Ixk1BH86MpPJQ+yUHdjySlHvST/lPNe1C4=; b=UoHeAT5w0slGEJqxU+j9sk9w3uDDOqOLDh7XhhmiOit5YmruOBfpkYHDKcVknfY+A9 tsAJCOJZHuIPisTYxQPQvbuQ14VdoEVEIES/4kqbHDpsfDxYc8H7qP3yD+fHuxX2qAW/ ydJI3olJJdVD5ekrMtP2emQ3+nWh5iBr44+IhxNnL7rNsOL+lSmEb99+1U10WB95IWLf 4AFwI+9CLaOBGgvpMa6o2rU+ULEY8rANhLyN0GxSAn53TT43HnmUjnzDaa61IzG4SPYk 3XYX2Zm3ShmeILGCg68Vr46G4qAWpAQufh4/pQ4xkqaiabpiMRAaqelsFcxISSK9s2es gH9A== X-Gm-Message-State: AOAM530elIKIRzTquPA3Bqod8rbSgKNjHvJQ9TXF/UckXVae1ameMEov WC0m9sRtG6VV6xD2+sb3WSpxQ4JmV9Y= X-Google-Smtp-Source: ABdhPJwycbw3qKJr4+vydLE2ml1mi+Dz7Kz6aNk7DU0X0uJ1eTEIvOZGy26o6/zBY3MpcJLLRx8YOA== X-Received: by 2002:a17:90a:19d2:: with SMTP id 18mr9715941pjj.62.1633668624447; Thu, 07 Oct 2021 21:50:24 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:479:5014:1d07:e136:b921:8d67]) by smtp.gmail.com with ESMTPSA id f4sm885182pgn.93.2021.10.07.21.50.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Oct 2021 21:50:23 -0700 (PDT) From: cy_huang To: oder_chiou@realtek.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org Cc: lgirdwood@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, cy_huang@richtek.com, devicetree@vger.kernel.org, allen_lin@richtek.com Subject: [PATCH v3 0/2] ASoC: rt9120: Add Richtek RT9120 supprot Date: Fri, 8 Oct 2021 12:50:10 +0800 Message-Id: <1633668612-25524-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ChiYuan Huang This patch series Add the Richtek RT9120 support. In v3: - Add dvdd regulator binding to check the dvdd voltage domain. - Refine sdo_select_text. - Use switch case in 'internal_power_event' function. - Remove the volume and mute initially write in component probe. - Remove the mute API. It's no need by HW design. In v2: - Add missing #sound-dai-cells property. ChiYuan Huang (2): ASoC: dt-bindings: rt9120: Add initial bindings ASoC: rt9120: Add rt9210 audio amplifier support .../devicetree/bindings/sound/richtek,rt9120.yaml | 59 +++ sound/soc/codecs/Kconfig | 10 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rt9120.c | 489 +++++++++++++++++++++ 4 files changed, 560 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/richtek,rt9120.yaml create mode 100644 sound/soc/codecs/rt9120.c -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB74FC433EF for ; Sun, 10 Oct 2021 07:52:35 +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 52FD160F35 for ; Sun, 10 Oct 2021 07:52:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 52FD160F35 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=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 AECAD167D; Sun, 10 Oct 2021 09:51:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AECAD167D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1633852353; bh=3BD8DpnbWiTDBJW7Hb/mDfGVtpYiiH0sftymSD2bGEg=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=TuIX5I/r1XeiXjdP5pQBnZZQusUOsr7HQqzJ4SDIFy58XxfIIxN34FPdVU8Y35mzw nVepJEWId61aUpd85ECpVckjW5665XE8Nff5BwCmDg8qD9lpPJXBGME0LSptVpDJls GQvNU81Ks7rLJa5IfDKYzy6Iwak5d8R6gEHrj4lg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A3FBCF804FF; Sun, 10 Oct 2021 09:49:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4F28BF80246; Fri, 8 Oct 2021 06:50:35 +0200 (CEST) Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E4202F800F0 for ; Fri, 8 Oct 2021 06:50:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E4202F800F0 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ovb1m3oo" Received: by mail-pl1-x62e.google.com with SMTP id l6so5341163plh.9 for ; Thu, 07 Oct 2021 21:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=dQvWqpd/3Ixk1BH86MpPJQ+yUHdjySlHvST/lPNe1C4=; b=Ovb1m3ooLxAOlI2LIrwDmKVAwwXTG6aBjZAiOM+hiYh4fqDEycaymEZckvxCWQuHkN TnIK6ZbmLZ29EsbQtZuyfMOuNymobir8U6J+kNpyqQs+mJnr8km9Csn5eLcs/rjlRfpm qlWEw4nyPi0JacVXycf0T+MWz/rONcs3OXCy1jjSUcQSY4E9lAbDZYs0RjnsUnb7Q4d6 kxtwNT1KQDDIIDwxZwDgngKYCVE3n6faSBbvlG3jwf9cg+SmZQFh32WKhDrnwdox3F04 PL6ptx+Hq/iuPKrIWE03IGjBHr7QxYU5fZOA51qGLXtfZfdwv9s6ZWC9FPf88SI525bt xPtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dQvWqpd/3Ixk1BH86MpPJQ+yUHdjySlHvST/lPNe1C4=; b=JugWdSvXo59C0IZ6cSZ+SG4rfOsSmDTEJw7kYUPJYgYVycbWgP9//kt9INqtboArHO aq055V6K7g3hO5/YL6ByuEuPjdhXo6BWAi2Q5dm5JbhZ9mvowVumeo20b2l16jn5IUUt kWr/IAD+Mv76cLKruRSjAQFcB/EBc9F8IYwFcxatOBJ0Blujw6dWzH/9vh2e6Aj42ySD BIjzmdV0j3CC1NsvxJQlFV9WZ/oVWmHrp7a84W+KV/wpbowkBSyId3z9sRVn4uCPa/AI l7BDK9PtXvosrebRNNmgqFbBIlyjqa8EnKUwy3xa4L4J1n6/nxKlYb4sp9ZWuNedO5j/ YCEQ== X-Gm-Message-State: AOAM532mBp3dr0QIeLtmX8oRJQK6YRH6qRa68N0EX/aNAFtEeP8rGzqR saW1DQ6fEHCPrvSNsIbvDv0= X-Google-Smtp-Source: ABdhPJwycbw3qKJr4+vydLE2ml1mi+Dz7Kz6aNk7DU0X0uJ1eTEIvOZGy26o6/zBY3MpcJLLRx8YOA== X-Received: by 2002:a17:90a:19d2:: with SMTP id 18mr9715941pjj.62.1633668624447; Thu, 07 Oct 2021 21:50:24 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:479:5014:1d07:e136:b921:8d67]) by smtp.gmail.com with ESMTPSA id f4sm885182pgn.93.2021.10.07.21.50.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Oct 2021 21:50:23 -0700 (PDT) From: cy_huang To: oder_chiou@realtek.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org Subject: [PATCH v3 0/2] ASoC: rt9120: Add Richtek RT9120 supprot Date: Fri, 8 Oct 2021 12:50:10 +0800 Message-Id: <1633668612-25524-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Sun, 10 Oct 2021 09:49:29 +0200 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, cy_huang@richtek.com, allen_lin@richtek.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" From: ChiYuan Huang This patch series Add the Richtek RT9120 support. In v3: - Add dvdd regulator binding to check the dvdd voltage domain. - Refine sdo_select_text. - Use switch case in 'internal_power_event' function. - Remove the volume and mute initially write in component probe. - Remove the mute API. It's no need by HW design. In v2: - Add missing #sound-dai-cells property. ChiYuan Huang (2): ASoC: dt-bindings: rt9120: Add initial bindings ASoC: rt9120: Add rt9210 audio amplifier support .../devicetree/bindings/sound/richtek,rt9120.yaml | 59 +++ sound/soc/codecs/Kconfig | 10 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rt9120.c | 489 +++++++++++++++++++++ 4 files changed, 560 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/richtek,rt9120.yaml create mode 100644 sound/soc/codecs/rt9120.c -- 2.7.4