Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0
0002  *
0003  * Copyright (c) 2018 Baylibre SAS.
0004  * Author: Jerome Brunet <jbrunet@baylibre.com>
0005  */
0006 
0007 #ifndef _MESON_CODEC_GLUE_H
0008 #define _MESON_CODEC_GLUE_H
0009 
0010 #include <sound/soc.h>
0011 
0012 struct meson_codec_glue_input {
0013     struct snd_soc_pcm_stream params;
0014     unsigned int fmt;
0015 };
0016 
0017 /* Input helpers */
0018 struct meson_codec_glue_input *
0019 meson_codec_glue_input_get_data(struct snd_soc_dai *dai);
0020 int meson_codec_glue_input_hw_params(struct snd_pcm_substream *substream,
0021                      struct snd_pcm_hw_params *params,
0022                      struct snd_soc_dai *dai);
0023 int meson_codec_glue_input_set_fmt(struct snd_soc_dai *dai,
0024                    unsigned int fmt);
0025 int meson_codec_glue_input_dai_probe(struct snd_soc_dai *dai);
0026 int meson_codec_glue_input_dai_remove(struct snd_soc_dai *dai);
0027 
0028 /* Output helpers */
0029 int meson_codec_glue_output_startup(struct snd_pcm_substream *substream,
0030                     struct snd_soc_dai *dai);
0031 
0032 #endif /* _MESON_CODEC_GLUE_H */