Lines Matching refs:dsp_device

103     struct xaf_dsp_device dsp_device;  member
127 param[1] = audio_device->dsp_device.pb_format.sample_rate; in pcm_setup()
129 param[3] = audio_device->dsp_device.pb_format.channels; in pcm_setup()
131 param[5] = audio_device->dsp_device.pb_format.pcm_width; in pcm_setup()
150 audio_device->dsp_device.p_adev = NULL; in xa_device_init()
151 audio_device->dsp_device.pb_format.sample_rate = 48000; in xa_device_init()
152 audio_device->dsp_device.pb_format.channels = 2; in xa_device_init()
153 audio_device->dsp_device.pb_format.pcm_width = 16; in xa_device_init()
154 audio_device->dsp_device.xafinitdone = 0; in xa_device_init()
157 audio_device->dsp_device.num_comp = NUM_COMP_IN_GRAPH; in xa_device_init()
165 audio_device->dsp_device.xaf_started =1; in xa_device_init()
166 audio_device->dsp_device.dec_id = "audio-decoder/pcm"; in xa_device_init()
167 audio_device->dsp_device.dec_setup = pcm_setup; in xa_device_init()
168 audio_device->dsp_device.mem_handle = mem_init(); //initialize memory handler in xa_device_init()
169 …XF_CHK_API(xaf_adev_open(&audio_device->dsp_device.p_adev, audio_frmwk_buf_size, audio_comp_buf_si… in xa_device_init()
171 …e(audio_device->dsp_device.p_adev, &audio_device->dsp_device.p_decoder, audio_device->dsp_device.d… in xa_device_init()
172 XF_CHK_API(audio_device->dsp_device.dec_setup(audio_device->dsp_device.p_decoder,audio_device)); in xa_device_init()
175 …XF_CHK_API(xaf_comp_process(audio_device->dsp_device.p_adev, audio_device->dsp_device.p_decoder, N… in xa_device_init()
184 void *p_comp=adev->dsp_device.p_decoder; in xa_device_run()
186 memcpy(adev->dsp_device.dec_inbuf[0],buffer,bytes); in xa_device_run()
187 adev->dsp_device.read_length=bytes; in xa_device_run()
189 if (adev->dsp_device.xafinitdone == 0) { in xa_device_run()
190 …K_API(xaf_comp_process(adev->dsp_device.p_adev, adev->dsp_device.p_decoder, adev->dsp_device.dec_i… in xa_device_run()
191 …PI(xaf_comp_get_status(adev->dsp_device.p_adev, adev->dsp_device.p_decoder, &adev->dsp_device.dec_… in xa_device_run()
192 ALOGE("PROXY:%s xaf_comp_get_status %d\n",__func__,adev->dsp_device.dec_status); in xa_device_run()
193 if (adev->dsp_device.dec_status == XAF_INIT_DONE) { in xa_device_run()
194 adev->dsp_device.xafinitdone = 1; in xa_device_run()
199 …XF_CHK_API(xaf_comp_process(NULL, adev->dsp_device.p_decoder, adev->dsp_device.dec_inbuf[0], adev-… in xa_device_run()
201 … XF_CHK_API(xaf_comp_get_status(NULL, p_comp, &comp_status, &adev->dsp_device.comp_info)); in xa_device_run()
208 void *p_buf = (void *)adev->dsp_device.comp_info.buf; in xa_device_run()
209 int size = adev->dsp_device.comp_info.length; in xa_device_run()
214 …CHK_API(xaf_comp_process(NULL, adev->dsp_device.p_decoder, (void *)adev->dsp_device.comp_info.buf,… in xa_device_run()
223 if (audio_device->dsp_device.xaf_started) { in xa_device_close()
225 audio_device->dsp_device.xaf_started=0; in xa_device_close()
227 …K_API(xaf_comp_get_status(NULL, audio_device->dsp_device.p_decoder, &comp_status, &audio_device->d… in xa_device_close()
228 …vice->dsp_device.comp_info.length:%d\n",(int)comp_status,audio_device->dsp_device.comp_info.length… in xa_device_close()
232 …XF_CHK_API(xaf_comp_process(NULL, audio_device->dsp_device.p_decoder, NULL, 0, XAF_INPUT_OVER_FLAG… in xa_device_close()
236 …_process(NULL, audio_device->dsp_device.p_decoder, (void *)audio_device->dsp_device.comp_info.buf,… in xa_device_close()
241 XF_CHK_API(xaf_comp_delete(audio_device->dsp_device.p_decoder)); in xa_device_close()
242 XF_CHK_API(xaf_adev_close(audio_device->dsp_device.p_adev, 0 /*unused*/)); in xa_device_close()
244 …XF_CHK_API(print_mem_mcps_info(audio_device->dsp_device.mem_handle, audio_device->dsp_device.num_c… in xa_device_close()
444 if (adev->dsp_device.p_adev != NULL) { in out_write()