Searched refs:amixer_mgr (Results 1 – 4 of 4) sorted by relevance
/linux/sound/pci/ctxfi/ |
H A D | ctamixer.c | 197 struct amixer_mgr *mgr) in amixer_rsc_init() 227 static int get_amixer_rsc(struct amixer_mgr *mgr, in get_amixer_rsc() 279 static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer) in put_amixer_rsc() 298 struct amixer_mgr *amixer_mgr; in amixer_mgr_create() local 301 amixer_mgr = kzalloc(sizeof(*amixer_mgr), GFP_KERNEL); in amixer_mgr_create() 302 if (!amixer_mgr) in amixer_mgr_create() 305 err = rsc_mgr_init(&amixer_mgr->mgr, AMIXER, AMIXER_RESOURCE_NUM, hw); in amixer_mgr_create() 309 spin_lock_init(&amixer_mgr->mgr_lock); in amixer_mgr_create() 311 amixer_mgr->get_amixer = get_amixer_rsc; in amixer_mgr_create() 312 amixer_mgr->put_amixer = put_amixer_rsc; in amixer_mgr_create() [all …]
|
H A D | ctamixer.h | 78 struct amixer_mgr { struct 84 int (*get_amixer)(struct amixer_mgr *mgr, argument 88 int (*put_amixer)(struct amixer_mgr *mgr, struct amixer *amixer); argument 93 int amixer_mgr_destroy(void *amixer_mgr);
|
H A D | ctmixer.c | 841 struct amixer_mgr *amixer_mgr; in ct_mixer_get_resources() local 863 amixer_mgr = (struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER]; in ct_mixer_get_resources() 866 err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer); in ct_mixer_get_resources() 883 amixer_mgr->put_amixer(amixer_mgr, amixer); in ct_mixer_get_resources() 1144 struct amixer_mgr *amixer_mgr = in ct_mixer_destroy() local 1145 (struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER]; in ct_mixer_destroy() 1153 amixer_mgr->put_amixer(amixer_mgr, amixer); in ct_mixer_destroy()
|
H A D | ctatc.c | 242 struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER]; in atc_pcm_playback_prepare() local 281 err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc, in atc_pcm_playback_prepare() 321 struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER]; in atc_pcm_release_resources() local 348 amixer_mgr->put_amixer(amixer_mgr, apcm->amixers[i]); in atc_pcm_release_resources() 503 struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER]; in atc_pcm_capture_get_resources() local 587 err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc, in atc_pcm_capture_get_resources() 785 struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER]; in spdif_passthru_playback_get_resources() local 825 err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc, in spdif_passthru_playback_get_resources()
|