resetting manifest requested domain to floor
[platform/core/multimedia/avsystem.git] / include / avsys-audio-ascenario.h
1 /*\r
2  * avsystem\r
3  *\r
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
5  *\r
6  * Contact: Jonghyuk Choi <jhchoi.choi@samsung.com>\r
7  *\r
8  * Licensed under the Apache License, Version 2.0 (the "License");\r
9  * you may not use this file except in compliance with the License.\r
10  * You may obtain a copy of the License at\r
11  *\r
12  * http://www.apache.org/licenses/LICENSE-2.0\r
13  *\r
14  * Unless required by applicable law or agreed to in writing, software\r
15  * distributed under the License is distributed on an "AS IS" BASIS,\r
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17  * See the License for the specific language governing permissions and\r
18  * limitations under the License.\r
19  *\r
20  */\r
21 \r
22 #ifndef __AVSYS_AUDIO_ASCENARIO_H__
23 #define __AVSYS_AUDIO_ASCENARIO_H__
24 \r
25 typedef enum {\r
26         ASCN_RESET_NONE = 0,\r
27         ASCN_RESET_ALL,\r
28         ASCN_RESET_PLAYBACK,\r
29         ASCN_RESET_CAPTURE,\r
30         ASCN_RESET_MODEM,\r
31 }AscnResetType;\r
32
33 #define ASCN_STR_RESET                                  "reset"
34 #define ASCN_STR_RESET_PLAYBACK                 "reset_playback"
35 #define ASCN_STR_RESET_CAPTURE                  "reset_capture"
36 #define ASCN_STR_PLAYBACK_MUTE                  "mute_playback"
37 #define ASCN_STR_PLAYBACK_UNMUTE                "unmute_playback"
38 #define ASCN_CODEC_DISABLE_ON_SUSPEND   "codec_disable_on_suspend"
39
40 #define IN      0
41 #define OUT     16
42
43 #define INPUT_CH_0                      ((1 << (0 + IN)))       /* Main Mic.         0x00000001 */
44 #define INPUT_CH_1                      ((1 << (1 + IN)))       /* Sub Mic.          0x00000002 */
45 #define INPUT_CH_2                      ((1 << (2 + IN)))       /* Stereo Mic. ,     0x00000004 */
46 #define INPUT_CH_3                      ((1 << (3 + IN)))       /* Ear Mic. ,        0x00000008 */
47 #define INPUT_CH_4                      ((1 << (4 + IN)))       /* BT Mic.           0x00000010 */
48 #define INPUT_CH_5                      ((1 << (5 + IN)))       /* AP                0x00000020 */
49 #define INPUT_CH_6                      ((1 << (6 + IN)))       /* CP                0x00000040 */
50 #define INPUT_CH_7                      ((1 << (7 + IN)))       /* FM Radio          0x00000080 */
51 #define INPUT_CH_8                      ((1 << (8 + IN)))       /* Reserved */
52 #define INPUT_CH_9                      ((1 << (9 + IN)))       /* Reserved */
53
54 #define OUTPUT_CH_0                     ((1 << (0 + OUT)))      /* Headset (Earphone)    0x00010000 */
55 #define OUTPUT_CH_1                     ((1 << (1 + OUT)))      /* Left Speaker ,        0x00020000 */
56 #define OUTPUT_CH_2                     ((1 << (2 + OUT)))      /* Right Speaker ,       0x00040000 */
57 #define OUTPUT_CH_3                     ((1 << (3 + OUT)))      /* Stereo Speaker ,      0x00080000 */
58 #define OUTPUT_CH_4                     ((1 << (4 + OUT)))      /* Receiver (Mono) ,     0x00100000 */
59 #define OUTPUT_CH_5                     ((1 << (5 + OUT)))      /* BT Headset            0x00200000 */
60 #define OUTPUT_CH_6                     ((1 << (6 + OUT)))      /* CP                    0x00400000 */
61 #define OUTPUT_CH_7                     ((1 << (7 + OUT)))      /* AP                    0x00800000 */
62 #define OUTPUT_CH_8                     ((1 << (8 + OUT)))      /* Gain */
63 #define OUTPUT_CH_9                     ((1 << (9 + OUT)))      /* Video call gain */
64 #define OUTPUT_CH_10            ((1 << (10 + OUT)))     /* Video call gain */
65 #define OUTPUT_CH_11            ((1 << (11 + OUT)))     /* HDMI */\r
66 #define OUTPUT_CH_12            ((1 << (12 + OUT)))     /* Dock */
67 #define OUTPUT_CH_13            ((1 << (13 + OUT)))     /* Call alert Gain */
68
69 #define INPUT_MAIN_MIC          (INPUT_CH_0)
70 #define INPUT_SUB_MIC           (INPUT_CH_1)
71 #define INPUT_STEREO_MIC        (INPUT_CH_2)
72 #define INPUT_EAR_MIC           (INPUT_CH_3)
73 #define INPUT_BT_MIC            (INPUT_CH_4)
74 #define INPUT_AP                        (INPUT_CH_5)
75 #define INPUT_CP                        (INPUT_CH_6)
76 #define INPUT_FMRADIO           (INPUT_CH_7)
77
78 #define OUTPUT_HEADSET          (OUTPUT_CH_0)
79 #define OUTPUT_LEFT_SPK         (OUTPUT_CH_1)
80 #define OUTPUT_RIGHT_SPK        (OUTPUT_CH_2)
81 #define OUTPUT_STEREO_SPK       (OUTPUT_CH_3)
82 #define OUTPUT_RECV                     (OUTPUT_CH_4)
83 #define OUTPUT_BT_HEADSET       (OUTPUT_CH_5)
84 #define OUTPUT_CP                       (OUTPUT_CH_6)
85 #define OUTPUT_AP                       (OUTPUT_CH_7)
86 #define OUTPUT_HDMI                     (OUTPUT_CH_11)\r
87 #define OUTPUT_DOCK                     (OUTPUT_CH_12)
88
89 #define GAIN_MODE                       (OUTPUT_CH_8)
90 #define GAIN_VIDEO_CALL         (OUTPUT_CH_9)
91 #define GAIN_VOICE_CALL         (OUTPUT_CH_10)
92 #define GAIN_CALLALERT          (OUTPUT_CH_13)
93 \r
94 /* function prototype */\r
95 int avsys_audio_ascn_bulk_set(int * bulk, int bulk_cnt, AscnResetType clear);\r
96 int avsys_audio_ascn_single_set(char * str);\r
97 \r
98 #endif /* __AVSYS_AUDIO_ASCENARIO_H__ */