Lines Matching refs:src
246 struct src *src; in atc_pcm_playback_prepare() local
260 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in atc_pcm_playback_prepare()
266 src = apcm->src; in atc_pcm_playback_prepare()
267 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare()
268 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare()
269 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare()
271 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare()
296 src = apcm->src; in atc_pcm_playback_prepare()
300 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare()
303 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare()
304 if (!src) in atc_pcm_playback_prepare()
305 src = apcm->src; in atc_pcm_playback_prepare()
361 if (apcm->src) { in atc_pcm_release_resources()
362 src_mgr->put_src(src_mgr, apcm->src); in atc_pcm_release_resources()
363 apcm->src = NULL; in atc_pcm_release_resources()
378 struct src *src = apcm->src; in atc_pcm_playback_start() local
384 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_start()
387 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start()
388 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start()
389 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start()
390 src->ops->set_cisz(src, max_cisz); in atc_pcm_playback_start()
392 src->ops->set_bm(src, 1); in atc_pcm_playback_start()
393 src->ops->set_state(src, SRC_STATE_INIT); in atc_pcm_playback_start()
394 src->ops->commit_write(src); in atc_pcm_playback_start()
402 struct src *src; in atc_pcm_stop() local
407 src = apcm->src; in atc_pcm_stop()
408 src->ops->set_bm(src, 0); in atc_pcm_stop()
409 src->ops->set_state(src, SRC_STATE_OFF); in atc_pcm_stop()
410 src->ops->commit_write(src); in atc_pcm_stop()
414 src = apcm->srccs[i]; in atc_pcm_stop()
415 src->ops->set_bm(src, 0); in atc_pcm_stop()
416 src->ops->set_state(src, SRC_STATE_OFF); in atc_pcm_stop()
417 src->ops->commit_write(src); in atc_pcm_stop()
429 struct src *src = apcm->src; in atc_pcm_playback_position() local
433 if (!src) in atc_pcm_playback_position()
435 position = src->ops->get_ca(src); in atc_pcm_playback_position()
445 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_position()
507 struct src *src; in atc_pcm_capture_get_resources() local
566 (struct src **)&apcm->srccs[i]); in atc_pcm_capture_get_resources()
570 src = apcm->srccs[i]; in atc_pcm_capture_get_resources()
572 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
573 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_capture_get_resources()
574 src->ops->set_vo(src, src_node_conf[i/multi].vo); in atc_pcm_capture_get_resources()
625 err = src_mgr->get_src(src_mgr, &src_dsc, (struct src **)&apcm->src); in atc_pcm_capture_get_resources()
629 src = apcm->src; in atc_pcm_capture_get_resources()
630 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
646 struct src *src; in atc_pcm_capture_prepare() local
681 src = apcm->srccs[i]; in atc_pcm_capture_prepare()
684 srcimp->ops->map(srcimp, src, out_ports[i%multi]); in atc_pcm_capture_prepare()
685 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in atc_pcm_capture_prepare()
706 srcimp->ops->map(srcimp, apcm->src, in atc_pcm_capture_prepare()
713 srcimp->ops->map(srcimp, apcm->src, out_ports[i]); in atc_pcm_capture_prepare()
724 struct src *src; in atc_pcm_capture_start() local
735 src = apcm->srccs[i]; in atc_pcm_capture_start()
736 src->ops->set_pm(src, ((i%multi) != (multi-1))); in atc_pcm_capture_start()
737 src_mgr->src_disable(src_mgr, src); in atc_pcm_capture_start()
741 src = apcm->src; in atc_pcm_capture_start()
742 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_capture_start()
744 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_capture_start()
745 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_capture_start()
746 src->ops->set_ca(src, apcm->vm_block->addr); in atc_pcm_capture_start()
747 src_mgr->src_disable(src_mgr, src); in atc_pcm_capture_start()
754 src = apcm->srccs[i]; in atc_pcm_capture_start()
755 src->ops->set_state(src, SRC_STATE_RUN); in atc_pcm_capture_start()
756 src->ops->commit_write(src); in atc_pcm_capture_start()
757 src_mgr->src_enable_s(src_mgr, src); in atc_pcm_capture_start()
759 src = apcm->src; in atc_pcm_capture_start()
760 src->ops->set_bm(src, 1); in atc_pcm_capture_start()
761 src->ops->set_state(src, SRC_STATE_RUN); in atc_pcm_capture_start()
762 src->ops->commit_write(src); in atc_pcm_capture_start()
763 src_mgr->src_enable_s(src_mgr, src); in atc_pcm_capture_start()
775 struct src *src = apcm->src; in atc_pcm_capture_position() local
777 if (!src) in atc_pcm_capture_position()
779 return src->ops->get_ca(src) - apcm->vm_block->addr; in atc_pcm_capture_position()
789 struct src *src; in spdif_passthru_playback_get_resources() local
804 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in spdif_passthru_playback_get_resources()
809 src = apcm->src; in spdif_passthru_playback_get_resources()
810 src->ops->set_pitch(src, pitch); in spdif_passthru_playback_get_resources()
811 src->ops->set_rom(src, select_rom(pitch)); in spdif_passthru_playback_get_resources()
812 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in spdif_passthru_playback_get_resources()
814 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in spdif_passthru_playback_get_resources()
815 src->ops->set_bp(src, 1); in spdif_passthru_playback_get_resources()
896 struct src *src; in spdif_passthru_playback_prepare() local
916 src = apcm->src; in spdif_passthru_playback_prepare()
919 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in spdif_passthru_playback_prepare()
920 src = src->ops->next_interleave(src); in spdif_passthru_playback_prepare()
921 if (!src) in spdif_passthru_playback_prepare()
922 src = apcm->src; in spdif_passthru_playback_prepare()
942 struct src *src; in atc_select_line_in() local
952 src = atc->srcs[2]; in atc_select_line_in()
953 mixer->set_input_left(mixer, MIX_LINE_IN, &src->rsc); in atc_select_line_in()
954 src = atc->srcs[3]; in atc_select_line_in()
955 mixer->set_input_right(mixer, MIX_LINE_IN, &src->rsc); in atc_select_line_in()
964 struct src *src; in atc_select_mic_in() local
974 src = atc->srcs[2]; in atc_select_mic_in()
975 mixer->set_input_left(mixer, MIX_MIC_IN, &src->rsc); in atc_select_mic_in()
976 src = atc->srcs[3]; in atc_select_mic_in()
977 mixer->set_input_right(mixer, MIX_MIC_IN, &src->rsc); in atc_select_mic_in()
1416 (struct src **)&atc->srcs[i]); in atc_get_resources()
1450 struct src **srcs, struct srcimp **srcimps) in atc_connect_dai()
1453 struct src *src; in atc_connect_dai() local
1460 src = srcs[i]; in atc_connect_dai()
1462 srcimp->ops->map(srcimp, src, rscs[i]); in atc_connect_dai()
1463 src_mgr->src_disable(src_mgr, src); in atc_connect_dai()
1468 src = srcs[0]; in atc_connect_dai()
1469 src->ops->set_pm(src, 1); in atc_connect_dai()
1471 src = srcs[i]; in atc_connect_dai()
1472 src->ops->set_state(src, SRC_STATE_RUN); in atc_connect_dai()
1473 src->ops->commit_write(src); in atc_connect_dai()
1474 src_mgr->src_enable_s(src_mgr, src); in atc_connect_dai()
1491 struct src *src; in atc_connect_resources() local
1508 (struct src **)&atc->srcs[2], in atc_connect_resources()
1510 src = atc->srcs[2]; in atc_connect_resources()
1511 mixer->set_input_left(mixer, MIX_LINE_IN, &src->rsc); in atc_connect_resources()
1512 src = atc->srcs[3]; in atc_connect_resources()
1513 mixer->set_input_right(mixer, MIX_LINE_IN, &src->rsc); in atc_connect_resources()
1519 (struct src **)&atc->srcs[4], in atc_connect_resources()
1521 src = atc->srcs[4]; in atc_connect_resources()
1522 mixer->set_input_left(mixer, MIX_MIC_IN, &src->rsc); in atc_connect_resources()
1523 src = atc->srcs[5]; in atc_connect_resources()
1524 mixer->set_input_right(mixer, MIX_MIC_IN, &src->rsc); in atc_connect_resources()
1529 (struct src **)&atc->srcs[0], in atc_connect_resources()
1532 src = atc->srcs[0]; in atc_connect_resources()
1533 mixer->set_input_left(mixer, MIX_SPDIF_IN, &src->rsc); in atc_connect_resources()
1534 src = atc->srcs[1]; in atc_connect_resources()
1535 mixer->set_input_right(mixer, MIX_SPDIF_IN, &src->rsc); in atc_connect_resources()