Searched refs:amixer_mgr (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/sound/pci/ctxfi/ |
D | ctamixer.c | 202 struct amixer_mgr *mgr) in amixer_rsc_init() 232 static int get_amixer_rsc(struct amixer_mgr *mgr, in get_amixer_rsc() 284 static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer) in put_amixer_rsc() 300 int amixer_mgr_create(struct hw *hw, struct amixer_mgr **ramixer_mgr) in amixer_mgr_create() 303 struct amixer_mgr *amixer_mgr; in amixer_mgr_create() local 306 amixer_mgr = kzalloc(sizeof(*amixer_mgr), GFP_KERNEL); in amixer_mgr_create() 307 if (!amixer_mgr) in amixer_mgr_create() 310 err = rsc_mgr_init(&amixer_mgr->mgr, AMIXER, AMIXER_RESOURCE_NUM, hw); in amixer_mgr_create() 314 spin_lock_init(&amixer_mgr->mgr_lock); in amixer_mgr_create() 316 amixer_mgr->get_amixer = get_amixer_rsc; in amixer_mgr_create() [all …]
|
D | ctamixer.h | 82 struct amixer_mgr { struct 88 int (*get_amixer)(struct amixer_mgr *mgr, argument 92 int (*put_amixer)(struct amixer_mgr *mgr, struct amixer *amixer); argument 96 int amixer_mgr_create(struct hw *hw, struct amixer_mgr **ramixer_mgr); 97 int amixer_mgr_destroy(struct amixer_mgr *amixer_mgr);
|
D | ctmixer.c | 845 struct amixer_mgr *amixer_mgr; in ct_mixer_get_resources() local 867 amixer_mgr = (struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER]; in ct_mixer_get_resources() 870 err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer); in ct_mixer_get_resources() 887 amixer_mgr->put_amixer(amixer_mgr, amixer); in ct_mixer_get_resources() 1148 struct amixer_mgr *amixer_mgr = in ct_mixer_destroy() local 1149 (struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER]; in ct_mixer_destroy() 1157 amixer_mgr->put_amixer(amixer_mgr, amixer); in ct_mixer_destroy()
|
D | ctatc.c | 246 struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER]; in atc_pcm_playback_prepare() local 285 err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc, in atc_pcm_playback_prepare() 325 struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER]; in atc_pcm_release_resources() local 352 amixer_mgr->put_amixer(amixer_mgr, apcm->amixers[i]); in atc_pcm_release_resources() 507 struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER]; in atc_pcm_capture_get_resources() local 591 err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc, in atc_pcm_capture_get_resources() 789 struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER]; in spdif_passthru_playback_get_resources() local 829 err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc, in spdif_passthru_playback_get_resources()
|