Lines Matching refs:audio_device

85     int (*dec_setup)(void *p_comp, struct alsa_audio_device *audio_device);
122 static int pcm_setup(void *p_pcm, struct alsa_audio_device *audio_device) in pcm_setup() argument
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()
147 static int xa_device_init(struct alsa_audio_device *audio_device) in xa_device_init() argument
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 …af_comp_create(audio_device->dsp_device.p_adev, &audio_device->dsp_device.p_decoder, audio_device-… 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()
221 static int xa_device_close(struct alsa_audio_device *audio_device) in xa_device_close() argument
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 …XF_CHK_API(xaf_comp_get_status(NULL, audio_device->dsp_device.p_decoder, &comp_status, &audio_devi… in xa_device_close()
228 …s:%d,audio_device->dsp_device.comp_info.length:%d\n",(int)comp_status,audio_device->dsp_device.com… 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 …_API(xaf_comp_process(NULL, audio_device->dsp_device.p_decoder, (void *)audio_device->dsp_device.c… 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()