1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __EXYNOS_AUDIOHAL_STREAM_H__
18 #define __EXYNOS_AUDIOHAL_STREAM_H__
19 
20 /*
21  * Audio Streams based on Audio Profile in Audio Policy Configuration
22  */
23 typedef enum {
24     ASTREAM_MIN                   = 0,
25 
26     ASTREAM_PLAYBACK_PRIMARY      = 0,  // For Primary Output Profile
27     ASTREAM_PLAYBACK_FAST,              // For Fast Output Profile
28     ASTREAM_PLAYBACK_DEEP_BUFFER,       // For Deep Buffer Output Profile
29     ASTREAM_PLAYBACK_LOW_LATENCY,       // For Low Latency Output Profile
30     ASTREAM_PLAYBACK_COMPR_OFFLOAD,     // For Compress Offload Profile
31     ASTREAM_PLAYBACK_MMAP,              // For MMAP NoIRQ Output Profile
32     ASTREAM_PLAYBACK_USB_DEVICE,        // For USB Output Profile
33     ASTREAM_PLAYBACK_AUX_DIGITAL,       // For HDMI/DP Profile
34 
35     ASTREAM_CAPTURE_PRIMARY,            // For Primary Input Profile
36     ASTREAM_CAPTURE_CALL,               // For Call Recording
37     ASTREAM_CAPTURE_LOW_LATENCY,        // For Low Latency Input Profile
38     ASTREAM_CAPTURE_MMAP,               // For MMAP NoIRQ Input Profile
39     ASTREAM_CAPTURE_USB_DEVICE,         // For USB Input Profile
40     ASTREAM_CAPTURE_FM,                 // For FM Radio Recording
41 #ifdef SUPPORT_STHAL_INTERFACE
42     ASTREAM_CAPTURE_HOTWORD,            // For VTS seamless Input Profile
43 #endif
44 
45     ASTREAM_NONE,
46     ASTREAM_MAX,
47     ASTREAM_CNT                   = ASTREAM_MAX
48 } audio_stream_type;
49 
50 #endif  // __EXYNOS_AUDIOHAL_STREAM_H__
51