From patchwork Thu Sep 28 22:12:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 728128 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 4CC77E743C9 for ; Thu, 28 Sep 2023 22:14:54 +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 1A634DFA; Fri, 29 Sep 2023 00:14:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1A634DFA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695939293; bh=e5uMytFORBtEIHAjSylc3qhIWcry5i4MxZvbLyhQDeM=; 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=DgTHANDv+n9R8+23dWua2RD/pd4Y1CV9L9uDzdrPx+k4D+VydoL674FjRyDfBEWXW mgyMc60ca0EP33vSVp/lv6A0UruWOa20G+2jS+XglNvdGeWV1AJ4cjyoD72xFkS54f DCA5jjKUQZy01R2eU++ibpMhHXa+BAWc9jMrCMiw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 69572F80563; Fri, 29 Sep 2023 00:13:10 +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 C727BF80563; Fri, 29 Sep 2023 00:13:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D8693F80563; Fri, 29 Sep 2023 00:13:04 +0200 (CEST) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (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 D5AC6F801D5 for ; Fri, 29 Sep 2023 00:13:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D5AC6F801D5 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=N0RrBlq2 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-5041d6d8b10so22069669e87.2 for ; Thu, 28 Sep 2023 15:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695939178; x=1696543978; 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=gEziQa3WMTxBubEiTduzNr8x972su8Z0Wh8gtotlZpA=; b=N0RrBlq2LALGRAJWEuUV618XnjYIiytLJK0ZzD4IIHE8fFCXd/JxOTAyHqovdRgObV CZzcf5AzqFbeCvlAEfTbFUTB4F49Lmaq3eWGKHXg2t0vNn6tWs/1YYTxSe98ndiqq0zM UQO8N40FVPqzzi911oy80qA7I9+yBpAFHhVQTnuXn4OGxdDEaUO+w/nQ/fJ1dTKloWli i74kOIVsYJpB2/i5SDLIKpP3HE6sCnVFdVYccGGImNZBeIhvlQqzlew0N9hwB/LwAWtX MWBF3Xrjh4S0oIxp7Rf1qE3srIVuirdk6bsksPGCUDU5ANfZc3m7TstDKfaX/MY/gT5W seEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695939178; x=1696543978; 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=gEziQa3WMTxBubEiTduzNr8x972su8Z0Wh8gtotlZpA=; b=Ua8GtTYjodO9Ordj0OQ9GgmlAMf+0aQp8GLiwZGvyWu51bzZWrf73mppWVJZnNuZM7 WqqbUKyVmE5igTFJZSPeLSKoma/HFvb3awUQuDFl4uEEwltSoPibbL0eFOdPhAvvlZc1 ZFb/gPdbUaZOGMLorIIHlvwsl9nwaf1wHeFnJG0qRlg8v1V660iCclzWfXD6dOF0brxb 1nCYmusFT9OWLCGV6+nBImOtwmnrnkjDx1mU/a/7OWKxqJ1LU5pVqcrS1ndjSEvySK5T YO7hLa5pGcAcgWcuywB7i80qB0JxHgE/r46VvVCLNZD/gRWK6CHW/l73J7bRAR6daY5P +gWg== X-Gm-Message-State: AOJu0YwjJ1PbrrL+zKSHyjAmeKl6Vb+muaZ3yJO7y1UmVh8Nz0HxcwRI dbayG3Hw9523rmEAY2Knzi1GYTj121Gui0I326A= X-Google-Smtp-Source: AGHT+IGzel1RkPZ4JzmTAzm8NUoePCdFt5ZlaT/NGsNucaV0V6gsJlM+udU+/kODIJyvFU9Ivj83aA== X-Received: by 2002:a05:6512:448:b0:4e0:a426:6ddc with SMTP id y8-20020a056512044800b004e0a4266ddcmr2091697lfk.0.1695939177623; Thu, 28 Sep 2023 15:12:57 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r27-20020ac25a5b000000b005030cef433esm3271964lfn.94.2023.09.28.15.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:12:56 -0700 (PDT) From: Linus Walleij Date: Fri, 29 Sep 2023 00:12:54 +0200 Subject: [PATCH v2 1/4] ASoC: rockchip: Convert RK3288 HDMI to GPIO descriptors MIME-Version: 1.0 Message-Id: <20230929-descriptors-asoc-rockchip-v2-1-2d2c0e043aab@linaro.org> References: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> In-Reply-To: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@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: FOOIMJWP2SWEGJVTG5PBVKPKH5ZOWRND X-Message-ID-Hash: FOOIMJWP2SWEGJVTG5PBVKPKH5ZOWRND 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 an optional descriptor and handle it directly, the gpiod API is NULL-tolerant so no special guards are needed. - 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. Make sure to check that the GPIO property is there first, so it becomes optional. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rk3288_hdmi_analog.c | 46 ++++++++++----------------------- 1 file changed, 14 insertions(+), 32 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c index 0c6bd9a019db..cdb5dfd0d1d4 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,22 +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)) { + /* Enable optional Headset Jack detection */ + if (of_property_present(dev->of_node, "rockchip,hp-det-gpios")) { + 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)); - rk_hp_jack_gpio.gpio = machine->gpio_hp_det; snd_soc_jack_add_gpios(&headphone_jack, 1, &rk_hp_jack_gpio); } @@ -182,24 +178,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_optional(&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 Thu Sep 28 22:12:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 727102 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 38747E743C9 for ; Thu, 28 Sep 2023 22:14:47 +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 2400ADF0; Fri, 29 Sep 2023 00:13:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2400ADF0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695939285; 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=m3tDenV2R6sZ/vL1KCXjnDHbzhVsLW4K5Lkc8wChwNbUZZFgP4wjhrdU3wgVA4J6h 4Y23mOCIu9+4zemlOiuVdTEJZClM7uDJA8Lkc+RQJaNA+pEPsxhBAETrJfwKhsj8So XGsjxt7n6UJ/7Xl7SLSctIq1meYTPoU++uGxMt2U= Received: by alsa1.perex.cz (Postfix, from userid 50401) id BB7C0F80570; Fri, 29 Sep 2023 00:13:06 +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 53952F801D5; Fri, 29 Sep 2023 00:13:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 57B20F8047D; Fri, 29 Sep 2023 00:13:02 +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 23972F8007C for ; Fri, 29 Sep 2023 00:12:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 23972F8007C 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=j5Mic5Ac Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-504a7f9204eso3243621e87.3 for ; Thu, 28 Sep 2023 15:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695939178; x=1696543978; 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=j5Mic5AcYZQIvA9dKgXwnfT1QbNUdOwLqBXL4kW6zHU+TKrlYtZ6plkUXJjQeJyuJg Fcpsuk9SZHuhOVpxrsfujrolUmE72eVRsnu/+gPzJUinlxxuIKFY61FW8kHtLdeEpxPh EQRa6bDIO/hHLkSAGR8KkW701MdcEOluTDu5jPDG+SNrnZ2ePImOLDVQEeKpykCKLCmp t4XaOJ8aIsg6l8XSAQ1O/SBnxnFo9Li6GIQxfgRkpqdEYK07MqEdRknT3tidcYh7hAZV qXm08bKbU2ldtKAgd2shLxU+jB26H8gnEp+8snt+fkPCZmH9FBBe22QR8MJ24K/lZ+NL h1Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695939178; x=1696543978; 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=k63wTsOR9j5y+ZcLZHSELWWjj35mySnjIzzccR/NzuX/01n8PF2/Kx5UsHGcyA7WGh uyJw7vA3hzmy4DWfau6X8B8d6R0IT0LvFohwU4y3umJUD2nDOmy1TKannDpNngaNhaX0 Qz86KrSezcPgnyUWai9wiSvMSMulQURPbdW7eXIJUxVX8hNHuya3aGgB/0zBDErx11DY HjTxix8ejxXSjCkhvkLVgX0b8cax579AHGz9tTgmwkIq6VqBzdgAF6uyjV8dX1oda0xZ 2/xVC8UKxtyTwW+9LOS6j66s010l8cg3XKNAaOYvoe+cGatTNzMzaiMLK0ZADbzk2pBI wBxw== X-Gm-Message-State: AOJu0YzTjJU99p7fZ0WT9k+gdS+Ix4ZrnROJOSD7HtzzrvZh/I4lfpgI cASBgHzBUl5QS0zRXbbf8VMqRndaPjoIiHWqBkg= X-Google-Smtp-Source: AGHT+IH/mmM0nd0grFY56HkYk7pYC0txYkyCfW1BZfmsMKcj26i8WAbOvsdeSjB0ZgiMBG2REuwJsA== X-Received: by 2002:a05:6512:4011:b0:500:9d6c:913e with SMTP id br17-20020a056512401100b005009d6c913emr2625253lfb.52.1695939178506; Thu, 28 Sep 2023 15:12:58 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r27-20020ac25a5b000000b005030cef433esm3271964lfn.94.2023.09.28.15.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:12:58 -0700 (PDT) From: Linus Walleij Date: Fri, 29 Sep 2023 00:12:55 +0200 Subject: [PATCH v2 2/4] ASoC: rockchip: Drop includes from RK3399 MIME-Version: 1.0 Message-Id: <20230929-descriptors-asoc-rockchip-v2-2-2d2c0e043aab@linaro.org> References: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> In-Reply-To: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@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: VJS7ED4NQSBWEIGDF4MVAJ5YKFBE3OH7 X-Message-ID-Hash: VJS7ED4NQSBWEIGDF4MVAJ5YKFBE3OH7 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 Thu Sep 28 22:12:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 727101 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 00322E743C8 for ; Thu, 28 Sep 2023 22:15:06 +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 E9997DEF; Fri, 29 Sep 2023 00:14:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E9997DEF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695939305; 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=hc4XvT+X31zeoiKg8Noj4nT/JCATOC/AehtScLiD8MteTUqyAwenroJ5/6JFZsSvs l47jpw7o6w8kG1v8vlGS+ItQvROrONG4C/gsPzpbLgkzZu/tfJsc/oJfdG5zUwRECL rAgn/QcARTfF3AI9TD5TN+RWjyVZauCxx39LQ/hE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id C2309F80580; Fri, 29 Sep 2023 00:13:11 +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 55EBFF8057F; Fri, 29 Sep 2023 00:13:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0EAE1F80549; Fri, 29 Sep 2023 00:13:06 +0200 (CEST) Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 A8A89F8016A for ; Fri, 29 Sep 2023 00:13:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A8A89F8016A 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=CpY4mv8b Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-50435a9f800so20538692e87.2 for ; Thu, 28 Sep 2023 15:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695939179; x=1696543979; 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=CpY4mv8bMLm+c4C3+JqYn6/oE1/wQ9hbv/J25qFmvXMT1Bay0i6NJ/1Oi7qpPbf3Jw WxgBiZEP1xD/6Gd2xaUZ2B6OHRjuWc/fbIRMfsmyJ6L/rctszeE4jA+qf7/Xqle1A2b3 PXi6i8vxEcEaHYDfkb3QrDNSP/UjWINHvD3RpQ3e+k3GPjLltFH4vz7zXpPGmUSmafUr 1Fa03V+6qpWbSpgxjOI89JMg1LNYs1RzX2bdDZqukexEgEwAo7cR0HCJOUTmQFmejBYZ ZiXo4TOSnMHI9VdYuE5T1gnqpAELbr2YYyS+aYA0iXEe5oGqul9gFPnI9fN29j0c15+Q fveQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695939179; x=1696543979; 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=GplX7RjV7uqh4uF7SXQeuBTgPYiDJa7YrhVuetIu+aNdsrZGyhIPxEDu6ZJnfF/ydb xKuNVVRXmq7ZjPIvijr8CMv+Hg1nxBPQ1xbRrI/7LNw7i6sge8uOChkpgUZkbvYT6rXP iYHDkeUKt+xxSP46t4pBg29Afli50m4td2Bq/eTHfSocLkvYKCKrLVOn0cN94qtGJEGN 3TBFBgRDY7+BSYvIbYF+88MXGYOaMZDDKkwzkvdaAz9WcLxuqFK6CJT1ANXhqJ6AjCe/ djlm7k05D1vl7SL80yDuYeIGreR3OdY9qM4Zdem4pLVWARRlauUx5icOIyIutB60oL5c xXBQ== X-Gm-Message-State: AOJu0Yy59LDh/R2ueNjIaJn7Flq0H03OJ6H9qrYPBQwn9jjDyQdf/Q4b qnZ06Oizwwn9+X039m1lqkihxWaTXRqOL4lc/2I= X-Google-Smtp-Source: AGHT+IH+8EEAM93O9nlO+qtWwhEoVV89Rw7mcTI5Ss+i9HtYU7SmmUhL1U+18gaNy0wOYFIltW+FjA== X-Received: by 2002:a05:6512:2825:b0:503:257a:7f5d with SMTP id cf37-20020a056512282500b00503257a7f5dmr2553724lfb.31.1695939179359; Thu, 28 Sep 2023 15:12:59 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r27-20020ac25a5b000000b005030cef433esm3271964lfn.94.2023.09.28.15.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:12:58 -0700 (PDT) From: Linus Walleij Date: Fri, 29 Sep 2023 00:12:56 +0200 Subject: [PATCH v2 3/4] ASoC: rockchip: Drop includes from Rockchip MAX98090 MIME-Version: 1.0 Message-Id: <20230929-descriptors-asoc-rockchip-v2-3-2d2c0e043aab@linaro.org> References: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> In-Reply-To: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@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: 3OR5M5225U3UK2ZQA5Z6UPG73R4G3YXP X-Message-ID-Hash: 3OR5M5225U3UK2ZQA5Z6UPG73R4G3YXP 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 Thu Sep 28 22:12:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 728127 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 355A3E743C8 for ; Thu, 28 Sep 2023 22:16:27 +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 83A71DE5; Fri, 29 Sep 2023 00:15:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 83A71DE5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695939385; 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=OOK36Irwq2O8oBdYRO3MMr/3BFumy1t+/AXyeCdf6nUpJP9UM19p9fGi6+EVix74J IsnkOsE8hQ1um+Vfd0FiOcISL0kURru/2AXjolT2fRP5IrwT5Pbm5BbvuYKguyy9DD B3qVyiEfOInIMlB7nw7hqjV1GzV3iIeYz0MpPNG4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4AA1CF80166; Fri, 29 Sep 2023 00:15:35 +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 06E10F801D5; Fri, 29 Sep 2023 00:15:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E9181F8055A; Fri, 29 Sep 2023 00:13:36 +0200 (CEST) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (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 24F73F80166 for ; Fri, 29 Sep 2023 00:13:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 24F73F80166 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=QiVJuMvR Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50308217223so21136701e87.3 for ; Thu, 28 Sep 2023 15:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695939180; x=1696543980; 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=QiVJuMvRa7QI7wHBtndO9bpWyuC4AndXn/UBHqak9xEWfyIwR4gcu/cK693KXdZzKn 56FSSRG1ZnGd1Q8u40U+dmvcK13NQReHzooYeyIffWEVv90czT1w1kJoM1/lRB3TdDPl X9jZLqkPbe/VBBYzG57Frsat3WRLAZVYrzU7YVBfXkFvo4CXqEITobTV/O6dNeUCl3Rb VbruSoqQ2qB3l2qOC4P4AJ42+f1Hs8+hSgxc21GeHnu5WsNw27LYhWFsSpwfr6Lczu7I Bqrpg30a6boSEsK45Asse9VBpFZ3j0l/vtFPs2LqNPzkwBvvAM+nL3O6lwRRgS7/Zp99 weoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695939180; x=1696543980; 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=mNUNHxDY4ZYbgZr0ZDcIsWPChpmrHl1tmry4Prqbsa66rMuSYwkH+m2LpgMKNWNBWJ v8Z6zTzL5C0z4lzsw9VaEr+EumbI4KMRSxu6K7aM07RH2QCll7lAs7YgL7CgGcHR1psd SeVCvR2tETCBx/NzsgWJk8TCeMVln68azF7wXHZPuQaIMj2HcP34Cx4b4LknC0GTTky5 7d/YMbZo3VEtfT3WQK/xchhLG+Hvy1ay6OWZJm5FO8HiC2UZYARLDkDC3pSqylgRJFg5 fM7osaYaUYd51aIPzPpUYRQpfgKugE1SOraj37X1NfEZo+tKRc2i1BBAblO9W1D2P6S7 zsDA== X-Gm-Message-State: AOJu0Yw4UpTJAgbqZbI3UYklI06n2Ab356ZzGIHF20l2wQIS5KrRTsb/ hHjtctFgw/6IIKORkuiQ9XikPTvtELJ9pzg8cy8= X-Google-Smtp-Source: AGHT+IEcd7LSxKs1vQhEEohxk1j+l3rrDJD0tdrKzXWF996M/+vrMgyyTbA56OWL+2IlDzI4mvQOvA== X-Received: by 2002:a05:6512:3b23:b0:500:acf1:b42f with SMTP id f35-20020a0565123b2300b00500acf1b42fmr2510533lfv.53.1695939180185; Thu, 28 Sep 2023 15:13:00 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r27-20020ac25a5b000000b005030cef433esm3271964lfn.94.2023.09.28.15.12.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:12:59 -0700 (PDT) From: Linus Walleij Date: Fri, 29 Sep 2023 00:12:57 +0200 Subject: [PATCH v2 4/4] ASoC: rockchip: Drop includes from Rockchip RT5645 MIME-Version: 1.0 Message-Id: <20230929-descriptors-asoc-rockchip-v2-4-2d2c0e043aab@linaro.org> References: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> In-Reply-To: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@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: RMAHCUDMFIUB3TGA2QTJFROE4AXX4GDS X-Message-ID-Hash: RMAHCUDMFIUB3TGA2QTJFROE4AXX4GDS 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