From: Dmitry Osipenko <digetx@gmail.com>
To: Thierry Reding <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
Mark Brown <broonie@kernel.org>, Takashi Iwai <tiwai@suse.com>,
Jaroslav Kysela <perex@perex.cz>, Ion Agorria <ion@agorria.com>,
Svyatoslav Ryhel <clamor95@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>
Cc: alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 2/3] ASoC: tegra: Unify ASoC machine drivers
Date: Fri, 28 May 2021 20:42:51 +0300 [thread overview]
Message-ID: <722581fd-a89b-7b69-f0c0-414d732a6c5c@gmail.com> (raw)
In-Reply-To: <20210528172833.21622-3-digetx@gmail.com>
28.05.2021 20:28, Dmitry Osipenko пишет:
> -static int tegra_wm9712_driver_probe(struct platform_device *pdev)
> -{
> - struct device_node *np = pdev->dev.of_node;
> - struct snd_soc_card *card = &snd_soc_tegra_wm9712;
> - struct tegra_wm9712 *machine;
> - int ret;
> -
> - machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712),
> - GFP_KERNEL);
> - if (!machine)
> - return -ENOMEM;
> -
> - card->dev = &pdev->dev;
> - snd_soc_card_set_drvdata(card, machine);
> -
> - machine->codec = platform_device_alloc("wm9712-codec", -1);
> - if (!machine->codec) {
> - dev_err(&pdev->dev, "Can't allocate wm9712 platform device\n");
> - return -ENOMEM;
> - }
> -
> - ret = platform_device_add(machine->codec);
> - if (ret)
> - goto codec_put;
> -
> - ret = snd_soc_of_parse_card_name(card, "nvidia,model");
> - if (ret)
> - goto codec_unregister;
> -
> - ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing");
> - if (ret)
> - goto codec_unregister;
> -
> - tegra_wm9712_dai.cpus->of_node = of_parse_phandle(np,
> - "nvidia,ac97-controller", 0);
> - if (!tegra_wm9712_dai.cpus->of_node) {
> - dev_err(&pdev->dev,
> - "Property 'nvidia,ac97-controller' missing or invalid\n");
> - ret = -EINVAL;
> - goto codec_unregister;
> - }
> -
> - tegra_wm9712_dai.platforms->of_node = tegra_wm9712_dai.cpus->of_node;
> -
> - ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev);
> - if (ret)
> - goto codec_unregister;
> -
> - ret = tegra_asoc_utils_set_ac97_rate(&machine->util_data);
> - if (ret)
> - goto codec_unregister;
I just noticed that this AC97 clk initialization is gone now for wm9712,
I'll fix it in v6.
next prev parent reply other threads:[~2021-05-28 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 17:28 [PATCH v5 0/3] Unify NVIDIA Tegra " Dmitry Osipenko
2021-05-28 17:28 ` [PATCH v5 1/3] ASoC: tegra: Set driver_name=tegra for all " Dmitry Osipenko
2021-05-28 17:28 ` [PATCH v5 2/3] ASoC: tegra: Unify ASoC " Dmitry Osipenko
2021-05-28 17:42 ` Dmitry Osipenko [this message]
2021-05-28 17:28 ` [PATCH v5 3/3] ASoC: tegra: Specify components string for each card Dmitry Osipenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=722581fd-a89b-7b69-f0c0-414d732a6c5c@gmail.com \
--to=digetx@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=clamor95@gmail.com \
--cc=ion@agorria.com \
--cc=jonathanh@nvidia.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=perex@perex.cz \
--cc=thierry.reding@gmail.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®