msm-pcm-voice.h 985 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Copyright (c) 2011,2012 The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef _MSM_PCM_VOICE_H
  13. #define _MSM_PCM_VOICE_H
  14. #include <sound/apr_audio.h>
  15. enum {
  16. VOICE_SESSION_INDEX,
  17. VOLTE_SESSION_INDEX,
  18. VOICE2_SESSION_INDEX,
  19. VOICE_SESSION_INDEX_MAX,
  20. };
  21. struct msm_voice {
  22. struct snd_pcm_substream *playback_substream;
  23. struct snd_pcm_substream *capture_substream;
  24. int instance;
  25. struct mutex lock;
  26. uint32_t samp_rate;
  27. uint32_t channel_mode;
  28. int playback_start;
  29. int capture_start;
  30. };
  31. #endif /*_MSM_PCM_VOICE_H*/