/**************************************************************************** * * Function Name: csl_caph_switch_obtain_given_channel * * Description: assign a given CAPH switch channel * ****************************************************************************/ CSL_CAPH_SWITCH_CHNL_e csl_caph_switch_obtain_given_channel( CSL_CAPH_SWITCH_CHNL_e chnl) { CSL_CAPH_SWITCH_CHNL_e chnl2; CAPH_SWITCH_CHNL_e chal_chnl; chal_chnl = csl_caph_switch_get_chalchnl(chnl); chal_chnl = chal_caph_switch_alloc_given_channel(handle, chal_chnl); chnl2 = csl_caph_switch_get_cslchnl(chal_chnl); aTrace(LOG_AUDIO_CSL, "%s ask %d get %d\n", __func__, chnl, chnl2); return chnl2; }
/**************************************************************************** * * Function Name: CSL_CAPH_SWITCH_CHNL_e csl_caph_switch_obtain_channel(void) * * Description: assign CAPH switch channel * ****************************************************************************/ CSL_CAPH_SWITCH_CHNL_e csl_caph_switch_obtain_channel(void) { CSL_CAPH_SWITCH_CHNL_e chnl = CSL_CAPH_SWITCH_NONE; CAPH_SWITCH_CHNL_e chal_chnl = CAPH_SWITCH_CH_VOID; chal_chnl = chal_caph_switch_alloc_channel(handle); chnl = csl_caph_switch_get_cslchnl(chal_chnl); aTrace(LOG_AUDIO_CSL, "csl_caph_switch_obtain_channel:: chnl = 0x%x\n", chnl); return chnl; }