mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
ASoC: amd: 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: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://patch.msgid.link/87ldc6hvil.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
502d801f0a
commit
5f195b1ae6
|
|
@ -686,6 +686,10 @@ static int acp_i2s_startup(struct snd_pcm_substream *substream, struct snd_soc_d
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const u64 acp_i2s_selectable_formats =
|
||||
SND_SOC_POSSIBLE_DAIFMT_I2S |
|
||||
SND_SOC_POSSIBLE_DAIFMT_DSP_A;
|
||||
|
||||
const struct snd_soc_dai_ops asoc_acp_cpu_dai_ops = {
|
||||
.startup = acp_i2s_startup,
|
||||
.hw_params = acp_i2s_hwparams,
|
||||
|
|
@ -693,6 +697,8 @@ const struct snd_soc_dai_ops asoc_acp_cpu_dai_ops = {
|
|||
.trigger = acp_i2s_trigger,
|
||||
.set_fmt = acp_i2s_set_fmt,
|
||||
.set_tdm_slot = acp_i2s_set_tdm_slot,
|
||||
.auto_selectable_formats = &acp_i2s_selectable_formats,
|
||||
.num_auto_selectable_formats = 1,
|
||||
};
|
||||
EXPORT_SYMBOL_NS_GPL(asoc_acp_cpu_dai_ops, "SND_SOC_ACP_COMMON");
|
||||
|
||||
|
|
|
|||
|
|
@ -250,11 +250,17 @@ static int acp3x_i2s_trigger(struct snd_pcm_substream *substream,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static const u64 acp3x_i2s_selectable_formats =
|
||||
SND_SOC_POSSIBLE_DAIFMT_I2S |
|
||||
SND_SOC_POSSIBLE_DAIFMT_DSP_A;
|
||||
|
||||
static const struct snd_soc_dai_ops acp3x_i2s_dai_ops = {
|
||||
.hw_params = acp3x_i2s_hwparams,
|
||||
.trigger = acp3x_i2s_trigger,
|
||||
.set_fmt = acp3x_i2s_set_fmt,
|
||||
.set_tdm_slot = acp3x_i2s_set_tdm_slot,
|
||||
.auto_selectable_formats = &acp3x_i2s_selectable_formats,
|
||||
.num_auto_selectable_formats = 1,
|
||||
};
|
||||
|
||||
static const struct snd_soc_component_driver acp3x_dai_component = {
|
||||
|
|
|
|||
|
|
@ -337,11 +337,17 @@ static int acp5x_i2s_trigger(struct snd_pcm_substream *substream,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static const u64 acp5x_i2s_selectable_formats =
|
||||
SND_SOC_POSSIBLE_DAIFMT_I2S |
|
||||
SND_SOC_POSSIBLE_DAIFMT_DSP_A;
|
||||
|
||||
static const struct snd_soc_dai_ops acp5x_i2s_dai_ops = {
|
||||
.hw_params = acp5x_i2s_hwparams,
|
||||
.trigger = acp5x_i2s_trigger,
|
||||
.set_fmt = acp5x_i2s_set_fmt,
|
||||
.set_tdm_slot = acp5x_i2s_set_tdm_slot,
|
||||
.auto_selectable_formats = &acp5x_i2s_selectable_formats,
|
||||
.num_auto_selectable_formats = 1,
|
||||
};
|
||||
|
||||
static const struct snd_soc_component_driver acp5x_dai_component = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user