summaryrefslogtreecommitdiff
path: root/include/libaudio/audiohal/audio_streams.h
blob: 6118aa5eb7be82681f62f870034ea4a91c292983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * Copyright (C) 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __EXYNOS_AUDIOHAL_STREAM_H__
#define __EXYNOS_AUDIOHAL_STREAM_H__

/*
 * Audio Streams based on Audio Profile in Audio Policy Configuration
 */
typedef enum {
    ASTREAM_MIN                   = 0,

    ASTREAM_PLAYBACK_PRIMARY      = 0,  // For Primary Output Profile
    ASTREAM_PLAYBACK_FAST,              // For Fast Output Profile
    ASTREAM_PLAYBACK_DEEP_BUFFER,       // For Deep Buffer Output Profile
    ASTREAM_PLAYBACK_LOW_LATENCY,       // For Low Latency Output Profile
    ASTREAM_PLAYBACK_COMPR_OFFLOAD,     // For Compress Offload Profile
    ASTREAM_PLAYBACK_MMAP,              // For MMAP NoIRQ Output Profile
    ASTREAM_PLAYBACK_USB_DEVICE,        // For USB Output Profile
    ASTREAM_PLAYBACK_AUX_DIGITAL,       // For HDMI/DP Profile

    ASTREAM_CAPTURE_PRIMARY,            // For Primary Input Profile
    ASTREAM_CAPTURE_CALL,               // For Call Recording
    ASTREAM_CAPTURE_LOW_LATENCY,        // For Low Latency Input Profile
    ASTREAM_CAPTURE_MMAP,               // For MMAP NoIRQ Input Profile
    ASTREAM_CAPTURE_USB_DEVICE,         // For USB Input Profile
    ASTREAM_CAPTURE_FM,                 // For FM Radio Recording
#ifdef SUPPORT_STHAL_INTERFACE
    ASTREAM_CAPTURE_HOTWORD,            // For VTS seamless Input Profile
#endif

    ASTREAM_NONE,
    ASTREAM_MAX,
    ASTREAM_CNT                   = ASTREAM_MAX
} audio_stream_type;

#endif  // __EXYNOS_AUDIOHAL_STREAM_H__