mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
ASoC: spacemit: use .auto_selectable_formats
We can use .auto_selectable_formats. Let's adds it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Link: https://patch.msgid.link/87h5muhvi6.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2b7f2b7a2a
commit
5e6f8ad000
|
|
@ -335,6 +335,11 @@ static int spacemit_i2s_dai_remove(struct snd_soc_dai *dai)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const u64 spacemit_i2s_selectable_formats =
|
||||
SND_SOC_POSSIBLE_DAIFMT_I2S |
|
||||
SND_SOC_POSSIBLE_DAIFMT_DSP_A |
|
||||
SND_SOC_POSSIBLE_DAIFMT_DSP_B;
|
||||
|
||||
static const struct snd_soc_dai_ops spacemit_i2s_dai_ops = {
|
||||
.probe = spacemit_i2s_dai_probe,
|
||||
.remove = spacemit_i2s_dai_remove,
|
||||
|
|
@ -343,6 +348,8 @@ static const struct snd_soc_dai_ops spacemit_i2s_dai_ops = {
|
|||
.set_sysclk = spacemit_i2s_set_sysclk,
|
||||
.set_fmt = spacemit_i2s_set_fmt,
|
||||
.trigger = spacemit_i2s_trigger,
|
||||
.auto_selectable_formats = &spacemit_i2s_selectable_formats,
|
||||
.num_auto_selectable_formats = 1,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_driver spacemit_i2s_dai = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user