mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 12:34:02 +02:00
ASoC: apple: 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/87y0f5jgx2.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
875e906efd
commit
1bd470f27f
|
|
@ -739,6 +739,19 @@ static int mca_fe_hw_params(struct snd_pcm_substream *substream,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const u64 mca_fe_selectable_formats[] =
|
||||
{
|
||||
/* pattern 1 */
|
||||
SND_SOC_POSSIBLE_DAIFMT_I2S |
|
||||
SND_SOC_POSSIBLE_DAIFMT_NB_IF |
|
||||
SND_SOC_POSSIBLE_DAIFMT_IB_IF,
|
||||
|
||||
/* pattern 2 */
|
||||
SND_SOC_POSSIBLE_DAIFMT_LEFT_J |
|
||||
SND_SOC_POSSIBLE_DAIFMT_NB_NF |
|
||||
SND_SOC_POSSIBLE_DAIFMT_IB_NF
|
||||
};
|
||||
|
||||
static const struct snd_soc_dai_ops mca_fe_ops = {
|
||||
.startup = mca_fe_startup,
|
||||
.set_fmt = mca_fe_set_fmt,
|
||||
|
|
@ -748,6 +761,8 @@ static const struct snd_soc_dai_ops mca_fe_ops = {
|
|||
.trigger = mca_fe_trigger,
|
||||
.prepare = mca_fe_prepare,
|
||||
.hw_free = mca_fe_hw_free,
|
||||
.auto_selectable_formats = mca_fe_selectable_formats,
|
||||
.num_auto_selectable_formats = ARRAY_SIZE(mca_fe_selectable_formats),
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user