18d6344f9Sopenharmony_ci/* 28d6344f9Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 38d6344f9Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 48d6344f9Sopenharmony_ci * you may not use this file except in compliance with the License. 58d6344f9Sopenharmony_ci * You may obtain a copy of the License at 68d6344f9Sopenharmony_ci * 78d6344f9Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 88d6344f9Sopenharmony_ci * 98d6344f9Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 108d6344f9Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 118d6344f9Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 128d6344f9Sopenharmony_ci * See the License for the specific language governing permissions and 138d6344f9Sopenharmony_ci * limitations under the License. 148d6344f9Sopenharmony_ci */ 158d6344f9Sopenharmony_ci 168d6344f9Sopenharmony_ci#ifndef ALSA_SND_COMMON_H 178d6344f9Sopenharmony_ci#define ALSA_SND_COMMON_H 188d6344f9Sopenharmony_ci 198d6344f9Sopenharmony_ci/* Playback Path */ 208d6344f9Sopenharmony_ci#define SND_NUMID_PLAYBACK_PATH 1 218d6344f9Sopenharmony_ci#define SND_ELEM_PLAYBACK_PATH "Playback Path" 228d6344f9Sopenharmony_ci#define SND_OUT_CARD_OFF "0" /* close play path */ 238d6344f9Sopenharmony_ci#define SND_OUT_CARD_RCV "1" /* speaker */ 248d6344f9Sopenharmony_ci#define SND_OUT_CARD_SPK "2" /* speaker */ 258d6344f9Sopenharmony_ci#define SND_OUT_CARD_HP "3" /* headphone */ 268d6344f9Sopenharmony_ci#define SND_OUT_CARD_HP_NO_MIC "4" /* headphone */ 278d6344f9Sopenharmony_ci#define SND_OUT_CARD_BT "5" /* bluetooth (Don't set!!!) */ 288d6344f9Sopenharmony_ci#define SND_OUT_CARD_SPK_HP "6" /* speaker and headphone */ 298d6344f9Sopenharmony_ci#define SND_OUT_CARD_RING_SPK "7" /* speaker */ 308d6344f9Sopenharmony_ci#define SND_OUT_CARD_RING_HP "8" /* headphone */ 318d6344f9Sopenharmony_ci#define SND_OUT_CARD_RING_HP_NO_MIC "9" /* headphone */ 328d6344f9Sopenharmony_ci#define SND_OUT_CARD_RING_SPK_HP "10" /* speaker and headphone */ 338d6344f9Sopenharmony_ci 348d6344f9Sopenharmony_ci/* Capture MIC Path */ 358d6344f9Sopenharmony_ci#define SND_NUMID_CAPUTRE_MIC_PATH 2 368d6344f9Sopenharmony_ci#define SND_ELEM_CAPUTRE_MIC_PATH "Capture MIC Path" 378d6344f9Sopenharmony_ci#define SND_IN_CARD_MIC_OFF "0" /* close capture path */ 388d6344f9Sopenharmony_ci#define SND_IN_CARD_MAIN_MIC "1" /* main mic */ 398d6344f9Sopenharmony_ci#define SND_IN_CARD_HANDS_FREE_MIC "2" /* hands free mic */ 408d6344f9Sopenharmony_ci#define SND_IN_CARD_BT_SCO_MIC "3" /* bluetooth sco mic (Don't set!!!) */ 418d6344f9Sopenharmony_ci 428d6344f9Sopenharmony_ci/* DACL Playback Volume */ 438d6344f9Sopenharmony_ci#define SND_NUMID_DACL_PLAYBACK_VOL 3 448d6344f9Sopenharmony_ci#define SND_ELEM_DACL_PLAYBACK_VOL "DACL Playback Volume" 458d6344f9Sopenharmony_ci 468d6344f9Sopenharmony_ci/* DACR Playback Volume */ 478d6344f9Sopenharmony_ci#define SND_NUMID_DACR_PLAYBACK_VOL 4 488d6344f9Sopenharmony_ci#define SND_ELEM_DACR_PLAYBACK_VOL "DACR Playback Volume" 498d6344f9Sopenharmony_ci 508d6344f9Sopenharmony_ci/* DACL Capture Volume */ 518d6344f9Sopenharmony_ci#define SND_NUMID_DACL_CAPTURE_VOL 5 528d6344f9Sopenharmony_ci#define SND_ELEM_DACL_CAPTURE_VOL "DACL Capture Volume" 538d6344f9Sopenharmony_ci 548d6344f9Sopenharmony_ci/* DACR Capture Volume */ 558d6344f9Sopenharmony_ci#define SND_NUMID_DACR_CAPTURE_VOL 6 568d6344f9Sopenharmony_ci#define SND_ELEM_DACR_CAPTURE_VOL "DACR Capture Volume" 578d6344f9Sopenharmony_ci 588d6344f9Sopenharmony_ci#endif /* ALSA_SND_COMMON_H */ 59