Re: [PATCH 05/44] ASoC: codecs: adav80x: use .auto_selectable_formats
Nuno Sá <[email protected]> Tue, 4 Aug 2026 09:55:41 +0100
| Newsgroups | org.kernel.vger.linux-sound |
|---|---|
| Message-ID | <anGo-yAYOd4aCHy5@nsa> |
On Tue, Aug 04, 2026 at 12:40:54AM +0000, Kuninori Morimoto wrote: > We can use .auto_selectable_formats. Let's adds it. > > Signed-off-by: Kuninori Morimoto <[email protected]> > --- Acked-by: Nuno Sá <[email protected]> > sound/soc/codecs/adav80x.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c > index 8a89187f9c782..e97c72ac9b2b2 100644 > --- a/sound/soc/codecs/adav80x.c > +++ b/sound/soc/codecs/adav80x.c > @@ -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 | \ > -- > 2.53.0 >