• Home
  • Raw
  • Download

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()
272 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare()
297 src = apcm->src; in atc_pcm_playback_prepare()
301 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare()
304 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare()
305 if (!src) in atc_pcm_playback_prepare()
306 src = apcm->src; in atc_pcm_playback_prepare()
362 if (apcm->src) { in atc_pcm_release_resources()
363 src_mgr->put_src(src_mgr, apcm->src); in atc_pcm_release_resources()
364 apcm->src = NULL; in atc_pcm_release_resources()
379 struct src *src = apcm->src; in atc_pcm_playback_start() local
385 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_start()
388 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start()
389 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start()
390 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start()
391 src->ops->set_cisz(src, max_cisz); in atc_pcm_playback_start()
393 src->ops->set_bm(src, 1); in atc_pcm_playback_start()
394 src->ops->set_state(src, SRC_STATE_INIT); in atc_pcm_playback_start()
395 src->ops->commit_write(src); in atc_pcm_playback_start()
403 struct src *src; in atc_pcm_stop() local
408 src = apcm->src; in atc_pcm_stop()
409 src->ops->set_bm(src, 0); in atc_pcm_stop()
410 src->ops->set_state(src, SRC_STATE_OFF); in atc_pcm_stop()
411 src->ops->commit_write(src); in atc_pcm_stop()
415 src = apcm->srccs[i]; in atc_pcm_stop()
416 src->ops->set_bm(src, 0); in atc_pcm_stop()
417 src->ops->set_state(src, SRC_STATE_OFF); in atc_pcm_stop()
418 src->ops->commit_write(src); in atc_pcm_stop()
430 struct src *src = apcm->src; in atc_pcm_playback_position() local
434 if (!src) in atc_pcm_playback_position()
436 position = src->ops->get_ca(src); in atc_pcm_playback_position()
439 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_position()
501 struct src *src; in atc_pcm_capture_get_resources() local
560 (struct src **)&apcm->srccs[i]); in atc_pcm_capture_get_resources()
564 src = apcm->srccs[i]; in atc_pcm_capture_get_resources()
566 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
567 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_capture_get_resources()
568 src->ops->set_vo(src, src_node_conf[i/multi].vo); in atc_pcm_capture_get_resources()
619 err = src_mgr->get_src(src_mgr, &src_dsc, (struct src **)&apcm->src); in atc_pcm_capture_get_resources()
623 src = apcm->src; in atc_pcm_capture_get_resources()
624 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
640 struct src *src; in atc_pcm_capture_prepare() local
675 src = apcm->srccs[i]; in atc_pcm_capture_prepare()
678 srcimp->ops->map(srcimp, src, out_ports[i%multi]); in atc_pcm_capture_prepare()
679 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in atc_pcm_capture_prepare()
700 srcimp->ops->map(srcimp, apcm->src, in atc_pcm_capture_prepare()
707 srcimp->ops->map(srcimp, apcm->src, out_ports[i]); in atc_pcm_capture_prepare()
718 struct src *src; in atc_pcm_capture_start() local
729 src = apcm->srccs[i]; in atc_pcm_capture_start()
730 src->ops->set_pm(src, ((i%multi) != (multi-1))); in atc_pcm_capture_start()
731 src_mgr->src_disable(src_mgr, src); in atc_pcm_capture_start()
735 src = apcm->src; in atc_pcm_capture_start()
736 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format)); in atc_pcm_capture_start()
737 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_capture_start()
738 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_capture_start()
739 src->ops->set_ca(src, apcm->vm_block->addr); in atc_pcm_capture_start()
740 src_mgr->src_disable(src_mgr, src); in atc_pcm_capture_start()
747 src = apcm->srccs[i]; in atc_pcm_capture_start()
748 src->ops->set_state(src, SRC_STATE_RUN); in atc_pcm_capture_start()
749 src->ops->commit_write(src); in atc_pcm_capture_start()
750 src_mgr->src_enable_s(src_mgr, src); in atc_pcm_capture_start()
752 src = apcm->src; in atc_pcm_capture_start()
753 src->ops->set_bm(src, 1); 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()
768 struct src *src = apcm->src; in atc_pcm_capture_position() local
770 if (!src) in atc_pcm_capture_position()
772 return src->ops->get_ca(src) - apcm->vm_block->addr; in atc_pcm_capture_position()
782 struct src *src; in spdif_passthru_playback_get_resources() local
797 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in spdif_passthru_playback_get_resources()
802 src = apcm->src; in spdif_passthru_playback_get_resources()
803 src->ops->set_pitch(src, pitch); in spdif_passthru_playback_get_resources()
804 src->ops->set_rom(src, select_rom(pitch)); in spdif_passthru_playback_get_resources()
805 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format)); in spdif_passthru_playback_get_resources()
806 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in spdif_passthru_playback_get_resources()
807 src->ops->set_bp(src, 1); in spdif_passthru_playback_get_resources()
888 struct src *src; in spdif_passthru_playback_prepare() local
908 src = apcm->src; in spdif_passthru_playback_prepare()
911 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in spdif_passthru_playback_prepare()
912 src = src->ops->next_interleave(src); in spdif_passthru_playback_prepare()
913 if (!src) in spdif_passthru_playback_prepare()
914 src = apcm->src; in spdif_passthru_playback_prepare()
934 struct src *src; in atc_select_line_in() local
944 src = atc->srcs[2]; in atc_select_line_in()
945 mixer->set_input_left(mixer, MIX_LINE_IN, &src->rsc); in atc_select_line_in()
946 src = atc->srcs[3]; in atc_select_line_in()
947 mixer->set_input_right(mixer, MIX_LINE_IN, &src->rsc); in atc_select_line_in()
956 struct src *src; in atc_select_mic_in() local
966 src = atc->srcs[2]; in atc_select_mic_in()
967 mixer->set_input_left(mixer, MIX_MIC_IN, &src->rsc); in atc_select_mic_in()
968 src = atc->srcs[3]; in atc_select_mic_in()
969 mixer->set_input_right(mixer, MIX_MIC_IN, &src->rsc); in atc_select_mic_in()
1410 (struct src **)&atc->srcs[i]); in atc_get_resources()
1444 struct src **srcs, struct srcimp **srcimps) in atc_connect_dai()
1447 struct src *src; in atc_connect_dai() local
1454 src = srcs[i]; in atc_connect_dai()
1456 srcimp->ops->map(srcimp, src, rscs[i]); in atc_connect_dai()
1457 src_mgr->src_disable(src_mgr, src); in atc_connect_dai()
1462 src = srcs[0]; in atc_connect_dai()
1463 src->ops->set_pm(src, 1); in atc_connect_dai()
1465 src = srcs[i]; in atc_connect_dai()
1466 src->ops->set_state(src, SRC_STATE_RUN); in atc_connect_dai()
1467 src->ops->commit_write(src); in atc_connect_dai()
1468 src_mgr->src_enable_s(src_mgr, src); in atc_connect_dai()
1485 struct src *src; in atc_connect_resources() local
1502 (struct src **)&atc->srcs[2], in atc_connect_resources()
1504 src = atc->srcs[2]; in atc_connect_resources()
1505 mixer->set_input_left(mixer, MIX_LINE_IN, &src->rsc); in atc_connect_resources()
1506 src = atc->srcs[3]; in atc_connect_resources()
1507 mixer->set_input_right(mixer, MIX_LINE_IN, &src->rsc); in atc_connect_resources()
1513 (struct src **)&atc->srcs[4], in atc_connect_resources()
1515 src = atc->srcs[4]; in atc_connect_resources()
1516 mixer->set_input_left(mixer, MIX_MIC_IN, &src->rsc); in atc_connect_resources()
1517 src = atc->srcs[5]; in atc_connect_resources()
1518 mixer->set_input_right(mixer, MIX_MIC_IN, &src->rsc); in atc_connect_resources()
1523 (struct src **)&atc->srcs[0], in atc_connect_resources()
1526 src = atc->srcs[0]; in atc_connect_resources()
1527 mixer->set_input_left(mixer, MIX_SPDIF_IN, &src->rsc); in atc_connect_resources()
1528 src = atc->srcs[1]; in atc_connect_resources()
1529 mixer->set_input_right(mixer, MIX_SPDIF_IN, &src->rsc); in atc_connect_resources()