OSDN Git Service

Merge android-4.4-p.205 (5169787) into msm-4.4
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / include / sound / q6audio-v2.h
1 /* Copyright (c) 2012-2013, 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
13 #ifndef _Q6_AUDIO_H_
14 #define _Q6_AUDIO_H_
15
16 #include <linux/qdsp6v2/apr.h>
17
18 enum {
19         LEGACY_PCM_MODE = 0,
20         LOW_LATENCY_PCM_MODE,
21         ULTRA_LOW_LATENCY_PCM_MODE,
22         ULL_POST_PROCESSING_PCM_MODE,
23 };
24
25
26 int q6audio_get_port_index(u16 port_id);
27
28 int q6audio_convert_virtual_to_portid(u16 port_id);
29
30 int q6audio_validate_port(u16 port_id);
31
32 int q6audio_is_digital_pcm_interface(u16 port_id);
33
34 int q6audio_get_port_id(u16 port_id);
35
36 #endif