Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2984739rwi; Fri, 28 Oct 2022 14:06:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RH1Vmk792Q++KTL37zNqhyX4zyxD1i2VmvSA8TLnBWvQTVaTTTb9Inr0yaupreH5mmdrB X-Received: by 2002:a17:907:318b:b0:740:33f2:9e8 with SMTP id xe11-20020a170907318b00b0074033f209e8mr1148961ejb.138.1666991192785; Fri, 28 Oct 2022 14:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666991192; cv=none; d=google.com; s=arc-20160816; b=tWj1QOcS3MBZBRZb70Jva6ckNZOMnXcJ+c7URspSkV/3rJDF2iWp9cCrKS4yM5rXUk n9SWd9fRpLb/poHqbM9rFV4Sx/gVDdUnRNUn4wjeN3uDS5EJyowLt3Xh96bFMR7cCvay vsohYB0+9InI5Euez5RE800ilEzZBsEt0ZryKbwXJQJNRvhPfbzJnKyc7WnrBx6KSLsz NgpsxZekHFSIWVsSB/EDJ6669XJwGpUR3jVLMfFDd6sDHkOMjjpo0X6P8utf+a0SCdQz QG2aEa2zfhesa8awIglSj3UF3Vc+qCGqqgWhyvjsSiJJW8dbvFNL/dNxt3PqjVYLle6w YyGQ== 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=rYa5pMjNhAFPhI5ihBUVVDJVKvw/GJeYpPF//wR/A4Q=; b=w2G6FvBBAqjEG/srPeWMeh/4+RXMHfn6J2kbFrqqGI1V484JPKApN9H6vFQJPMfh0l DOLCzaLqPQuK3q+fx6LwHbnL8Gyrgyydl3ntwFuJdZghRSRZM0mMjPk00KD4CNecy6jq gzqx9GxdGouoieLw3xrKTcgfrByhqxOb9FrPie0Qa2Il8C4Hk0WAeH7LHSPz8H7PNDKM 963jMmsQZaY2Yz303rfBlEpbXCgnrO03oGzwKug3xLEf+C2Ct9KFZlpQ1ERP/G3D7VSR Xe6s6Wrx8oE/HKH6x+0H9Gz/RXsl+Jm9mVclC55J5NAeN/Mn06hBSWG+fYNTbEOMVWjV IdXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Dr/5K/hx"; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x62-20020a50bac4000000b0045db2dcff0esi1238647ede.594.2022.10.28.14.06.07; Fri, 28 Oct 2022 14:06:32 -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=@collabora.com header.s=mail header.b="Dr/5K/hx"; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbiJ1U4T (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbiJ1U4D (ORCPT ); Fri, 28 Oct 2022 16:56:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CCC522D59C for ; Fri, 28 Oct 2022 13:56:00 -0700 (PDT) Received: from notapiano.myfiosgateway.com (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id CD1676602943; Fri, 28 Oct 2022 21:55:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990559; bh=k0ciXJ9TnsI96EclJ+3I0qJrPTH22yg0wvdKWox0Yts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dr/5K/hxbGJrVT4XPuyjGzz/3Uum/9Fd9mrf8EQhK/6ZcWFGej3jAAgOHmJK//bUU TQ5J3NxsnHW67K1TKUI6HCXxr6VYdZNYNkXy6U3Mi7Q2Or18yPfN+v1v5XDd6c5lt1 QwaBjBwtRR4uwm9gcArc0HucMg1BUNbGteR9UQEtJzbgGpk1P+dMokd3vbreQuEZ6u ceUiW+a+fnsAAT+As/738oHDRssJPvywt3jXdgwz+vNUYCQkAdrUG9p49oIXFdM8MR P++AX6xwtUG1mvI5Ro4y/msZiEOpqecj3RnAKuER9ICKw2cU0wjSEbrRiXLioin/47 3BIwOoyt9X33g== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Jaroslav Kysela , Liam Girdwood , Oder Chiou , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies Date: Fri, 28 Oct 2022 16:55:38 -0400 Message-Id: <20221028205540.3197304-7-nfraprado@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221028205540.3197304-1-nfraprado@collabora.com> References: <20221028205540.3197304-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Add support for the dbvdd and ldo1-in supplies. Signed-off-by: NĂ­colas F. R. A. Prado --- sound/soc/codecs/rt5682.c | 2 ++ sound/soc/codecs/rt5682.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 2df95e792900..f0a400285dcf 100644 --- a/sound/soc/codecs/rt5682.c +++ b/sound/soc/codecs/rt5682.c @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = { "AVDD", "MICVDD", "VBAT", + "dbvdd", + "ldo1-in", }; EXPORT_SYMBOL_GPL(rt5682_supply_names); diff --git a/sound/soc/codecs/rt5682.h b/sound/soc/codecs/rt5682.h index 52ff0d9c36c5..d568c6993c33 100644 --- a/sound/soc/codecs/rt5682.h +++ b/sound/soc/codecs/rt5682.h @@ -1424,7 +1424,7 @@ enum { RT5682_CLK_SEL_I2S2_ASRC, }; -#define RT5682_NUM_SUPPLIES 3 +#define RT5682_NUM_SUPPLIES 5 struct rt5682_priv { struct snd_soc_component *component; -- 2.38.1