diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2026-09-03 01:14:46 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-11 21:11:33 +0100 |
| commit | 514d0b41854cb0d0b1f87d0cd86f1e97687eaba9 (patch) | |
| tree | 1d073f49d33ad65739f3a3d176ec03a146763863 /sound | |
| parent | 7bbcb8bac2737cf3f23c3954818a0969c6bf9915 (diff) | |
| download | linux-next-514d0b41854cb0d0b1f87d0cd86f1e97687eaba9.tar.gz linux-next-514d0b41854cb0d0b1f87d0cd86f1e97687eaba9.zip | |
ASoC: xtensa: 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/875x0nyw3d.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/soc/xtensa/xtfpga-i2s.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sound/soc/xtensa/xtfpga-i2s.c b/sound/soc/xtensa/xtfpga-i2s.c index fd0990201b40..e5e8b72fd817 100644 --- a/sound/soc/xtensa/xtfpga-i2s.c +++ b/sound/soc/xtensa/xtfpga-i2s.c @@ -485,10 +485,16 @@ static const struct snd_soc_component_driver xtfpga_i2s_component = { .legacy_dai_naming = 1, }; +static const u64 xtfpga_i2s_selectable_formats = + SND_SOC_POSSIBLE_DAIFMT_I2S | + SND_SOC_POSSIBLE_DAIFMT_NB_NF; + static const struct snd_soc_dai_ops xtfpga_i2s_dai_ops = { - .startup = xtfpga_i2s_startup, - .hw_params = xtfpga_i2s_hw_params, - .set_fmt = xtfpga_i2s_set_fmt, + .startup = xtfpga_i2s_startup, + .hw_params = xtfpga_i2s_hw_params, + .set_fmt = xtfpga_i2s_set_fmt, + .auto_selectable_formats = &xtfpga_i2s_selectable_formats, + .num_auto_selectable_formats = 1, }; static struct snd_soc_dai_driver xtfpga_i2s_dai[] = { |
