1 /* SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018 Baylibre SAS.
4 * Author: Jerome Brunet <jbrunet@baylibre.com>
7 #ifndef _MESON_CODEC_GLUE_H
8 #define _MESON_CODEC_GLUE_H
10 #include <sound/soc.h>
12 struct meson_codec_glue_input
{
13 struct snd_soc_pcm_stream params
;
18 struct meson_codec_glue_input
*
19 meson_codec_glue_input_get_data(struct snd_soc_dai
*dai
);
20 int meson_codec_glue_input_hw_params(struct snd_pcm_substream
*substream
,
21 struct snd_pcm_hw_params
*params
,
22 struct snd_soc_dai
*dai
);
23 int meson_codec_glue_input_set_fmt(struct snd_soc_dai
*dai
,
25 int meson_codec_glue_input_dai_probe(struct snd_soc_dai
*dai
);
26 int meson_codec_glue_input_dai_remove(struct snd_soc_dai
*dai
);
29 int meson_codec_glue_output_startup(struct snd_pcm_substream
*substream
,
30 struct snd_soc_dai
*dai
);
32 #endif /* _MESON_CODEC_GLUE_H */