From: Sameer Pujar <spujar@nvidia.com>
To: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>,
lgirdwood@gmail.com, broonie@kernel.org
Cc: kuninori.morimoto.gx@renesas.com, perex@perex.cz, tiwai@suse.com,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] ASoC: simple-card: Fix up checks for HW param fixups
Date: Wed, 19 Oct 2022 11:30:51 +0530 [thread overview]
Message-ID: <90f43267-0a8a-4928-54b7-47b4ab0c55bd@nvidia.com> (raw)
In-Reply-To: <20221019012302.633830-1-aidanmacdonald.0x0@gmail.com>
On 19-10-2022 06:53, Aidan MacDonald wrote:
> The "convert-xxx" properties only have an effect for DPCM DAI links.
> A DAI link is only created as DPCM if the device tree requires it;
> part of this involves checking for the use of "convert-xxx" properties.
>
> When the convert-sample-format property was added, the checks got out
> of sync. A DAI link that specified only convert-sample-format but did
> not pass any of the other DPCM checks would not go into DPCM mode and
> the convert-sample-format property would be silently ignored.
>
> Fix this by adding a function to do the "convert-xxx" property checks,
> instead of open-coding it in simple-card and audio-graph-card. And add
> "convert-sample-format" to the check function so that DAI links using
> it will be initialized correctly.
>
> Fixes: 047a05366f4b ("ASoC: simple-card-utils: Fixup DAI sample format")
> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
> ---
> v2: Rename helper function to asoc_simple_is_convert_required() as
> suggested by Kuninori Morimoto.
>
> include/sound/simple_card_utils.h | 1 +
> sound/soc/generic/audio-graph-card.c | 2 +-
> sound/soc/generic/simple-card-utils.c | 15 +++++++++++++++
> sound/soc/generic/simple-card.c | 3 +--
> 4 files changed, 18 insertions(+), 3 deletions(-)
Acked-by: Sameer Pujar <spujar@nvidia.com>
next prev parent reply other threads:[~2022-10-19 6:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 1:23 Aidan MacDonald
2022-10-19 6:00 ` Sameer Pujar [this message]
2022-10-19 15:50 ` 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=90f43267-0a8a-4928-54b7-47b4ab0c55bd@nvidia.com \
--to=spujar@nvidia.com \
--cc=aidanmacdonald.0x0@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--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®