Lines Matching full:src
112 [SRC] = { .create = src_mgr_create,
241 struct src_mgr *src_mgr = atc->rsc_mgrs[SRC]; in atc_pcm_playback_prepare()
245 struct src *src; in atc_pcm_playback_prepare() local
255 /* Get SRC resource */ in atc_pcm_playback_prepare()
259 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in atc_pcm_playback_prepare()
265 src = apcm->src; in atc_pcm_playback_prepare()
266 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare()
267 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare()
268 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare()
270 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare()
295 src = apcm->src; in atc_pcm_playback_prepare()
299 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare()
302 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare()
303 if (!src) in atc_pcm_playback_prepare()
304 src = apcm->src; in atc_pcm_playback_prepare()
319 struct src_mgr *src_mgr = atc->rsc_mgrs[SRC]; in atc_pcm_release_resources()
360 if (apcm->src) { in atc_pcm_release_resources()
361 src_mgr->put_src(src_mgr, apcm->src); in atc_pcm_release_resources()
362 apcm->src = NULL; in atc_pcm_release_resources()
377 struct src *src = apcm->src; in atc_pcm_playback_start() local
383 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_start()
386 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start()
387 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start()
388 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start()
389 src->ops->set_cisz(src, max_cisz); in atc_pcm_playback_start()
391 src->ops->set_bm(src, 1); in atc_pcm_playback_start()
392 src->ops->set_state(src, SRC_STATE_INIT); in atc_pcm_playback_start()
393 src->ops->commit_write(src); in atc_pcm_playback_start()
401 struct src *src; in atc_pcm_stop() local
406 src = apcm->src; in atc_pcm_stop()
407 src->ops->set_bm(src, 0); in atc_pcm_stop()
408 src->ops->set_state(src, SRC_STATE_OFF); in atc_pcm_stop()
409 src->ops->commit_write(src); in atc_pcm_stop()
413 src = apcm->srccs[i]; in atc_pcm_stop()
414 src->ops->set_bm(src, 0); in atc_pcm_stop()
415 src->ops->set_state(src, SRC_STATE_OFF); in atc_pcm_stop()
416 src->ops->commit_write(src); in atc_pcm_stop()
428 struct src *src = apcm->src; in atc_pcm_playback_position() local
432 if (!src) in atc_pcm_playback_position()
434 position = src->ops->get_ca(src); in atc_pcm_playback_position()
444 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_position()
468 if (1 == atc->msr) { /* FIXME: do we really need SRC here if pitch==1 */ in setup_src_node_conf()
501 struct src_mgr *src_mgr = atc->rsc_mgrs[SRC]; in atc_pcm_capture_get_resources()
506 struct src *src; in atc_pcm_capture_get_resources() local
565 (struct src **)&apcm->srccs[i]); in atc_pcm_capture_get_resources()
569 src = apcm->srccs[i]; in atc_pcm_capture_get_resources()
571 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
572 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_capture_get_resources()
573 src->ops->set_vo(src, src_node_conf[i/multi].vo); in atc_pcm_capture_get_resources()
620 /* Allocate a SRC for writing data to host memory */ in atc_pcm_capture_get_resources()
624 err = src_mgr->get_src(src_mgr, &src_dsc, (struct src **)&apcm->src); in atc_pcm_capture_get_resources()
628 src = apcm->src; in atc_pcm_capture_get_resources()
629 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
645 struct src *src; in atc_pcm_capture_prepare() local
680 src = apcm->srccs[i]; in atc_pcm_capture_prepare()
683 srcimp->ops->map(srcimp, src, out_ports[i%multi]); in atc_pcm_capture_prepare()
684 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in atc_pcm_capture_prepare()
705 srcimp->ops->map(srcimp, apcm->src, in atc_pcm_capture_prepare()
712 srcimp->ops->map(srcimp, apcm->src, out_ports[i]); in atc_pcm_capture_prepare()
723 struct src *src; in atc_pcm_capture_start() local
724 struct src_mgr *src_mgr = atc->rsc_mgrs[SRC]; in atc_pcm_capture_start()
734 src = apcm->srccs[i]; in atc_pcm_capture_start()
735 src->ops->set_pm(src, ((i%multi) != (multi-1))); in atc_pcm_capture_start()
736 src_mgr->src_disable(src_mgr, src); in atc_pcm_capture_start()
739 /* Set up recording SRC */ in atc_pcm_capture_start()
740 src = apcm->src; in atc_pcm_capture_start()
741 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_capture_start()
743 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_capture_start()
744 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_capture_start()
745 src->ops->set_ca(src, apcm->vm_block->addr); in atc_pcm_capture_start()
746 src_mgr->src_disable(src_mgr, src); in atc_pcm_capture_start()
753 src = apcm->srccs[i]; in atc_pcm_capture_start()
754 src->ops->set_state(src, SRC_STATE_RUN); in atc_pcm_capture_start()
755 src->ops->commit_write(src); in atc_pcm_capture_start()
756 src_mgr->src_enable_s(src_mgr, src); in atc_pcm_capture_start()
758 src = apcm->src; in atc_pcm_capture_start()
759 src->ops->set_bm(src, 1); in atc_pcm_capture_start()
760 src->ops->set_state(src, SRC_STATE_RUN); in atc_pcm_capture_start()
761 src->ops->commit_write(src); in atc_pcm_capture_start()
762 src_mgr->src_enable_s(src_mgr, src); in atc_pcm_capture_start()
774 struct src *src = apcm->src; in atc_pcm_capture_position() local
776 if (!src) in atc_pcm_capture_position()
778 return src->ops->get_ca(src) - apcm->vm_block->addr; in atc_pcm_capture_position()
784 struct src_mgr *src_mgr = atc->rsc_mgrs[SRC]; in spdif_passthru_playback_get_resources()
788 struct src *src; in spdif_passthru_playback_get_resources() local
796 /* Get SRC resource */ in spdif_passthru_playback_get_resources()
803 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in spdif_passthru_playback_get_resources()
808 src = apcm->src; in spdif_passthru_playback_get_resources()
809 src->ops->set_pitch(src, pitch); in spdif_passthru_playback_get_resources()
810 src->ops->set_rom(src, select_rom(pitch)); in spdif_passthru_playback_get_resources()
811 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in spdif_passthru_playback_get_resources()
813 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in spdif_passthru_playback_get_resources()
814 src->ops->set_bp(src, 1); in spdif_passthru_playback_get_resources()
895 struct src *src; in spdif_passthru_playback_prepare() local
915 src = apcm->src; in spdif_passthru_playback_prepare()
918 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in spdif_passthru_playback_prepare()
919 src = src->ops->next_interleave(src); in spdif_passthru_playback_prepare()
920 if (!src) in spdif_passthru_playback_prepare()
921 src = apcm->src; in spdif_passthru_playback_prepare()
941 struct src *src; in atc_select_line_in() local
951 src = atc->srcs[2]; in atc_select_line_in()
952 mixer->set_input_left(mixer, MIX_LINE_IN, &src->rsc); in atc_select_line_in()
953 src = atc->srcs[3]; in atc_select_line_in()
954 mixer->set_input_right(mixer, MIX_LINE_IN, &src->rsc); in atc_select_line_in()
963 struct src *src; in atc_select_mic_in() local
973 src = atc->srcs[2]; in atc_select_mic_in()
974 mixer->set_input_left(mixer, MIX_MIC_IN, &src->rsc); in atc_select_mic_in()
975 src = atc->srcs[3]; in atc_select_mic_in()
976 mixer->set_input_right(mixer, MIX_MIC_IN, &src->rsc); in atc_select_mic_in()
1189 src_mgr = atc->rsc_mgrs[SRC]; in atc_release_resources()
1409 src_mgr = atc->rsc_mgrs[SRC]; in atc_get_resources()
1415 (struct src **)&atc->srcs[i]); in atc_get_resources()
1449 struct src **srcs, struct srcimp **srcimps) in atc_connect_dai()
1452 struct src *src; in atc_connect_dai() local
1459 src = srcs[i]; in atc_connect_dai()
1461 srcimp->ops->map(srcimp, src, rscs[i]); in atc_connect_dai()
1462 src_mgr->src_disable(src_mgr, src); in atc_connect_dai()
1467 src = srcs[0]; in atc_connect_dai()
1468 src->ops->set_pm(src, 1); in atc_connect_dai()
1470 src = srcs[i]; in atc_connect_dai()
1471 src->ops->set_state(src, SRC_STATE_RUN); in atc_connect_dai()
1472 src->ops->commit_write(src); in atc_connect_dai()
1473 src_mgr->src_enable_s(src_mgr, src); in atc_connect_dai()
1490 struct src *src; in atc_connect_resources() local
1506 atc_connect_dai(atc->rsc_mgrs[SRC], dai, in atc_connect_resources()
1507 (struct src **)&atc->srcs[2], in atc_connect_resources()
1509 src = atc->srcs[2]; in atc_connect_resources()
1510 mixer->set_input_left(mixer, MIX_LINE_IN, &src->rsc); in atc_connect_resources()
1511 src = atc->srcs[3]; in atc_connect_resources()
1512 mixer->set_input_right(mixer, MIX_LINE_IN, &src->rsc); in atc_connect_resources()
1517 atc_connect_dai(atc->rsc_mgrs[SRC], dai, in atc_connect_resources()
1518 (struct src **)&atc->srcs[4], in atc_connect_resources()
1520 src = atc->srcs[4]; in atc_connect_resources()
1521 mixer->set_input_left(mixer, MIX_MIC_IN, &src->rsc); in atc_connect_resources()
1522 src = atc->srcs[5]; in atc_connect_resources()
1523 mixer->set_input_right(mixer, MIX_MIC_IN, &src->rsc); in atc_connect_resources()
1527 atc_connect_dai(atc->rsc_mgrs[SRC], dai, in atc_connect_resources()
1528 (struct src **)&atc->srcs[0], in atc_connect_resources()
1531 src = atc->srcs[0]; in atc_connect_resources()
1532 mixer->set_input_left(mixer, MIX_SPDIF_IN, &src->rsc); in atc_connect_resources()
1533 src = atc->srcs[1]; in atc_connect_resources()
1534 mixer->set_input_right(mixer, MIX_SPDIF_IN, &src->rsc); in atc_connect_resources()