Tool/software: TI-RTOS
Hello,
I am trying to evaluate VEU comonent(ANR and ALC) of VOLIB. I was confused with the user's manual. My questions are:
1) the speech_samples for veuReceiveIn (void *veuInst, void *speech_samples) should be ulaw format or linear PCM? I see someone says it should be packed uLaw data in Forum. I expecte the uLaw samples in, and processed linear PCM data out after this veuReceiveIn is called, is it correct?
2) I expecte the linear PCM samples in, and processed uLaw data out after this veuSendIn (void *veuInst, void *vsend_in, void *vrecv_in, void *vsend_out, const tint *comp_table_ptr) is called, is it correct? why there are two inputs in this function?
3) veuReceiveIn and veuSendIn have to be used together?
I modified the code: vesusm.c to be able to run on my OMAP-L138 DSP. if I just use one of two functions, but got nothing out, but if I use output of veuReceiveIn as input(*vrev_in) of veuSendIn , I got audio out, but seems to not processed for both of ANR and ALC.
here are the configurations I used:
/* Initialize config params */
veuConfig.frame_size = frame_size;
veuConfig.config_bitfield = veu_CTLM_VEU;
veuConfig.anr_level = 12; /* set ANR max attenuation to 12dB */
veuConfig.alc_send_level = -15; /* set ALC target level to -15dBm0 in Send path*/
veuConfig.alc_recv_level = -15; /* set ALC target level to -15dBm0 in Recv path*/
veuConfig.bulk_delay = 162; /* set bulk delay to 162ms */
veuConfig.waepl = 36; /* set WAEPL to 36dB */
veuConfig.fgc_send_gain = 0; /* set FGC gain to 0dB in Send path */
veuConfig.fgc_recv_gain = 0; /* set FGC gain to 0dB in Recv path */
case 1:
ctl.ctl_code = veu_CTL_MODE;
ctl.u.mode_ctl.bit_masks = 0x7; // enable ANR
ctl.u.mode_ctl.bit_values = 0x7; // enable ANR
ctl.ctl_code=veu_CTL_ANR_LEVEL;
ctl.u.anr_level = 12; // 12 dB
case 2:
ctl.ctl_code = veu_CTL_MODE;
ctl.u.mode_ctl.bit_masks = 0x127; // enable ANR and ALC
ctl.u.mode_ctl.bit_values = 0x127; // enable ANR
ctl.ctl_code=veu_CTL_ANR_LEVEL;
ctl.u.anr_level = 12; // 12 dB
ctl.ctl_code=veu_CTL_ALC_SEND_LEVEL;
ctl.u.alc_level = -15; // 12 dB
ctl.ctl_code=veu_CTL_ALC_RECV_LEVEL;
ctl.u.alc_level = -15; // 12 dB
what else I should set?
Your help is greatly appreciated!