cobalt-alsa.h 728 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * ALSA interface to cobalt PCM capture streams
  4. *
  5. * Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates.
  6. * All rights reserved.
  7. */
  8. struct snd_card;
  9. struct snd_cobalt_card {
  10. struct cobalt_stream *s;
  11. struct snd_card *sc;
  12. unsigned int capture_transfer_done;
  13. unsigned int hwptr_done_capture;
  14. unsigned alsa_record_cnt;
  15. struct snd_pcm_substream *capture_pcm_substream;
  16. unsigned int pb_size;
  17. unsigned int pb_count;
  18. unsigned int pb_pos;
  19. unsigned pb_filled;
  20. bool alsa_pb_channel;
  21. unsigned alsa_playback_cnt;
  22. struct snd_pcm_substream *playback_pcm_substream;
  23. };
  24. int cobalt_alsa_init(struct cobalt_stream *s);
  25. void cobalt_alsa_exit(struct cobalt_stream *s);