1 /* SPDX-License-Identifier: GPL-2.0 1 /* SPDX-License-Identifier: GPL-2.0 2 * 2 * 3 * Copyright (c) 2018 Baylibre SAS. 3 * Copyright (c) 2018 Baylibre SAS. 4 * Author: Jerome Brunet <jbrunet@baylibre.com 4 * Author: Jerome Brunet <jbrunet@baylibre.com> 5 */ 5 */ 6 6 7 #ifndef _MESON_CODEC_GLUE_H 7 #ifndef _MESON_CODEC_GLUE_H 8 #define _MESON_CODEC_GLUE_H 8 #define _MESON_CODEC_GLUE_H 9 9 10 #include <sound/soc.h> 10 #include <sound/soc.h> 11 11 12 struct meson_codec_glue_input { 12 struct meson_codec_glue_input { 13 struct snd_soc_pcm_stream params; 13 struct snd_soc_pcm_stream params; 14 unsigned int fmt; 14 unsigned int fmt; 15 }; 15 }; 16 16 17 /* Input helpers */ 17 /* Input helpers */ 18 struct meson_codec_glue_input * 18 struct meson_codec_glue_input * 19 meson_codec_glue_input_get_data(struct snd_soc 19 meson_codec_glue_input_get_data(struct snd_soc_dai *dai); 20 int meson_codec_glue_input_hw_params(struct sn 20 int meson_codec_glue_input_hw_params(struct snd_pcm_substream *substream, 21 struct sn 21 struct snd_pcm_hw_params *params, 22 struct sn 22 struct snd_soc_dai *dai); 23 int meson_codec_glue_input_set_fmt(struct snd_ 23 int meson_codec_glue_input_set_fmt(struct snd_soc_dai *dai, 24 unsigned in 24 unsigned int fmt); 25 int meson_codec_glue_input_dai_probe(struct sn 25 int meson_codec_glue_input_dai_probe(struct snd_soc_dai *dai); 26 int meson_codec_glue_input_dai_remove(struct s 26 int meson_codec_glue_input_dai_remove(struct snd_soc_dai *dai); 27 27 28 /* Output helpers */ 28 /* Output helpers */ 29 int meson_codec_glue_output_startup(struct snd 29 int meson_codec_glue_output_startup(struct snd_pcm_substream *substream, 30 struct snd 30 struct snd_soc_dai *dai); 31 31 32 #endif /* _MESON_CODEC_GLUE_H */ 32 #endif /* _MESON_CODEC_GLUE_H */ 33 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.