From patchwork Thu Dec 14 13:15:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 754870 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 9F487C4332F for ; Thu, 14 Dec 2023 13:17:09 +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 921F1E72; Thu, 14 Dec 2023 14:16:57 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 921F1E72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1702559827; bh=hmjNbFQy/MFZ32TwtvEddH6Mn4umEwoA5x6YUMSk+Pg=; 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=r7nweyslgqnMZUoK1ci2bqdkmX9Eg7lCkAz1OF2d4w90LNiwK1mfCql/eyKw+mFqH MG/gbKV72LA53BjAmQTi5bufJT0TjWxWXey7u2A5dozUhPMK4hQm7NleKkZpetjuk5 J/nf13rdVkUwLHYrPmdv7lPQDX4/CiDPsf5eqycA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4BD21F80166; Thu, 14 Dec 2023 14:16:10 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id D0942F805E1; Thu, 14 Dec 2023 14:16:09 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1632DF8019B; Thu, 14 Dec 2023 14:15:56 +0100 (CET) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (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 47C33F80114 for ; Thu, 14 Dec 2023 14:15:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 47C33F80114 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=seumnG9z Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c9fdf53abcso5934831fa.1 for ; Thu, 14 Dec 2023 05:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702559746; x=1703164546; 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=kaGgexboX4k3Qc2D4NNTwm8nzl2s41MzL85I6McymUo=; b=seumnG9zFq8OJjpD3douPIgKDYl6c5jpq06u275i8WXIpN0d6xyIdaS+d3yl5aNUz+ AXf6HihwkfBQc7yPxvEoj4R2H/dzlLDvUkxHA2b6k8i+yR76eOvYV4noshkiDg+dsqDg Z59GFVV7bLgtHy+CMpAcBYGcvjsGUAQT08YCGG4oa9NqauAWcE6Kh5t/co+m5qbE8Tvf woii56+EqO3ZzpXFqAWpUNsJ8dW0kQevhhMJENPDOwZHMFHKvjVrRaV7u038W4ZRWGpH 8a4Ztr9d4BojhMWOrZJiKefZVdl2i2nxMs2dPKluuSzwPoPn3UAJHiIdBMhepKf/muxs kSoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702559746; x=1703164546; 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=kaGgexboX4k3Qc2D4NNTwm8nzl2s41MzL85I6McymUo=; b=dZ6rPIPRtPYoQQ021M3j2kA4Ucsri1uMXJ9HXW6i0SSM2WfFrvuFnE70/KluICsXQG J5OZoQKseeZYoZ6OyUsorm9ZUfpaZUG+q5fBagv6qY4lKchfHVuQsERwOVgVq7DDqjjI COEPnMAHMmkFppj1T+SaOAojj3D4TgzR4Tp2tiVITdDjEEBrPTYn6U9FY+2StHkO2dqA JZrgjOLTD2/Tbb3y1wsTUcY8tI6dSD2hWWpOiTVYlT4ndSzKsQFY5tDbuK0zebeelO53 l6jazNVCe/Oq+ZRLS4SyzZHwRJVbS7TvlCp1iuiXsKi5s5UIF1dXzgmLg/eckqbRJ0Br spvA== X-Gm-Message-State: AOJu0YwIMNCdlHPHgpFFBOiuFGzmLcuItqjXSiqUMZSTr/u8ECFZrR6E EIOLrt31ZnUqqM4junnQkrmM4Q== X-Google-Smtp-Source: AGHT+IGYhdO0R6QYJVwI+mlxYKJRdlAEgaRgJbuekhSlydk1uvqpHt6BYffRJ/9o8BrX6Te5MxGJTQ== X-Received: by 2002:a2e:6e13:0:b0:2ca:207:d214 with SMTP id j19-20020a2e6e13000000b002ca0207d214mr5679117ljc.12.1702559746426; Thu, 14 Dec 2023 05:15:46 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id p23-20020a2e93d7000000b002ca02ceae84sm2080478ljh.83.2023.12.14.05.15.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 05:15:45 -0800 (PST) From: Linus Walleij Date: Thu, 14 Dec 2023 14:15:44 +0100 Subject: [PATCH 3/4] ASoC: simple-card-utils: Drop GPIO include MIME-Version: 1.0 Message-Id: <20231214-gpio-descriptors-sound-misc-v1-3-e3004176bd8b@linaro.org> References: <20231214-gpio-descriptors-sound-misc-v1-0-e3004176bd8b@linaro.org> In-Reply-To: <20231214-gpio-descriptors-sound-misc-v1-0-e3004176bd8b@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Banajit Goswami , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter Cc: linux-sound@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.4 Message-ID-Hash: 3N6BP5NWJWUWXEXQKTORK4IZ34DMDOSR X-Message-ID-Hash: 3N6BP5NWJWUWXEXQKTORK4IZ34DMDOSR 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.9 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 generic card utilities are including the legacy GPIO header but not using any symbols from it. Drop the include from all files. Signed-off-by: Linus Walleij --- sound/soc/generic/audio-graph-card.c | 1 - sound/soc/generic/audio-graph-card2.c | 1 - sound/soc/generic/simple-card-utils.c | 1 - 3 files changed, 3 deletions(-) diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c index 76a9f1e8cdd5..83e3ba773fbd 100644 --- a/sound/soc/generic/audio-graph-card.c +++ b/sound/soc/generic/audio-graph-card.c @@ -9,7 +9,6 @@ #include #include -#include #include #include #include diff --git a/sound/soc/generic/audio-graph-card2.c b/sound/soc/generic/audio-graph-card2.c index 7146611df730..b0a5a9357c76 100644 --- a/sound/soc/generic/audio-graph-card2.c +++ b/sound/soc/generic/audio-graph-card2.c @@ -8,7 +8,6 @@ // based on ${LINUX}/sound/soc/generic/audio-graph-card.c #include #include -#include #include #include #include diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index cfa70a56ff0f..2f2280342e2a 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -5,7 +5,6 @@ // Copyright (c) 2016 Kuninori Morimoto #include -#include #include #include #include From patchwork Thu Dec 14 13:15:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 754869 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 61FEEC4332F for ; Thu, 14 Dec 2023 13:17:36 +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 4C012DED; Thu, 14 Dec 2023 14:17:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4C012DED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1702559854; bh=uQaQHcLk0c5Xq+IXas86mu93J/vBkrHoErZS7IUNtIg=; 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=G90SLASrHUMVcsqpWOLptrAiXXoar6o5CwWKfcuVgq3rXsfCI6J/a2C91LVXdclB1 JpfU1vsNHNkMLUBFOMFJlCt+W7KQJIT5rgSHQzUrbDs+ciI5TTIMJRVc8e8nNP7X8p 2br/k7/tBHhj4kAUB8+6cAwc5kQqNsmwUy/4oLJM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 51A22F8063C; Thu, 14 Dec 2023 14:16:16 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id ADB26F8062D; Thu, 14 Dec 2023 14:16:15 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6B844F805F3; Thu, 14 Dec 2023 14:16:09 +0100 (CET) Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 1DCC5F8016A for ; Thu, 14 Dec 2023 14:15:49 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1DCC5F8016A 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=VGbIYaDn Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2ca0c36f5beso106150981fa.1 for ; Thu, 14 Dec 2023 05:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702559747; x=1703164547; 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=GhFLd4CPtXm/YF25BMgLtgk+3dv0PmLn7A52Lhi5STs=; b=VGbIYaDny6sRQJqau/CoV6H3od7o6uMgHmc0Q6gYichBgObqBbcA2L8h/wjkh0m3ma euYpEch5PGwAAK053LRzRl9DIZt9TLgm2OhZkvzfnxPPW/jBmc00CNLNpvJ70iygWw99 XCzS+SiBZOxdn+lmj5Si93ZvCWZWJIyGqd01EGlE5rmbW6P5NLWZcxsCoj/nC2R53RGr BXhTKq61qo5KJrEkU3Ad5dfEl9c4wAj+KKjxfN0/MobjvXi8n6GzRJdHYVyY44+bZ7uS uLRcTVgHOw9be2e5mSAvvM/OPaFCfxDyZVDbQ/tI7HAF4sTDPeusS2cE+BnHJConwZu6 KvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702559747; x=1703164547; 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=GhFLd4CPtXm/YF25BMgLtgk+3dv0PmLn7A52Lhi5STs=; b=YvF8v9b2yF7NpBb7uwgcfPP76GkLyqUmA1ZZwVnufe5Q247LBdVsXkNbBgLZIUXyTF aVUoeu49lXhkUx5EtZDxRxBiGtxBCrJbx5NJ2JneU0VumD37EfyZuyTLp1zpLlZWHEL5 DW2Vh+k9UIy0IXUA5Qri4UrVywKWrp0OB31sEDwQk63uZw3qN2OKrqSDgM+gd0mlQp+I 4qjyJ1M6I0t4/bC6E1UlS69WQJQPvO0tNETx4dY85pdcOYHHgjk0AY2JW42N0N2QCmF7 TieJBYArTvQoLlzhKNm4UmHmjlho7pEp0pAbV9XPkJmk8E5M7h52ujyKm74hPIrInimc jYbw== X-Gm-Message-State: AOJu0YxR3+rYj3QHIXiAfVYQ3ghSq9iwjN+Oo8nY1DuQ4fz1cJlISQLi drH8WTDsmghnFGC5reG3wqwPIA== X-Google-Smtp-Source: AGHT+IGq3Eh0v9BtGBtOlHuwDYZzfJD+n+q/wtn0mvU9Vj1OSw4Alx/PDq6ZFZ1HgX3LajGeYwBYdA== X-Received: by 2002:a2e:bcd1:0:b0:2cc:2b21:6fc7 with SMTP id z17-20020a2ebcd1000000b002cc2b216fc7mr3288644ljp.88.1702559747394; Thu, 14 Dec 2023 05:15:47 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id p23-20020a2e93d7000000b002ca02ceae84sm2080478ljh.83.2023.12.14.05.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 05:15:47 -0800 (PST) From: Linus Walleij Date: Thu, 14 Dec 2023 14:15:45 +0100 Subject: [PATCH 4/4] ASoC: tegra: tegra20_ac97: Convert to use GPIO descriptors MIME-Version: 1.0 Message-Id: <20231214-gpio-descriptors-sound-misc-v1-4-e3004176bd8b@linaro.org> References: <20231214-gpio-descriptors-sound-misc-v1-0-e3004176bd8b@linaro.org> In-Reply-To: <20231214-gpio-descriptors-sound-misc-v1-0-e3004176bd8b@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Banajit Goswami , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter Cc: linux-sound@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.4 Message-ID-Hash: AEGRDYOMMUNZ55HXGHCEQ2OW554XIWOE X-Message-ID-Hash: AEGRDYOMMUNZ55HXGHCEQ2OW554XIWOE 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.9 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 Tegra20 AC97 driver is using the legacy GPIO APIs in and to obtain GPIOs for reset and sync. Convert it over and fix the polarity error on the RESET line in the process: this reset line is clearly active low. Just fix the one in-tree device tree site using it at the same time. Signed-off-by: Linus Walleij --- If people demand that the DTS oneliner be submitted and merged separately then I can do so. (I personally think that is too much focus on process over content.) --- arch/arm/boot/dts/nvidia/tegra20-colibri.dtsi | 2 +- sound/soc/tegra/tegra20_ac97.c | 55 +++++++++++++-------------- sound/soc/tegra/tegra20_ac97.h | 4 +- 3 files changed, 29 insertions(+), 32 deletions(-) diff --git a/arch/arm/boot/dts/nvidia/tegra20-colibri.dtsi b/arch/arm/boot/dts/nvidia/tegra20-colibri.dtsi index 16b374e6482f..8c1d5c9fa483 100644 --- a/arch/arm/boot/dts/nvidia/tegra20-colibri.dtsi +++ b/arch/arm/boot/dts/nvidia/tegra20-colibri.dtsi @@ -446,7 +446,7 @@ lvp0 { tegra_ac97: ac97@70002000 { status = "okay"; nvidia,codec-reset-gpio = - <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_HIGH>; + <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>; nvidia,codec-sync-gpio = <&gpio TEGRA_GPIO(P, 0) GPIO_ACTIVE_HIGH>; }; diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c index e713feca25fa..8011afe93c96 100644 --- a/sound/soc/tegra/tegra20_ac97.c +++ b/sound/soc/tegra/tegra20_ac97.c @@ -12,12 +12,11 @@ #include #include #include -#include +#include #include #include #include #include -#include #include #include #include @@ -39,11 +38,15 @@ static void tegra20_ac97_codec_reset(struct snd_ac97 *ac97) u32 readback; unsigned long timeout; - /* reset line is not driven by DAC pad group, have to toggle GPIO */ - gpio_set_value(workdata->reset_gpio, 0); + /* + * The reset line is not driven by DAC pad group, have to toggle GPIO. + * The RESET line is active low but this is abstracted by the GPIO + * library. + */ + gpiod_set_value(workdata->reset_gpio, 1); udelay(2); - gpio_set_value(workdata->reset_gpio, 1); + gpiod_set_value(workdata->reset_gpio, 0); udelay(2); timeout = jiffies + msecs_to_jiffies(100); @@ -66,14 +69,10 @@ static void tegra20_ac97_codec_warm_reset(struct snd_ac97 *ac97) * the controller cmd is not working, have to toggle sync line * manually. */ - gpio_request(workdata->sync_gpio, "codec-sync"); - - gpio_direction_output(workdata->sync_gpio, 1); - + gpiod_direction_output(workdata->sync_gpio, 1); udelay(2); - gpio_set_value(workdata->sync_gpio, 0); + gpiod_set_value(workdata->sync_gpio, 0); udelay(2); - gpio_free(workdata->sync_gpio); timeout = jiffies + msecs_to_jiffies(100); @@ -342,28 +341,26 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) goto err_clk_put; } - ac97->reset_gpio = of_get_named_gpio(pdev->dev.of_node, - "nvidia,codec-reset-gpio", 0); - if (gpio_is_valid(ac97->reset_gpio)) { - ret = devm_gpio_request_one(&pdev->dev, ac97->reset_gpio, - GPIOF_OUT_INIT_HIGH, "codec-reset"); - if (ret) { - dev_err(&pdev->dev, "could not get codec-reset GPIO\n"); - goto err_clk_put; - } - } else { - dev_err(&pdev->dev, "no codec-reset GPIO supplied\n"); - ret = -EINVAL; + /* Obtain RESET de-asserted */ + ac97->reset_gpio = devm_gpiod_get(&pdev->dev, + "nvidia,codec-reset", + GPIOD_OUT_LOW); + if (IS_ERR(ac97->reset_gpio)) { + ret = PTR_ERR(ac97->reset_gpio); + dev_err(&pdev->dev, "no RESET GPIO supplied: %d\n", ret); goto err_clk_put; } - - ac97->sync_gpio = of_get_named_gpio(pdev->dev.of_node, - "nvidia,codec-sync-gpio", 0); - if (!gpio_is_valid(ac97->sync_gpio)) { - dev_err(&pdev->dev, "no codec-sync GPIO supplied\n"); - ret = -EINVAL; + gpiod_set_consumer_name(ac97->reset_gpio, "codec-reset"); + + ac97->sync_gpio = devm_gpiod_get(&pdev->dev, + "nvidia,codec-sync", + GPIOD_OUT_LOW); + if (IS_ERR(ac97->sync_gpio)) { + ret = PTR_ERR(ac97->sync_gpio); + dev_err(&pdev->dev, "no codec-sync GPIO supplied: %d\n", ret); goto err_clk_put; } + gpiod_set_consumer_name(ac97->sync_gpio, "codec-sync"); ac97->capture_dma_data.addr = mem->start + TEGRA20_AC97_FIFO_RX1; ac97->capture_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; diff --git a/sound/soc/tegra/tegra20_ac97.h b/sound/soc/tegra/tegra20_ac97.h index 870ea09ff301..116d7b2db27e 100644 --- a/sound/soc/tegra/tegra20_ac97.h +++ b/sound/soc/tegra/tegra20_ac97.h @@ -80,7 +80,7 @@ struct tegra20_ac97 { struct snd_dmaengine_dai_dma_data playback_dma_data; struct reset_control *reset; struct regmap *regmap; - int reset_gpio; - int sync_gpio; + struct gpio_desc *reset_gpio; + struct gpio_desc *sync_gpio; }; #endif /* __TEGRA20_AC97_H__ */