meson-codec-glue.h 937 B

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