From: "Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>
To: Syed Saba Kareem <Syed.SabaKareem@amd.com>,
broonie@kernel.org, alsa-devel@alsa-project.org
Cc: Vijendar.Mukunda@amd.com, Basavaraj.Hiregoudar@amd.com,
Sunil-kumar.Dommati@amd.com, mario.limonciello@amd.com,
venkataprasad.potturu@amd.com, arungopal.kondaveeti@amd.com,
mastan.katragadda@amd.com, juan.martinez@amd.com,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Kuninori Morimoto" <kuninori.morimoto.gx@renesas.com>,
"V Sujith Kumar Reddy" <vsujithkumar.reddy@amd.com>,
"Marian Postevca" <posteuca@mutex.one>,
"Jarkko Nikula" <jarkko.nikula@bitmer.com>,
"Claudiu Beznea" <claudiu.beznea@microchip.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Yang Li" <yang.lee@linux.alibaba.com>,
"Dan Carpenter" <dan.carpenter@linaro.org>,
"open list" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 12/13] ASoC: amd: acp: Add pci legacy driver support for acp7.0 platform
Date: Mon, 23 Oct 2023 09:50:41 +0200 [thread overview]
Message-ID: <d5fba90c-24ab-4aff-8d6f-6d1443f4c10a@linux.intel.com> (raw)
In-Reply-To: <20231021145110.478744-12-Syed.SabaKareem@amd.com>
On 10/21/2023 4:50 PM, Syed Saba Kareem wrote:
> Add pci legacy driver support and create platform driver for
> acp7.0 platform.
>
> Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
> ---
...
> +
> +static struct snd_soc_dai_driver acp70_dai[] = {
> +{
> + .name = "acp-i2s-sp",
> + .id = I2S_SP_INSTANCE,
> + .playback = {
> + .stream_name = "I2S SP Playback",
> + .rates = SNDRV_PCM_RATE_8000_96000,
> + .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
> + SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
Any reason to not go from lowest bit width to higher? Similarly in
further definitions.
> + .channels_min = 2,
> + .channels_max = 8,
> + .rate_min = 8000,
> + .rate_max = 96000,
> + },
...
> +
> +static int __maybe_unused acp70_pcm_resume(struct device *dev)
> +{
> + struct acp_dev_data *adata = dev_get_drvdata(dev);
> + struct acp_stream *stream;
> + struct snd_pcm_substream *substream;
> + snd_pcm_uframes_t buf_in_frames;
> + u64 buf_size;
> +
> + spin_lock(&adata->acp_lock);
> + list_for_each_entry(stream, &adata->stream_list, list) {
> + if (stream) {
> + substream = stream->substream;
> + if (substream && substream->runtime) {
> + buf_in_frames = (substream->runtime->buffer_size);
> + buf_size = frames_to_bytes(substream->runtime, buf_in_frames);
> + config_pte_for_stream(adata, stream);
> + config_acp_dma(adata, stream, buf_size);
> + if (stream->dai_id)
> + restore_acp_i2s_params(substream, adata, stream);
> + else
> + restore_acp_pdm_params(substream, adata);
> + }
> + }
> + }
> + spin_unlock(&adata->acp_lock);
> + return 0;
Indentation is wrong in above two lines.
> +}
> +
> +static const struct dev_pm_ops acp70_dma_pm_ops = {
> + SET_SYSTEM_SLEEP_PM_OPS(NULL, acp70_pcm_resume)
> +};
> +
next prev parent reply other threads:[~2023-10-23 7:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-21 14:50 [PATCH 01/13] ASoC: amd: acp: Add acp6.3 pci legacy driver support Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 02/13] ASoC: amd: acp: refactor acp i2s clock generation code Syed Saba Kareem
2023-10-23 7:37 ` Amadeusz Sławiński
2023-10-21 14:50 ` [PATCH 03/13] ASoC: amd: acp: add i2s clock generation support for acp6.3 based platforms Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 04/13] ASoC: amd: acp: add machine driver support for acp6.3 platform Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 05/13] ASoC: amd: acp: add Kconfig options for acp6.3 based platform driver Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 06/13] ASoC: amd: acp: add code for scanning acp pdm controller Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 07/13] ASoC: amd: acp: add platform and flag data to acp data structure Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 08/13] ASoC: amd: acp: add condition check for i2s clock generation Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 09/13] ASoC: amd: acp: add machine driver support for pdm use case Syed Saba Kareem
2023-10-27 8:49 ` Krzysztof Kozlowski
[not found] ` <3ec97548-1f91-49d0-adfb-4f8051ca9a97@amd.com>
[not found] ` <f8f8017c-4e76-4d70-918f-d7cb45186184@kernel.org>
[not found] ` <c0ea139c-9861-4ea1-b547-6e3c380301b3@amd.com>
[not found] ` <ZTvkCAYsrS62/82u@finisterre.sirena.org.uk>
2023-10-27 17:32 ` syed saba kareem
2023-10-28 9:14 ` Krzysztof Kozlowski
2023-10-21 14:50 ` [PATCH 10/13] ASoC: amd: acp: change acp-deinit function arguments Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 11/13] ASoC: amd: acp: change acp power on mask macro value Syed Saba Kareem
2023-10-21 14:50 ` [PATCH 12/13] ASoC: amd: acp: Add pci legacy driver support for acp7.0 platform Syed Saba Kareem
2023-10-23 7:50 ` Amadeusz Sławiński [this message]
2023-10-26 10:04 ` syed saba kareem
2023-10-21 14:50 ` [PATCH 13/13] ASoC: amd: acp: add machine driver support for acp7.0 Syed Saba Kareem
2023-10-23 8:01 ` [PATCH 01/13] ASoC: amd: acp: Add acp6.3 pci legacy driver support Krzysztof Kozlowski
[not found] ` <12c8c0f3-8364-4f25-976e-8cca29b5e17f@amd.com>
2023-10-26 15:00 ` Krzysztof Kozlowski
2023-10-25 16:50 ` Mark Brown
2023-10-26 9:44 ` syed saba kareem
2023-10-26 15:12 ` Mark Brown
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=d5fba90c-24ab-4aff-8d6f-6d1443f4c10a@linux.intel.com \
--to=amadeuszx.slawinski@linux.intel.com \
--cc=Basavaraj.Hiregoudar@amd.com \
--cc=Sunil-kumar.Dommati@amd.com \
--cc=Syed.SabaKareem@amd.com \
--cc=Vijendar.Mukunda@amd.com \
--cc=alsa-devel@alsa-project.org \
--cc=arungopal.kondaveeti@amd.com \
--cc=broonie@kernel.org \
--cc=claudiu.beznea@microchip.com \
--cc=dan.carpenter@linaro.org \
--cc=jarkko.nikula@bitmer.com \
--cc=juan.martinez@amd.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=mastan.katragadda@amd.com \
--cc=perex@perex.cz \
--cc=posteuca@mutex.one \
--cc=tiwai@suse.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=venkataprasad.potturu@amd.com \
--cc=vsujithkumar.reddy@amd.com \
--cc=yang.lee@linux.alibaba.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