Lines Matching refs:src

248 	struct src *src;  in atc_pcm_playback_prepare()  local
262 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in atc_pcm_playback_prepare()
268 src = apcm->src; in atc_pcm_playback_prepare()
269 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare()
270 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare()
271 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare()
273 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare()
298 src = apcm->src; in atc_pcm_playback_prepare()
302 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare()
305 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare()
306 if (!src) in atc_pcm_playback_prepare()
307 src = apcm->src; in atc_pcm_playback_prepare()
363 if (apcm->src) { in atc_pcm_release_resources()
364 src_mgr->put_src(src_mgr, apcm->src); in atc_pcm_release_resources()
365 apcm->src = NULL; in atc_pcm_release_resources()
380 struct src *src = apcm->src; in atc_pcm_playback_start() local
386 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_start()
389 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start()
390 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start()
391 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start()
392 src->ops->set_cisz(src, max_cisz); in atc_pcm_playback_start()
394 src->ops->set_bm(src, 1); in atc_pcm_playback_start()
395 src->ops->set_state(src, SRC_STATE_INIT); in atc_pcm_playback_start()
396 src->ops->commit_write(src); in atc_pcm_playback_start()
404 struct src *src; in atc_pcm_stop() local
409 src = apcm->src; in atc_pcm_stop()
410 src->ops->set_bm(src, 0); in atc_pcm_stop()
411 src->ops->set_state(src, SRC_STATE_OFF); in atc_pcm_stop()
412 src->ops->commit_write(src); in atc_pcm_stop()
416 src = apcm->srccs[i]; in atc_pcm_stop()
417 src->ops->set_bm(src, 0); in atc_pcm_stop()
418 src->ops->set_state(src, SRC_STATE_OFF); in atc_pcm_stop()
419 src->ops->commit_write(src); in atc_pcm_stop()
431 struct src *src = apcm->src; in atc_pcm_playback_position() local
435 if (!src) in atc_pcm_playback_position()
437 position = src->ops->get_ca(src); in atc_pcm_playback_position()
447 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_position()
509 struct src *src; in atc_pcm_capture_get_resources() local
568 (struct src **)&apcm->srccs[i]); in atc_pcm_capture_get_resources()
572 src = apcm->srccs[i]; in atc_pcm_capture_get_resources()
574 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
575 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_capture_get_resources()
576 src->ops->set_vo(src, src_node_conf[i/multi].vo); in atc_pcm_capture_get_resources()
627 err = src_mgr->get_src(src_mgr, &src_dsc, (struct src **)&apcm->src); in atc_pcm_capture_get_resources()
631 src = apcm->src; in atc_pcm_capture_get_resources()
632 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
648 struct src *src; in atc_pcm_capture_prepare() local
683 src = apcm->srccs[i]; in atc_pcm_capture_prepare()
686 srcimp->ops->map(srcimp, src, out_ports[i%multi]); in atc_pcm_capture_prepare()
687 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in atc_pcm_capture_prepare()
708 srcimp->ops->map(srcimp, apcm->src, in atc_pcm_capture_prepare()
715 srcimp->ops->map(srcimp, apcm->src, out_ports[i]); in atc_pcm_capture_prepare()
726 struct src *src; in atc_pcm_capture_start() local
737 src = apcm->srccs[i]; in atc_pcm_capture_start()
738 src->ops->set_pm(src, ((i%multi) != (multi-1))); in atc_pcm_capture_start()
739 src_mgr->src_disable(src_mgr, src); in atc_pcm_capture_start()
743 src = apcm->src; in atc_pcm_capture_start()
744 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_capture_start()
746 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_capture_start()
747 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_capture_start()
748 src->ops->set_ca(src, apcm->vm_block->addr); in atc_pcm_capture_start()
749 src_mgr->src_disable(src_mgr, src); in atc_pcm_capture_start()
756 src = apcm->srccs[i]; in atc_pcm_capture_start()
757 src->ops->set_state(src, SRC_STATE_RUN); in atc_pcm_capture_start()
758 src->ops->commit_write(src); in atc_pcm_capture_start()
759 src_mgr->src_enable_s(src_mgr, src); in atc_pcm_capture_start()
761 src = apcm->src; in atc_pcm_capture_start()
762 src->ops->set_bm(src, 1); in atc_pcm_capture_start()
763 src->ops->set_state(src, SRC_STATE_RUN); in atc_pcm_capture_start()
764 src->ops->commit_write(src); in atc_pcm_capture_start()
765 src_mgr->src_enable_s(src_mgr, src); in atc_pcm_capture_start()
777 struct src *src = apcm->src; in atc_pcm_capture_position() local
779 if (!src) in atc_pcm_capture_position()
781 return src->ops->get_ca(src) - apcm->vm_block->addr; in atc_pcm_capture_position()
791 struct src *src; in spdif_passthru_playback_get_resources() local
806 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in spdif_passthru_playback_get_resources()
811 src = apcm->src; in spdif_passthru_playback_get_resources()
812 src->ops->set_pitch(src, pitch); in spdif_passthru_playback_get_resources()
813 src->ops->set_rom(src, select_rom(pitch)); in spdif_passthru_playback_get_resources()
814 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in spdif_passthru_playback_get_resources()
816 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in spdif_passthru_playback_get_resources()
817 src->ops->set_bp(src, 1); in spdif_passthru_playback_get_resources()
898 struct src *src; in spdif_passthru_playback_prepare() local
918 src = apcm->src; in spdif_passthru_playback_prepare()
921 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in spdif_passthru_playback_prepare()
922 src = src->ops->next_interleave(src); in spdif_passthru_playback_prepare()
923 if (!src) in spdif_passthru_playback_prepare()
924 src = apcm->src; in spdif_passthru_playback_prepare()
944 struct src *src; in atc_select_line_in() local
954 src = atc->srcs[2]; in atc_select_line_in()
955 mixer->set_input_left(mixer, MIX_LINE_IN, &src->rsc); in atc_select_line_in()
956 src = atc->srcs[3]; in atc_select_line_in()
957 mixer->set_input_right(mixer, MIX_LINE_IN, &src->rsc); in atc_select_line_in()
966 struct src *src; in atc_select_mic_in() local
976 src = atc->srcs[2]; in atc_select_mic_in()
977 mixer->set_input_left(mixer, MIX_MIC_IN, &src->rsc); in atc_select_mic_in()
978 src = atc->srcs[3]; in atc_select_mic_in()
979 mixer->set_input_right(mixer, MIX_MIC_IN, &src->rsc); in atc_select_mic_in()
1418 (struct src **)&atc->srcs[i]); in atc_get_resources()
1452 struct src **srcs, struct srcimp **srcimps) in atc_connect_dai()
1455 struct src *src; in atc_connect_dai() local
1462 src = srcs[i]; in atc_connect_dai()
1464 srcimp->ops->map(srcimp, src, rscs[i]); in atc_connect_dai()
1465 src_mgr->src_disable(src_mgr, src); in atc_connect_dai()
1470 src = srcs[0]; in atc_connect_dai()
1471 src->ops->set_pm(src, 1); in atc_connect_dai()
1473 src = srcs[i]; in atc_connect_dai()
1474 src->ops->set_state(src, SRC_STATE_RUN); in atc_connect_dai()
1475 src->ops->commit_write(src); in atc_connect_dai()
1476 src_mgr->src_enable_s(src_mgr, src); in atc_connect_dai()
1493 struct src *src; in atc_connect_resources() local
1510 (struct src **)&atc->srcs[2], in atc_connect_resources()
1512 src = atc->srcs[2]; in atc_connect_resources()
1513 mixer->set_input_left(mixer, MIX_LINE_IN, &src->rsc); in atc_connect_resources()
1514 src = atc->srcs[3]; in atc_connect_resources()
1515 mixer->set_input_right(mixer, MIX_LINE_IN, &src->rsc); in atc_connect_resources()
1521 (struct src **)&atc->srcs[4], in atc_connect_resources()
1523 src = atc->srcs[4]; in atc_connect_resources()
1524 mixer->set_input_left(mixer, MIX_MIC_IN, &src->rsc); in atc_connect_resources()
1525 src = atc->srcs[5]; in atc_connect_resources()
1526 mixer->set_input_right(mixer, MIX_MIC_IN, &src->rsc); in atc_connect_resources()
1531 (struct src **)&atc->srcs[0], in atc_connect_resources()
1534 src = atc->srcs[0]; in atc_connect_resources()
1535 mixer->set_input_left(mixer, MIX_SPDIF_IN, &src->rsc); in atc_connect_resources()
1536 src = atc->srcs[1]; in atc_connect_resources()
1537 mixer->set_input_right(mixer, MIX_SPDIF_IN, &src->rsc); in atc_connect_resources()