Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2012-2015, 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 |
Laxminath Kasam | 605b42f | 2017-08-01 22:02:15 +0530 | [diff] [blame] | 14 | #include <dsp/apr_audio-v2.h> |
Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 15 | |
| 16 | enum { |
| 17 | VOICE_SESSION_INDEX, |
| 18 | VOLTE_SESSION_INDEX, |
| 19 | VOICE2_SESSION_INDEX, |
| 20 | QCHAT_SESSION_INDEX, |
| 21 | VOWLAN_SESSION_INDEX, |
| 22 | VOICEMMODE1_INDEX, |
| 23 | VOICEMMODE2_INDEX, |
| 24 | VOICE_SESSION_INDEX_MAX, |
| 25 | }; |
| 26 | |
| 27 | struct msm_voice { |
| 28 | struct snd_pcm_substream *playback_substream; |
| 29 | struct snd_pcm_substream *capture_substream; |
| 30 | |
| 31 | int instance; |
| 32 | |
| 33 | struct mutex lock; |
| 34 | |
| 35 | uint32_t samp_rate; |
| 36 | uint32_t channel_mode; |
| 37 | |
| 38 | int playback_start; |
| 39 | int capture_start; |
| 40 | }; |
| 41 | |
| 42 | #endif /*_MSM_PCM_VOICE_H*/ |