mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 09:41:03 +02:00
ASoC: codecs: cros_ec_codec: use .auto_selectable_formats
We can use .auto_selectable_formats. Let's adds it. Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87qzkau4wk.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
1cea958237
commit
31dbeb6d88
|
|
@ -320,10 +320,18 @@ static int i2s_rx_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
|
|||
(uint8_t *)&p, sizeof(p), NULL, 0);
|
||||
}
|
||||
|
||||
static const u64 i2s_rx_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 i2s_rx_dai_ops = {
|
||||
.hw_params = i2s_rx_hw_params,
|
||||
.set_fmt = i2s_rx_set_fmt,
|
||||
.set_bclk_ratio = i2s_rx_set_bclk_ratio,
|
||||
.auto_selectable_formats = &i2s_rx_selectable_formats,
|
||||
.num_auto_selectable_formats = 1,
|
||||
};
|
||||
|
||||
static int i2s_rx_event(struct snd_soc_dapm_widget *w,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user