From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: [PATCH 5/7] ASoC: rsnd: add .get_fmt support
Date: 22 Apr 2021 10:53:59 +0900 [thread overview]
Message-ID: <87tunzgk3s.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <871rb3hypy.wl-kuninori.morimoto.gx@renesas.com>
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
rsnd supports .get_fmt by this patch
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
sound/soc/sh/rcar/core.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 8696a993c478..958865c3951d 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -754,6 +754,21 @@ static int rsnd_soc_dai_trigger(struct snd_pcm_substream *substream, int cmd,
return ret;
}
+static u64 rsnd_soc_dai_get_fmt(struct snd_soc_dai *dai)
+{
+ return SND_SOC_POSSIBLE_DAIFMT_I2S |
+ SND_SOC_POSSIBLE_DAIFMT_RIGHT_J |
+ SND_SOC_POSSIBLE_DAIFMT_LEFT_J |
+ SND_SOC_POSSIBLE_DAIFMT_DSP_A |
+ SND_SOC_POSSIBLE_DAIFMT_DSP_B |
+ SND_SOC_POSSIBLE_DAIFMT_CBP_CFP |
+ SND_SOC_POSSIBLE_DAIFMT_CBC_CFC |
+ SND_SOC_POSSIBLE_DAIFMT_NB_NF |
+ SND_SOC_POSSIBLE_DAIFMT_NB_IF |
+ SND_SOC_POSSIBLE_DAIFMT_IB_NF |
+ SND_SOC_POSSIBLE_DAIFMT_IB_IF;
+}
+
static int rsnd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
@@ -1047,6 +1062,7 @@ static const struct snd_soc_dai_ops rsnd_soc_dai_ops = {
.startup = rsnd_soc_dai_startup,
.shutdown = rsnd_soc_dai_shutdown,
.trigger = rsnd_soc_dai_trigger,
+ .get_fmt = rsnd_soc_dai_get_fmt,
.set_fmt = rsnd_soc_dai_set_fmt,
.set_tdm_slot = rsnd_soc_set_dai_tdm_slot,
.prepare = rsnd_soc_dai_prepare,
--
2.25.1
next prev parent reply other threads:[~2021-04-22 1:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-22 1:52 [PATCH 0/7] ASoC: adds new .get_fmt support Kuninori Morimoto
2021-04-22 1:53 ` [PATCH 1/7] ASoC: soc-core: move snd_soc_runtime_set_dai_fmt() to upside Kuninori Morimoto
2021-04-22 1:53 ` [PATCH 2/7] ASoC: soc-core: add snd_soc_runtime_get_dai_fmt() Kuninori Morimoto
2021-04-23 18:35 ` Mark Brown
2021-04-26 6:13 ` Kuninori Morimoto
2021-04-26 13:08 ` Mark Brown
2021-04-26 22:39 ` Kuninori Morimoto
2021-04-22 1:53 ` [PATCH 3/7] ASoC: ak4613: add .get_fmt support Kuninori Morimoto
2021-04-22 1:53 ` [PATCH 4/7] ASoC: pcm3168a: " Kuninori Morimoto
2021-04-22 1:53 ` Kuninori Morimoto [this message]
2021-04-22 1:54 ` [PATCH 6/7] ASoC: fsi: " Kuninori Morimoto
2021-04-22 1:54 ` [PATCH 7/7] ASoC: hdmi-codec: " Kuninori Morimoto
2021-04-23 18:18 ` [PATCH 0/7] ASoC: adds new " 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=87tunzgk3s.wl-kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.