summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2026-09-03 01:14:43 +0000
committerMark Brown <broonie@kernel.org>2026-09-11 21:11:33 +0100
commit7bbcb8bac2737cf3f23c3954818a0969c6bf9915 (patch)
tree4a925ca97337ed912c4939c66f15dd41996654aa /sound
parentebf365cf26231f2a47e65d6d6801609d8e55325b (diff)
downloadlinux-next-7bbcb8bac2737cf3f23c3954818a0969c6bf9915.tar.gz
linux-next-7bbcb8bac2737cf3f23c3954818a0969c6bf9915.zip
ASoC: ux500: use .auto_selectable_formats
We can use .auto_selectable_formats. Let's adds it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/877bl3yw3g.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/ux500/ux500_msp_dai.c33
1 files changed, 20 insertions, 13 deletions
diff --git a/sound/soc/ux500/ux500_msp_dai.c b/sound/soc/ux500/ux500_msp_dai.c
index 499e826d7120..3c760daf9a0d 100644
--- a/sound/soc/ux500/ux500_msp_dai.c
+++ b/sound/soc/ux500/ux500_msp_dai.c
@@ -681,18 +681,25 @@ static int ux500_msp_dai_of_probe(struct snd_soc_dai *dai)
return 0;
}
-static const struct snd_soc_dai_ops ux500_msp_dai_ops[] = {
- {
- .probe = ux500_msp_dai_of_probe,
- .set_sysclk = ux500_msp_dai_set_dai_sysclk,
- .set_fmt = ux500_msp_dai_set_dai_fmt,
- .set_tdm_slot = ux500_msp_dai_set_tdm_slot,
- .startup = ux500_msp_dai_startup,
- .shutdown = ux500_msp_dai_shutdown,
- .prepare = ux500_msp_dai_prepare,
- .trigger = ux500_msp_dai_trigger,
- .hw_params = ux500_msp_dai_hw_params,
- }
+static const u64 ux500_msp_dai_selectable_formats =
+ SND_SOC_POSSIBLE_DAIFMT_NB_NF |
+ SND_SOC_POSSIBLE_DAIFMT_NB_IF |
+ SND_SOC_POSSIBLE_DAIFMT_I2S |
+ SND_SOC_POSSIBLE_DAIFMT_DSP_A |
+ SND_SOC_POSSIBLE_DAIFMT_DSP_B;
+
+static const struct snd_soc_dai_ops ux500_msp_dai_ops = {
+ .probe = ux500_msp_dai_of_probe,
+ .set_sysclk = ux500_msp_dai_set_dai_sysclk,
+ .set_fmt = ux500_msp_dai_set_dai_fmt,
+ .set_tdm_slot = ux500_msp_dai_set_tdm_slot,
+ .startup = ux500_msp_dai_startup,
+ .shutdown = ux500_msp_dai_shutdown,
+ .prepare = ux500_msp_dai_prepare,
+ .trigger = ux500_msp_dai_trigger,
+ .hw_params = ux500_msp_dai_hw_params,
+ .auto_selectable_formats = &ux500_msp_dai_selectable_formats,
+ .num_auto_selectable_formats = 1,
};
static struct snd_soc_dai_driver ux500_msp_dai_drv = {
@@ -704,7 +711,7 @@ static struct snd_soc_dai_driver ux500_msp_dai_drv = {
.capture.channels_max = UX500_MSP_MAX_CHANNELS,
.capture.rates = UX500_I2S_RATES,
.capture.formats = UX500_I2S_FORMATS,
- .ops = ux500_msp_dai_ops,
+ .ops = &ux500_msp_dai_ops,
};
static const struct snd_soc_component_driver ux500_msp_component = {