1/* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16#ifndef ALSA_SND_COMMON_H 17#define ALSA_SND_COMMON_H 18 19/* Playback Path */ 20#define SND_NUMID_PLAYBACK_PATH 1 21#define SND_ELEM_PLAYBACK_PATH "Playback Path" 22#define SND_OUT_CARD_OFF "0" /* close play path */ 23#define SND_OUT_CARD_RCV "1" /* speaker */ 24#define SND_OUT_CARD_SPK "2" /* speaker */ 25#define SND_OUT_CARD_HP "3" /* headphone */ 26#define SND_OUT_CARD_HP_NO_MIC "4" /* headphone */ 27#define SND_OUT_CARD_BT "5" /* bluetooth (Don't set!!!) */ 28#define SND_OUT_CARD_SPK_HP "6" /* speaker and headphone */ 29#define SND_OUT_CARD_RING_SPK "7" /* speaker */ 30#define SND_OUT_CARD_RING_HP "8" /* headphone */ 31#define SND_OUT_CARD_RING_HP_NO_MIC "9" /* headphone */ 32#define SND_OUT_CARD_RING_SPK_HP "10" /* speaker and headphone */ 33 34/* Capture MIC Path */ 35#define SND_NUMID_CAPUTRE_MIC_PATH 2 36#define SND_ELEM_CAPUTRE_MIC_PATH "Capture MIC Path" 37#define SND_IN_CARD_MIC_OFF "0" /* close capture path */ 38#define SND_IN_CARD_MAIN_MIC "1" /* main mic */ 39#define SND_IN_CARD_HANDS_FREE_MIC "2" /* hands free mic */ 40#define SND_IN_CARD_BT_SCO_MIC "3" /* bluetooth sco mic (Don't set!!!) */ 41 42/* DACL Playback Volume */ 43#define SND_NUMID_DACL_PLAYBACK_VOL 3 44#define SND_ELEM_DACL_PLAYBACK_VOL "DACL Playback Volume" 45 46/* DACR Playback Volume */ 47#define SND_NUMID_DACR_PLAYBACK_VOL 4 48#define SND_ELEM_DACR_PLAYBACK_VOL "DACR Playback Volume" 49 50/* DACL Capture Volume */ 51#define SND_NUMID_DACL_CAPTURE_VOL 5 52#define SND_ELEM_DACL_CAPTURE_VOL "DACL Capture Volume" 53 54/* DACR Capture Volume */ 55#define SND_NUMID_DACR_CAPTURE_VOL 6 56#define SND_ELEM_DACR_CAPTURE_VOL "DACR Capture Volume" 57 58#endif /* ALSA_SND_COMMON_H */ 59