blob: 60f5adcf5757e121ce94f16681172c109dc1773e [file] [log] [blame]
Asish Bhattacharya8e2277f2017-07-20 18:31:55 +05301/* 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 Kasam605b42f2017-08-01 22:02:15 +053014#include <dsp/apr_audio-v2.h>
Asish Bhattacharya8e2277f2017-07-20 18:31:55 +053015
16enum {
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
27struct 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*/