mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 06:23:02 +02:00
ASoC: cirrus: 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/87se5djgw5.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9626075249
commit
01856b7ac9
|
|
@ -401,6 +401,15 @@ static int ep93xx_i2s_resume(struct snd_soc_component *component)
|
|||
#define ep93xx_i2s_resume NULL
|
||||
#endif
|
||||
|
||||
static const u64 ep93xx_selectable_formats =
|
||||
SND_SOC_POSSIBLE_DAIFMT_I2S |
|
||||
SND_SOC_POSSIBLE_DAIFMT_RIGHT_J |
|
||||
SND_SOC_POSSIBLE_DAIFMT_LEFT_J |
|
||||
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 const struct snd_soc_dai_ops ep93xx_i2s_dai_ops = {
|
||||
.probe = ep93xx_i2s_dai_probe,
|
||||
.startup = ep93xx_i2s_startup,
|
||||
|
|
@ -408,6 +417,8 @@ static const struct snd_soc_dai_ops ep93xx_i2s_dai_ops = {
|
|||
.hw_params = ep93xx_i2s_hw_params,
|
||||
.set_sysclk = ep93xx_i2s_set_sysclk,
|
||||
.set_fmt = ep93xx_i2s_set_dai_fmt,
|
||||
.auto_selectable_formats = &ep93xx_selectable_formats,
|
||||
.num_auto_selectable_formats = 1,
|
||||
};
|
||||
|
||||
#define EP93XX_I2S_FORMATS (SNDRV_PCM_FMTBIT_S32_LE)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user