/sound/pci/ctxfi/ |
D | ctsrc.c | 38 hw = src->rsc.hw; in src_set_state() 39 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state() 48 hw = src->rsc.hw; in src_set_bm() 49 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm() 58 hw = src->rsc.hw; in src_set_sf() 59 hw->src_set_sf(src->rsc.ctrl_blk, sf); in src_set_sf() 68 hw = src->rsc.hw; in src_set_pm() 69 hw->src_set_pm(src->rsc.ctrl_blk, pm); in src_set_pm() 78 hw = src->rsc.hw; in src_set_rom() 79 hw->src_set_rom(src->rsc.ctrl_blk, rom); in src_set_rom() [all …]
|
D | ctamixer.c | 26 static void amixer_master(struct rsc *rsc) in amixer_master() argument 28 rsc->conj = 0; in amixer_master() 29 rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master() 32 static void amixer_next_conj(struct rsc *rsc) in amixer_next_conj() argument 34 rsc->conj++; in amixer_next_conj() 37 static int amixer_index(const struct rsc *rsc) in amixer_index() argument 39 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index() 42 static int amixer_output_slot(const struct rsc *rsc) in amixer_output_slot() argument 44 return (amixer_index(rsc) << 4) + 0x4; in amixer_output_slot() 54 static int amixer_set_input(struct amixer *amixer, struct rsc *rsc) in amixer_set_input() argument [all …]
|
D | ctresource.c | 102 static int rsc_index(const struct rsc *rsc) in rsc_index() argument 104 return rsc->conj; in rsc_index() 107 static int audio_ring_slot(const struct rsc *rsc) in audio_ring_slot() argument 109 return (rsc->conj << 4) + offset_in_audio_slot_block[rsc->type]; in audio_ring_slot() 112 static void rsc_next_conj(struct rsc *rsc) in rsc_next_conj() argument 115 for (i = 0; (i < 8) && (!(rsc->msr & (0x1 << i))); ) in rsc_next_conj() 117 rsc->conj += (AUDIO_SLOT_BLOCK_NUM >> i); in rsc_next_conj() 120 static void rsc_master(struct rsc *rsc) in rsc_master() argument 122 rsc->conj = rsc->idx; in rsc_master() 133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument [all …]
|
D | ctresource.h | 31 struct rsc { struct 42 void (*master)(struct rsc *rsc); /* Move to master resource */ argument 43 void (*next_conj)(struct rsc *rsc); /* Move to next conjugate resource */ 44 int (*index)(const struct rsc *rsc); /* Return the index of resource */ 46 int (*output_slot)(const struct rsc *rsc); 50 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw); 51 int rsc_uninit(struct rsc *rsc);
|
D | ctamixer.h | 24 struct rsc rsc; /* Basic resource info */ member 53 struct rsc rsc; /* Basic resource info */ member 55 struct rsc *input; /* pointer to a resource acting as source */ 61 int (*set_input)(struct amixer *amixer, struct rsc *rsc); 68 int (*setup)(struct amixer *amixer, struct rsc *input,
|
D | ctmixer.h | 49 struct rsc **rleft, struct rsc **rright); 52 enum MIXER_PORT_T type, struct rsc *rsc); 54 enum MIXER_PORT_T type, struct rsc *rsc);
|
D | ctdaio.h | 43 struct rsc rscl; /* Basic resource info for left TX/RX */ 44 struct rsc rscr; /* Basic resource info for right TX/RX */ 74 int (*set_left_input)(struct dao *dao, struct rsc *input); 75 int (*set_right_input)(struct dao *dao, struct rsc *input); 81 int (*set_srt_srcl)(struct dai *dai, struct rsc *src); 82 int (*set_srt_srcr)(struct dai *dai, struct rsc *src);
|
D | ctdaio.c | 54 static void daio_master(struct rsc *rsc) in daio_master() argument 59 rsc->conj = rsc->idx; in daio_master() 62 static int daio_index(const struct rsc *rsc) in daio_index() argument 64 return rsc->conj; in daio_index() 67 static void daio_out_next_conj(struct rsc *rsc) in daio_out_next_conj() argument 69 rsc->conj += 2; in daio_out_next_conj() 72 static void daio_in_next_conj_20k1(struct rsc *rsc) in daio_in_next_conj_20k1() argument 74 rsc->conj += 0x200; in daio_in_next_conj_20k1() 77 static void daio_in_next_conj_20k2(struct rsc *rsc) in daio_in_next_conj_20k2() argument 79 rsc->conj += 0x100; in daio_in_next_conj_20k2() [all …]
|
D | ctsrc.h | 45 struct rsc rsc; /* Basic resource info */ member 104 struct rsc rsc; member 113 int (*map)(struct srcimp *srcimp, struct src *user, struct rsc *input);
|
D | ctmixer.c | 946 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 949 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 957 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 960 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 966 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 969 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1008 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1011 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1048 static int mixer_set_input_port(struct amixer *amixer, struct rsc *rsc) in mixer_set_input_port() argument 1050 amixer->ops->set_input(amixer, rsc); in mixer_set_input_port() [all …]
|
D | ctatc.c | 300 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare() 384 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_start() 445 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_position() 651 struct rsc *out_ports[8] = {NULL}; in atc_pcm_capture_prepare() 675 out_ports[0] = &mono->rsc; in atc_pcm_capture_prepare() 685 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in atc_pcm_capture_prepare() 686 out_ports[i%multi] = &amixer->rsc; in atc_pcm_capture_prepare() 707 &amixer->rsc); in atc_pcm_capture_prepare() 919 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in spdif_passthru_playback_prepare() 928 dao->ops->set_left_input(dao, &amixer->rsc); in spdif_passthru_playback_prepare() [all …]
|