Meng Wang | 43bbb87 | 2018-12-10 12:32:05 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 2 | /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. |
Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 3 | */ |
| 4 | #ifndef _MSM_PCM_VOICE_H |
| 5 | #define _MSM_PCM_VOICE_H |
Laxminath Kasam | 605b42f | 2017-08-01 22:02:15 +0530 | [diff] [blame] | 6 | #include <dsp/apr_audio-v2.h> |
Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 7 | |
| 8 | enum { |
| 9 | VOICE_SESSION_INDEX, |
| 10 | VOLTE_SESSION_INDEX, |
| 11 | VOICE2_SESSION_INDEX, |
| 12 | QCHAT_SESSION_INDEX, |
| 13 | VOWLAN_SESSION_INDEX, |
| 14 | VOICEMMODE1_INDEX, |
| 15 | VOICEMMODE2_INDEX, |
| 16 | VOICE_SESSION_INDEX_MAX, |
| 17 | }; |
| 18 | |
| 19 | struct msm_voice { |
| 20 | struct snd_pcm_substream *playback_substream; |
| 21 | struct snd_pcm_substream *capture_substream; |
| 22 | |
| 23 | int instance; |
| 24 | |
| 25 | struct mutex lock; |
| 26 | |
| 27 | uint32_t samp_rate; |
| 28 | uint32_t channel_mode; |
| 29 | |
| 30 | int playback_start; |
| 31 | int capture_start; |
| 32 | }; |
| 33 | |
| 34 | #endif /*_MSM_PCM_VOICE_H*/ |