From patchwork Wed Sep 27 22:47:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13401741 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EEB21E7F14F for ; Wed, 27 Sep 2023 22:50:45 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 070BDAE8; Thu, 28 Sep 2023 00:49:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 070BDAE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695855044; bh=x9DHAjfWYKzpD+y8/Ojv7ps7RkYyGcukujSxSKy9540=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=dO4Dn+m6zAGgPYsqrweA26a8AnNjJSXqYyj8Tthd2Fjj1ikKEK7aSwK/XQg1zirmd ni3atq4XpYy+PsWDIXBjq2azl/PK2/jaVdsDOgeY0eFh1yzp6W757Id98J+ecsSsCt PjGMw3Nyk3JDU9Db8OlASIri/d/zasET5TwozXoA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 54A5CF80552; Thu, 28 Sep 2023 00:49:34 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 9908AF80549; Thu, 28 Sep 2023 00:49:33 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B5C8DF80549; Thu, 28 Sep 2023 00:49:29 +0200 (CEST) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 94D55F8007C for ; Thu, 28 Sep 2023 00:47:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 94D55F8007C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=yNTPeCC8 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-5044dd5b561so14470069e87.1 for ; Wed, 27 Sep 2023 15:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695854836; x=1696459636; darn=alsa-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=OpV1FPJ6dyO8NC9vUuzjI6C6mCi6OEhOeoX88LtgNes=; b=yNTPeCC8wY7Vp64ycD5Mqt7iNABakn10GzUL1PtZS9zt0hoxctxVGwSU5gccIe/SlG ohhMproEbUj0aHHlgwgGmMkDIx+cXJvGt80gqSUBNsojQhTECsSh//41UigZaqYmytTl d532dEpxbXv5DGTy9OgDAmzkMgHHyMtMqgZjhmMBFGC36Q203ny+5iQlbpU8qAKyCDaQ ZICstfnru1rIJY/LcOeTDCLnO7BXRUWsRU3pbGNARiu4wmJ9KxSSkdMF4JJiApIAjQbE ORFipdx8U+hHqOits2Lvg4+8aL/oGMNME6o50jSRhStyvEjfFw34yUZ9gr8qqL2353ng b7kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695854836; x=1696459636; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OpV1FPJ6dyO8NC9vUuzjI6C6mCi6OEhOeoX88LtgNes=; b=uG8yx87826vVhcaczl1lh/LIdx5jDBYwfLKjkMMtBCvsCWdSRLVc6r6YnHrVzYIchq HUQLX4plFpPrZMkepCygO5iS6k1s0hk6dxmgdIB9AVSyQKwDsEzQqc/dDpYy82THfSyZ EwLv6NrZtrONDWahWSFVygokCqDCR3KRZQsu/SKU8W7MEwzRQvFbbI++02FwdO/GOit+ XRIBzuqUjI2UWcq+mglcKrgEY9p25WlsvOY3fT8jf/3uwv2I7R+m/twNlOuYaQkpV2hm VVrX1Y5iw4j3jXeiUnkooZS0uw49OAPvAyWL24B5GlZX+b0oNFEILq7JjyT2RyZHUdQV PpZA== X-Gm-Message-State: AOJu0Yx2j9Tr5hnyPE/Z4UNkhmovvK24Xbb1K+l2RbGIxA1QxUUfkzU5 2j5QJyNMi/7l7yjSIwmKUvgKUw== X-Google-Smtp-Source: AGHT+IFnmsvK1nxU2ZWigAtiHCfvQZQxWBNESo/oxRorRUK1l2swAncu+UDIFedYPQJbRbubcGQzmA== X-Received: by 2002:a05:6512:159c:b0:500:8fc1:8aba with SMTP id bp28-20020a056512159c00b005008fc18abamr3338721lfb.26.1695854835883; Wed, 27 Sep 2023 15:47:15 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id ep14-20020a056512484e00b0050296068a12sm2801746lfb.30.2023.09.27.15.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 15:47:15 -0700 (PDT) From: Linus Walleij Date: Thu, 28 Sep 2023 00:47:14 +0200 Subject: [PATCH 1/4] ASoC: rockchip: Convert RK3288 HDMI to GPIO descriptors MIME-Version: 1.0 Message-Id: <20230928-descriptors-asoc-rockchip-v1-1-a142a42d4787@linaro.org> References: <20230928-descriptors-asoc-rockchip-v1-0-a142a42d4787@linaro.org> In-Reply-To: <20230928-descriptors-asoc-rockchip-v1-0-a142a42d4787@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 Message-ID-Hash: AZUVZ453NXIBTGNAFJR3NYOKRZNKABTI X-Message-ID-Hash: AZUVZ453NXIBTGNAFJR3NYOKRZNKABTI X-MailFrom: linus.walleij@linaro.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This converts the Rockchip RK3288 HDMI driver to use GPIO descriptors: - Look up the HP EN GPIO as a descriptor and handle it directly. - Let the Jack detection core obtain and handle the HP detection GPIO, just pass the right name and gpiod_dev and it will do the job. - As the probe() code is very insistent on getting valid GPIOs out of the device before it will continue, there is no point to carry all the code handling the GPIOs as optional, drop all these checks. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rk3288_hdmi_analog.c | 54 +++++++++++---------------------- 1 file changed, 17 insertions(+), 37 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c index 0c6bd9a019db..7199f991ec26 100644 --- a/sound/soc/rockchip/rk3288_hdmi_analog.c +++ b/sound/soc/rockchip/rk3288_hdmi_analog.c @@ -12,8 +12,7 @@ #include #include #include -#include -#include +#include #include #include #include @@ -26,8 +25,7 @@ #define DRV_NAME "rk3288-snd-hdmi-analog" struct rk_drvdata { - int gpio_hp_en; - int gpio_hp_det; + struct gpio_desc *gpio_hp_en; }; static int rk_hp_power(struct snd_soc_dapm_widget *w, @@ -35,11 +33,8 @@ static int rk_hp_power(struct snd_soc_dapm_widget *w, { struct rk_drvdata *machine = snd_soc_card_get_drvdata(w->dapm->card); - if (!gpio_is_valid(machine->gpio_hp_en)) - return 0; - - gpio_set_value_cansleep(machine->gpio_hp_en, - SND_SOC_DAPM_EVENT_ON(event)); + gpiod_set_value_cansleep(machine->gpio_hp_en, + SND_SOC_DAPM_EVENT_ON(event)); return 0; } @@ -113,24 +108,23 @@ static int rk_hw_params(struct snd_pcm_substream *substream, } static struct snd_soc_jack_gpio rk_hp_jack_gpio = { - .name = "Headphone detection", + .name = "rockchip,hp-det", .report = SND_JACK_HEADPHONE, .debounce_time = 150 }; static int rk_init(struct snd_soc_pcm_runtime *runtime) { - struct rk_drvdata *machine = snd_soc_card_get_drvdata(runtime->card); + struct snd_soc_card *card = runtime->card; + struct device *dev = card->dev; /* Enable Headset Jack detection */ - if (gpio_is_valid(machine->gpio_hp_det)) { - snd_soc_card_jack_new_pins(runtime->card, "Headphone Jack", - SND_JACK_HEADPHONE, &headphone_jack, - headphone_jack_pins, - ARRAY_SIZE(headphone_jack_pins)); - rk_hp_jack_gpio.gpio = machine->gpio_hp_det; - snd_soc_jack_add_gpios(&headphone_jack, 1, &rk_hp_jack_gpio); - } + rk_hp_jack_gpio.gpiod_dev = dev; + snd_soc_card_jack_new_pins(runtime->card, "Headphone Jack", + SND_JACK_HEADPHONE, &headphone_jack, + headphone_jack_pins, + ARRAY_SIZE(headphone_jack_pins)); + snd_soc_jack_add_gpios(&headphone_jack, 1, &rk_hp_jack_gpio); return 0; } @@ -182,24 +176,10 @@ static int snd_rk_mc_probe(struct platform_device *pdev) card->dev = &pdev->dev; - machine->gpio_hp_det = of_get_named_gpio(np, - "rockchip,hp-det-gpios", 0); - if (!gpio_is_valid(machine->gpio_hp_det) && machine->gpio_hp_det != -ENODEV) - return machine->gpio_hp_det; - - machine->gpio_hp_en = of_get_named_gpio(np, - "rockchip,hp-en-gpios", 0); - if (!gpio_is_valid(machine->gpio_hp_en) && machine->gpio_hp_en != -ENODEV) - return machine->gpio_hp_en; - - if (gpio_is_valid(machine->gpio_hp_en)) { - ret = devm_gpio_request_one(&pdev->dev, machine->gpio_hp_en, - GPIOF_OUT_INIT_LOW, "hp_en"); - if (ret) { - dev_err(card->dev, "cannot get hp_en gpio\n"); - return ret; - } - } + machine->gpio_hp_en = devm_gpiod_get(&pdev->dev, "rockchip,hp-en", GPIOD_OUT_LOW); + if (IS_ERR(machine->gpio_hp_en)) + return PTR_ERR(machine->gpio_hp_en); + gpiod_set_consumer_name(machine->gpio_hp_en, "hp_en"); ret = snd_soc_of_parse_card_name(card, "rockchip,model"); if (ret) { From patchwork Wed Sep 27 22:47:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13401732 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E47C4E7F14F for ; Wed, 27 Sep 2023 22:48:50 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3B502A4E; Thu, 28 Sep 2023 00:47:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3B502A4E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695854928; bh=PyIpiS+t/JGgv4/HGgIXgl6b/+DBYteIegChizwRRs0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=tdvKQrQXtPOotygLxyRroKJVNUReq07mz5+Zf0uvjcGj5GKraWjQQOiFfQELjT8+j /X1nsB2hSnw97QntBoRDPHXA4AKzIR0mvinNLH7Jm1CP0EJ6DzZ0oEeWL58JY7llyv qK6NXGydNy/U3MhX/IgSvGb9qgrKwr3cnIkfqRRk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 22539F80552; Thu, 28 Sep 2023 00:47:26 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 6010DF80549; Thu, 28 Sep 2023 00:47:26 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 475FEF80549; Thu, 28 Sep 2023 00:47:22 +0200 (CEST) Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 10B9CF800AE for ; Thu, 28 Sep 2023 00:47:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 10B9CF800AE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=DMU1cjNJ Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50307759b65so19902105e87.0 for ; Wed, 27 Sep 2023 15:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695854837; x=1696459637; darn=alsa-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dq20wAX7KyYyuxOCj/4NvQoVluqusmWSS2hLsMjGcCE=; b=DMU1cjNJzrFwI+h94eR5MhF4t/vymHB9Ajm7xJRD0IrsVDlTAK106dyNhf8UVoG+M8 5GXGx3fuswusnX96uXNP6gv+BBL1DKFtNqw9h4x1hI69ipDqZbCGmx9zikV8dSaZLUHV JTErZnthpY/+ByKGPTo4tkDrHkso+pEiuPqJsXfEkCPtivqo5KsVe5SfPb6rod1G8bDW kkJw2fxgkEqf7PtQQLWG0oX2kUnXU9q9FreBK7/cEUBT/5kvPkxGr5hh8U0Zw1p81FRm bMD6bHONX7zolVddk+LqDutuIhhCmnh707Tv8ltTu6iGngBFtRWPvTyrTq3pX8XK5IXA gUxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695854837; x=1696459637; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dq20wAX7KyYyuxOCj/4NvQoVluqusmWSS2hLsMjGcCE=; b=g7TC+W37JikDF7+XhjkxsQ341wRr00LnBd2dS4XbsSCXunsnda9IjMp0wg+umF2Xhi kfkH4t7qWDcaXlaXuwaXxiKW7gwH2zL0XXnhCk9/OC4YCTYC/do4beJTu7CzYpJqr71p 9+XqJudwX/lTYzt0amrFKO5MZ9d4QPvUd56XxwZ5/aFs4r4Z8oHXwywPkDidQPsj8L03 8eGvuxAgCxJWxwoHeXjIqSDygH+FrsorGKykjjvUOlDn5kQogOg1b1Y6uJTXzQwq7ZM6 3uO2VtSqJJI2EdqYXE9N8ZfOS9+KWkt8/ruLWyjDwNyjD8DWNssmFS2mGBbE7JlZ8cd0 qSyg== X-Gm-Message-State: AOJu0YyOzb59bk/wqgjJ0Cx4SigDJSUjCoO9khyeWtdxlFDbISgoKhuN hTPMyj1XGTv2RX/qlZRwG5s0Xw== X-Google-Smtp-Source: AGHT+IEfC0+hlBUj1Yf/W2nh73lfyeNcEfUcYf/ZYF/GatTdBOlrH90LckfUV5sGFYU2vNlRmcj12Q== X-Received: by 2002:a05:6512:324e:b0:503:264b:efc9 with SMTP id c14-20020a056512324e00b00503264befc9mr2509397lfr.18.1695854836814; Wed, 27 Sep 2023 15:47:16 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id ep14-20020a056512484e00b0050296068a12sm2801746lfb.30.2023.09.27.15.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 15:47:16 -0700 (PDT) From: Linus Walleij Date: Thu, 28 Sep 2023 00:47:15 +0200 Subject: [PATCH 2/4] ASoC: rockchip: Drop includes from RK3399 MIME-Version: 1.0 Message-Id: <20230928-descriptors-asoc-rockchip-v1-2-a142a42d4787@linaro.org> References: <20230928-descriptors-asoc-rockchip-v1-0-a142a42d4787@linaro.org> In-Reply-To: <20230928-descriptors-asoc-rockchip-v1-0-a142a42d4787@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 Message-ID-Hash: ZPXV5GJ4Y3A5J6MYYQC2PWEZACX7UQFH X-Message-ID-Hash: ZPXV5GJ4Y3A5J6MYYQC2PWEZACX7UQFH X-MailFrom: linus.walleij@linaro.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The RK3399 ASoC driver includes two legacy GPIO headers but doesn't use symbols from any of them. Delete the includes. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rk3399_gru_sound.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 0f704d22d21b..a178fcd94d88 100644 --- a/sound/soc/rockchip/rk3399_gru_sound.c +++ b/sound/soc/rockchip/rk3399_gru_sound.c @@ -8,8 +8,6 @@ #include #include #include -#include -#include #include #include #include From patchwork Wed Sep 27 22:47:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13401742 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id ECA6DE80A8A for ; Wed, 27 Sep 2023 22:51:16 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B370CDEE; Thu, 28 Sep 2023 00:50:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B370CDEE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695855074; bh=D8YsIbvwKFaGFU37tFCU3Xa5vmJQnpOrgCzxwQMTrDY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=sw5AT5yk89ck2S4aRwYH2rF1okNaSMO3bcQALOc9nHvqEut/D2EpC+Vti5i16L4aB qSWt0cyQMhQ5cRCo60zXZUDAHfkjGguGwaQ/qMKO68OX54DG98LzkObuZ4aPeurAbC Tf89sHVDPN1TwfqSySxtj36PCvnAjVsgzpHrdWYs= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A66BDF80571; Thu, 28 Sep 2023 00:49:36 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 07DD7F8055A; Thu, 28 Sep 2023 00:49:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8D8CCF8047D; Thu, 28 Sep 2023 00:49:30 +0200 (CEST) Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D221AF801D5 for ; Thu, 28 Sep 2023 00:47:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D221AF801D5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=IwAM7jwt Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50481a0eee7so2545096e87.0 for ; Wed, 27 Sep 2023 15:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695854838; x=1696459638; darn=alsa-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CY0vsjcVCBgE58w9UR6SBm++3xKyQBSwPNYicIzid6s=; b=IwAM7jwtqRiv9p7Z9xcGHYm31dZD19Li13aLG/kL9Or1rB2FttlYq2wnWj8ipTth2Y EEM010vrv0GzGKdf5SakPlxZoNy6CsTIGlL4f2A3U38J4kwCtF5P0ep1hBm02TEfdu6D vGMpTGvPdSG+ssYLRGwYCKAn4+nRGYvRP7NFp9sBELBHagwjkBeK1jqvQ6zKIMw65Yjk uMrykVJJVnFLRmSXoZE+bMwuBk/73xloZtjDXRzpcqYHgVInTVWSsY7FXQoJpll888+q rp2s7H1HF8+o/q2+4legma0Y0Vw7gUgPIuCd9ORaajPHz5XzX4fuRUs29YuahQ1pOC/c 95nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695854838; x=1696459638; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CY0vsjcVCBgE58w9UR6SBm++3xKyQBSwPNYicIzid6s=; b=ryMl9S6ZSuM5HbbJM5Y1bYhpuvBzjRI+PM/bv90MPfq5wJ37sYCFvh9CiCvz2MUxCt SLy5TBHWO2l9n8Jndzcaj5e5cdIopqHG7i9irI2U5GcmY916Yri5z6zwyl6bvu191smy 38c88zRT2VC2JLrOledKIR/PAKmyDmPLnwd6RNoA1+8JaIuhvTVYZwm3A/aw1m5FndrI fGGQePFAHrJAqGYLKyzLd2PaLpHpI7TKLziy+xQ5vyWsT4f+zMLDk5QFqHrWahLSIx7t bClYXNeYXvakWUcAGgAOM193UOs+DpS8wQIWvc9GXbegH4SNTcunVEUBvZivrMW1GlAc 3Tiw== X-Gm-Message-State: AOJu0Yy+3bQPQbYVd7IOSi8ZEfNKr7bY9aNfCzVhNBT/CVQ9/oRSKFRY PGA8Dc/OLXXW0eYgcy7lTCdwfA== X-Google-Smtp-Source: AGHT+IEX4yAeJVMQ9xLxRU+QUVQR8aPJSks9x5s8hY6YWkQ+B5BI90m9BXzskEw8JTnRLhnt+p9GEg== X-Received: by 2002:a05:6512:110d:b0:501:bf37:1fb3 with SMTP id l13-20020a056512110d00b00501bf371fb3mr2796624lfg.24.1695854837664; Wed, 27 Sep 2023 15:47:17 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id ep14-20020a056512484e00b0050296068a12sm2801746lfb.30.2023.09.27.15.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 15:47:17 -0700 (PDT) From: Linus Walleij Date: Thu, 28 Sep 2023 00:47:16 +0200 Subject: [PATCH 3/4] ASoC: rockchip: Drop includes from Rockchip MAX98090 MIME-Version: 1.0 Message-Id: <20230928-descriptors-asoc-rockchip-v1-3-a142a42d4787@linaro.org> References: <20230928-descriptors-asoc-rockchip-v1-0-a142a42d4787@linaro.org> In-Reply-To: <20230928-descriptors-asoc-rockchip-v1-0-a142a42d4787@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 Message-ID-Hash: UQL3JNAZJNBAS52GE2T5NZOHKXW4PQWA X-Message-ID-Hash: UQL3JNAZJNBAS52GE2T5NZOHKXW4PQWA X-MailFrom: linus.walleij@linaro.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The Rockchip MAX98090 ASoC driver includes two legacy GPIO headers but doesn't use symbols from any of them. Delete the includes. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rockchip_max98090.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/rockchip/rockchip_max98090.c b/sound/soc/rockchip/rockchip_max98090.c index 150ac524a590..8e48eb8aa7ad 100644 --- a/sound/soc/rockchip/rockchip_max98090.c +++ b/sound/soc/rockchip/rockchip_max98090.c @@ -9,8 +9,6 @@ #include #include #include -#include -#include #include #include #include From patchwork Wed Sep 27 22:47:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13401733 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A80DBE7F14F for ; Wed, 27 Sep 2023 22:49:10 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0990CBC0; Thu, 28 Sep 2023 00:48:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0990CBC0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695854948; bh=Q7iUCdUvNfTEfCOqAcI17p9d1/Rti3AJYWiZ3sN7n+0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=MUy5nWiVLcPUuQWH4Es2/R/4A39+TlQMbwuwEMZmOc6ZOUEm7p/72c/ofPJyJiP22 DhZyslyv0OFwMSKzZIH5fzPBhwz/3TeiDwA2PLoqZL2E1CfM9b3BnjT7JHW4nyPeS8 S0++C5fTasAbT3UDdo8kJP/IfVT5rhp21DVtgZqE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 07E5DF80579; Thu, 28 Sep 2023 00:47:28 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id BE673F80564; Thu, 28 Sep 2023 00:47:27 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 256BCF80549; Thu, 28 Sep 2023 00:47:23 +0200 (CEST) Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id F024CF8016A for ; Thu, 28 Sep 2023 00:47:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz F024CF8016A Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=JHV0Y3hR Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5044dd5b561so14470136e87.1 for ; Wed, 27 Sep 2023 15:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695854838; x=1696459638; darn=alsa-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hm24NpX94JBemDRTScZMK9z0G78Go8UKUQZ7xueoWyk=; b=JHV0Y3hRXu7YZk5M7SOvXsfP1R/ErQrc/8iXXc250utfJjJpzQHEOSP1SrYltE3cF1 lmnzY0e+Ve9fRRHYWgVQzjL7LkN2YIbFVB0QeQEs3ddpZrsW1aZYTZ4CHKug/qqOxbT/ FxolLbafrkJsWwUlCS4V3uYGm+Tw11tervaj3WPXV7wmZAY5Riq60HELM0KC8ChYKDFg NcZo9gCXoaf4fDV7qu0PndZ6GX1Lmj5xuZI7ttUNMHciFoLB7fYzeOf6t3Pr7g0vVpuv YE93QPNOZdOrY1IDCjThZ7eSuKqtxv9WtHqmzTxmfwpZ0nzStepSN0ucKypD0J3hC2/t 3umA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695854838; x=1696459638; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hm24NpX94JBemDRTScZMK9z0G78Go8UKUQZ7xueoWyk=; b=iaDi0PXz9NI8FtuLXZrfN6k+IbYX+YlyvCAXtijpeusZnRFvxzJiwVsz0VWxlHcX5J j4orPNLeiPBpQntxngtwImwtfNR7WG2gQqI+5yplfp77rjg0jHDqt6fzF4aMI8En3e7Q G5sAQSx0l4hpS+BJ6tiAbsfiYWw7zLpOh+LWgF+cJRPC19AcEB9nCF+MDUf2YzLoh23y Hs6LMfofL5UH2ooNyjZJy/YObnYukXzm475yuFejNCoVFoOxYVHIHLYcsFDLtjuqw9gh kKY3wZhqMBF0KJVEgqOKEg7Mvyfeokjp/sDBfSHQCfnDNqLFb6UzJDtBuuG8kdptZHyw LtZg== X-Gm-Message-State: AOJu0YzDbkBx7mxsPOydRTaPD+O8QE/npiHqTWstU1zXOZ6N+GfNmfGs f6RnIkQqBLt5d5mcmfSogWjpPw== X-Google-Smtp-Source: AGHT+IHIPAOySo0YwjWaGIBqSx3zAKxnJQ1KilKVhhF1C+VnLfsmaRRx1osw7z8l9ymMS10PvpQvMg== X-Received: by 2002:a05:6512:3b06:b0:503:364d:b93d with SMTP id f6-20020a0565123b0600b00503364db93dmr3348450lfv.20.1695854838581; Wed, 27 Sep 2023 15:47:18 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id ep14-20020a056512484e00b0050296068a12sm2801746lfb.30.2023.09.27.15.47.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 15:47:18 -0700 (PDT) From: Linus Walleij Date: Thu, 28 Sep 2023 00:47:17 +0200 Subject: [PATCH 4/4] ASoC: rockchip: Drop includes from Rockchip RT5645 MIME-Version: 1.0 Message-Id: <20230928-descriptors-asoc-rockchip-v1-4-a142a42d4787@linaro.org> References: <20230928-descriptors-asoc-rockchip-v1-0-a142a42d4787@linaro.org> In-Reply-To: <20230928-descriptors-asoc-rockchip-v1-0-a142a42d4787@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 Message-ID-Hash: KT5JNCFDMKDZIGP2E6O2FKHWIQKT4LDF X-Message-ID-Hash: KT5JNCFDMKDZIGP2E6O2FKHWIQKT4LDF X-MailFrom: linus.walleij@linaro.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The Rockchip RT5645 ASoC driver includes two legacy GPIO headers but doesn't use symbols from any of them. Delete the includes. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rockchip_rt5645.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/rockchip/rockchip_rt5645.c b/sound/soc/rockchip/rockchip_rt5645.c index ef9fdf0386cb..7d4d3a0ac5fd 100644 --- a/sound/soc/rockchip/rockchip_rt5645.c +++ b/sound/soc/rockchip/rockchip_rt5645.c @@ -8,8 +8,6 @@ #include #include #include -#include -#include #include #include #include