mirror of
https://github.com/torvalds/linux.git
synced 2026-09-26 18:12:03 +02:00
ASoC: codecs: adav80x: use .auto_selectable_formats
We can use .auto_selectable_formats. Let's adds it. Acked-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87zeyyu4xr.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
b8c7c3723e
commit
1cea958237
|
|
@ -743,11 +743,19 @@ static void adav80x_dai_shutdown(struct snd_pcm_substream *substream,
|
|||
adav80x->rate = 0;
|
||||
}
|
||||
|
||||
static const u64 adav80x_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;
|
||||
|
||||
static const struct snd_soc_dai_ops adav80x_dai_ops = {
|
||||
.set_fmt = adav80x_set_dai_fmt,
|
||||
.hw_params = adav80x_hw_params,
|
||||
.startup = adav80x_dai_startup,
|
||||
.shutdown = adav80x_dai_shutdown,
|
||||
.auto_selectable_formats = &adav80x_selectable_formats,
|
||||
.num_auto_selectable_formats = 1,
|
||||
};
|
||||
|
||||
#define ADAV80X_PLAYBACK_RATES (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user