msm-pcm-voice-v2.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (c) 2012-2014, 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-v2.h>
  15. enum {
  16. VOICE_SESSION_INDEX,
  17. VOLTE_SESSION_INDEX,
  18. VOICE2_SESSION_INDEX,
  19. QCHAT_SESSION_INDEX,
  20. VOWLAN_SESSION_INDEX,
  21. VOICE_SESSION_INDEX_MAX,
  22. };
  23. struct msm_voice {
  24. struct snd_pcm_substream *playback_substream;
  25. struct snd_pcm_substream *capture_substream;
  26. int instance;
  27. struct mutex lock;
  28. uint32_t samp_rate;
  29. uint32_t channel_mode;
  30. int playback_start;
  31. int capture_start;
  32. };
  33. #endif /*_MSM_PCM_VOICE_H*/