Lines Matching refs:lfloat
190 snd_pcm_lfloat_t *lfloat = pcm->private_data; in snd_pcm_lfloat_hw_refine_cprepare() local
200 snd_pcm_format_linear(lfloat->sformat) ? in snd_pcm_lfloat_hw_refine_cprepare()
213 snd_pcm_lfloat_t *lfloat = pcm->private_data; in snd_pcm_lfloat_hw_refine_sprepare() local
218 _snd_pcm_hw_params_set_format(sparams, lfloat->sformat); in snd_pcm_lfloat_hw_refine_sprepare()
271 snd_pcm_lfloat_t *lfloat = pcm->private_data; in snd_pcm_lfloat_hw_params() local
272 snd_pcm_t *slave = lfloat->plug.gen.slave; in snd_pcm_lfloat_hw_params()
289 lfloat->int32_idx = snd_pcm_linear_get_index(src_format, SND_PCM_FORMAT_S32); in snd_pcm_lfloat_hw_params()
290 lfloat->float32_idx = snd_pcm_lfloat_put_s32_index(dst_format); in snd_pcm_lfloat_hw_params()
291 lfloat->func = snd_pcm_lfloat_convert_integer_float; in snd_pcm_lfloat_hw_params()
293 lfloat->int32_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S32, dst_format); in snd_pcm_lfloat_hw_params()
294 lfloat->float32_idx = snd_pcm_lfloat_get_s32_index(src_format); in snd_pcm_lfloat_hw_params()
295 lfloat->func = snd_pcm_lfloat_convert_float_integer; in snd_pcm_lfloat_hw_params()
309 snd_pcm_lfloat_t *lfloat = pcm->private_data; in snd_pcm_lfloat_write_areas() local
312 lfloat->func(slave_areas, slave_offset, in snd_pcm_lfloat_write_areas()
315 lfloat->int32_idx, lfloat->float32_idx); in snd_pcm_lfloat_write_areas()
329 snd_pcm_lfloat_t *lfloat = pcm->private_data; in snd_pcm_lfloat_read_areas() local
332 lfloat->func(areas, offset, in snd_pcm_lfloat_read_areas()
335 lfloat->int32_idx, lfloat->float32_idx); in snd_pcm_lfloat_read_areas()
342 snd_pcm_lfloat_t *lfloat = pcm->private_data; in snd_pcm_lfloat_dump() local
344 snd_pcm_format_name(lfloat->sformat)); in snd_pcm_lfloat_dump()
350 snd_pcm_dump(lfloat->plug.gen.slave, out); in snd_pcm_lfloat_dump()
386 snd_pcm_lfloat_t *lfloat; in snd_pcm_lfloat_open() local
392 lfloat = calloc(1, sizeof(snd_pcm_lfloat_t)); in snd_pcm_lfloat_open()
393 if (!lfloat) { in snd_pcm_lfloat_open()
396 snd_pcm_plugin_init(&lfloat->plug); in snd_pcm_lfloat_open()
397 lfloat->sformat = sformat; in snd_pcm_lfloat_open()
398 lfloat->plug.read = snd_pcm_lfloat_read_areas; in snd_pcm_lfloat_open()
399 lfloat->plug.write = snd_pcm_lfloat_write_areas; in snd_pcm_lfloat_open()
400 lfloat->plug.undo_read = snd_pcm_plugin_undo_read_generic; in snd_pcm_lfloat_open()
401 lfloat->plug.undo_write = snd_pcm_plugin_undo_write_generic; in snd_pcm_lfloat_open()
402 lfloat->plug.gen.slave = slave; in snd_pcm_lfloat_open()
403 lfloat->plug.gen.close_slave = close_slave; in snd_pcm_lfloat_open()
407 free(lfloat); in snd_pcm_lfloat_open()
412 pcm->private_data = lfloat; in snd_pcm_lfloat_open()
416 snd_pcm_set_hw_ptr(pcm, &lfloat->plug.hw_ptr, -1, 0); in snd_pcm_lfloat_open()
417 snd_pcm_set_appl_ptr(pcm, &lfloat->plug.appl_ptr, -1, 0); in snd_pcm_lfloat_open()