summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2026-09-03 01:13:31 +0000
committerMark Brown <broonie@kernel.org>2026-09-11 21:11:31 +0100
commit04d17816c81ef7929600ca0c2214395728bcde5c (patch)
treefa520297623e1ec8bd50094ceb700915e4983918
parentdf2908090cda368b01ff43709f51890076c56157 (diff)
downloadlinux-next-04d17816c81ef7929600ca0c2214395728bcde5c.tar.gz
linux-next-04d17816c81ef7929600ca0c2214395728bcde5c.zip
ASoC: dwc: 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/87y0djyw5g.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/dwc/dwc-i2s.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c
index 2e9fb79b1cd8..ade89c196a79 100644
--- a/sound/soc/dwc/dwc-i2s.c
+++ b/sound/soc/dwc/dwc-i2s.c
@@ -464,6 +464,13 @@ static int dw_i2s_dai_probe(struct snd_soc_dai *dai)
return 0;
}
+static const u64 dw_i2s_selectable_formats =
+ 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;
+
static const struct snd_soc_dai_ops dw_i2s_dai_ops = {
.probe = dw_i2s_dai_probe,
.startup = dw_i2s_startup,
@@ -472,6 +479,8 @@ static const struct snd_soc_dai_ops dw_i2s_dai_ops = {
.trigger = dw_i2s_trigger,
.set_fmt = dw_i2s_set_fmt,
.set_tdm_slot = dw_i2s_set_tdm_slot,
+ .auto_selectable_formats = &dw_i2s_selectable_formats,
+ .num_auto_selectable_formats = 1,
};
static int dw_i2s_runtime_suspend(struct device *dev)