Linux Audio

Check our new training course

Loading...
Note: File does not exist in v4.17.
 1/* SPDX-License-Identifier: GPL-2.0
 2 *
 3 * Copyright (c) 2018 Baylibre SAS.
 4 * Author: Jerome Brunet <jbrunet@baylibre.com>
 5 */
 6
 7#ifndef _MESON_CODEC_GLUE_H
 8#define _MESON_CODEC_GLUE_H
 9
10#include <sound/soc.h>
11
12struct meson_codec_glue_input {
13	struct snd_soc_pcm_stream params;
14	unsigned int fmt;
15};
16
17/* Input helpers */
18struct meson_codec_glue_input *
19meson_codec_glue_input_get_data(struct snd_soc_dai *dai);
20int meson_codec_glue_input_hw_params(struct snd_pcm_substream *substream,
21				     struct snd_pcm_hw_params *params,
22				     struct snd_soc_dai *dai);
23int meson_codec_glue_input_set_fmt(struct snd_soc_dai *dai,
24				   unsigned int fmt);
25int meson_codec_glue_input_dai_probe(struct snd_soc_dai *dai);
26int meson_codec_glue_input_dai_remove(struct snd_soc_dai *dai);
27
28/* Output helpers */
29int meson_codec_glue_output_startup(struct snd_pcm_substream *substream,
30				    struct snd_soc_dai *dai);
31
32#endif /* _MESON_CODEC_GLUE_H */