Lines Matching refs:atc
344 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in ct_alsa_mix_volume_get() local
350 amixer = ((struct ct_mixer *)atc->mixer)-> in ct_alsa_mix_volume_get()
366 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in ct_alsa_mix_volume_put() local
367 struct ct_mixer *mixer = atc->mixer; in ct_alsa_mix_volume_put()
423 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in output_switch_get() local
424 ucontrol->value.enumerated.item[0] = atc->output_switch_get(atc); in output_switch_get()
431 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in output_switch_put() local
434 return atc->output_switch_put(atc, ucontrol->value.enumerated.item[0]); in output_switch_put()
458 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in mic_source_switch_get() local
459 ucontrol->value.enumerated.item[0] = atc->mic_source_switch_get(atc); in mic_source_switch_get()
466 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in mic_source_switch_put() local
469 return atc->mic_source_switch_put(atc, in mic_source_switch_put()
482 do_line_mic_switch(struct ct_atc *atc, enum CTALSA_MIXER_CTL type) in do_line_mic_switch() argument
486 atc->select_line_in(atc); in do_line_mic_switch()
487 set_switch_state(atc->mixer, MIXER_MIC_C_S, 0); in do_line_mic_switch()
488 snd_ctl_notify(atc->card, SNDRV_CTL_EVENT_MASK_VALUE, in do_line_mic_switch()
491 atc->select_mic_in(atc); in do_line_mic_switch()
492 set_switch_state(atc->mixer, MIXER_LINEIN_C_S, 0); in do_line_mic_switch()
493 snd_ctl_notify(atc->card, SNDRV_CTL_EVENT_MASK_VALUE, in do_line_mic_switch()
499 do_digit_io_switch(struct ct_atc *atc, int state) in do_digit_io_switch() argument
501 struct ct_mixer *mixer = atc->mixer; in do_digit_io_switch()
504 atc->select_digit_io(atc); in do_digit_io_switch()
505 atc->spdif_out_unmute(atc, in do_digit_io_switch()
507 atc->spdif_in_unmute(atc, 1); in do_digit_io_switch()
508 atc->line_in_unmute(atc, 0); in do_digit_io_switch()
513 atc->select_line_in(atc); in do_digit_io_switch()
515 atc->select_mic_in(atc); in do_digit_io_switch()
517 atc->spdif_out_unmute(atc, 0); in do_digit_io_switch()
518 atc->spdif_in_unmute(atc, 0); in do_digit_io_switch()
519 atc->line_in_unmute(atc, 1); in do_digit_io_switch()
523 static void do_switch(struct ct_atc *atc, enum CTALSA_MIXER_CTL type, int state) in do_switch() argument
525 struct ct_mixer *mixer = atc->mixer; in do_switch()
526 struct capabilities cap = atc->capabilities(atc); in do_switch()
542 do_line_mic_switch(atc, type); in do_switch()
543 atc->line_in_unmute(atc, state); in do_switch()
545 atc->line_in_unmute(atc, state); in do_switch()
547 atc->mic_unmute(atc, state); in do_switch()
549 atc->spdif_in_unmute(atc, state); in do_switch()
551 atc->line_front_unmute(atc, state); in do_switch()
553 atc->line_surround_unmute(atc, state); in do_switch()
555 atc->line_clfe_unmute(atc, state); in do_switch()
557 atc->line_rear_unmute(atc, state); in do_switch()
559 atc->spdif_out_unmute(atc, state); in do_switch()
561 do_digit_io_switch(atc, state); in do_switch()
592 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in ct_alsa_mix_switch_put() local
593 struct ct_mixer *mixer = atc->mixer; in ct_alsa_mix_switch_put()
602 do_switch(atc, type, state); in ct_alsa_mix_switch_put()
636 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in ct_spdif_get() local
639 atc->spdif_out_get_status(atc, &status); in ct_spdif_get()
655 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in ct_spdif_put() local
664 atc->spdif_out_get_status(atc, &old_status); in ct_spdif_put()
667 atc->spdif_out_set_status(atc, status); in ct_spdif_put()
711 kctl = snd_ctl_new1(new, mixer->atc); in ct_mixer_kcontrol_new()
718 err = snd_ctl_add(mixer->atc->card, kctl); in ct_mixer_kcontrol_new()
737 struct ct_atc *atc = mixer->atc; in ct_mixer_kcontrols_create() local
738 struct capabilities cap = atc->capabilities(atc); in ct_mixer_kcontrols_create()
787 atc->line_front_unmute(atc, 1); in ct_mixer_kcontrols_create()
789 atc->line_surround_unmute(atc, 0); in ct_mixer_kcontrols_create()
791 atc->line_clfe_unmute(atc, 0); in ct_mixer_kcontrols_create()
793 atc->line_rear_unmute(atc, 0); in ct_mixer_kcontrols_create()
795 atc->spdif_out_unmute(atc, 0); in ct_mixer_kcontrols_create()
797 atc->line_in_unmute(atc, 0); in ct_mixer_kcontrols_create()
799 atc->mic_unmute(atc, 0); in ct_mixer_kcontrols_create()
800 atc->spdif_in_unmute(atc, 0); in ct_mixer_kcontrols_create()
848 sum_mgr = (struct sum_mgr *)mixer->atc->rsc_mgrs[SUM]; in ct_mixer_get_resources()
849 sum_desc.msr = mixer->atc->msr; in ct_mixer_get_resources()
853 dev_err(mixer->atc->card->dev, in ct_mixer_get_resources()
863 amixer_mgr = (struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER]; in ct_mixer_get_resources()
864 am_desc.msr = mixer->atc->msr; in ct_mixer_get_resources()
868 dev_err(mixer->atc->card->dev, in ct_mixer_get_resources()
1134 do_switch(mixer->atc, i, state); in mixer_resume()
1143 struct sum_mgr *sum_mgr = (struct sum_mgr *)mixer->atc->rsc_mgrs[SUM]; in ct_mixer_destroy()
1145 (struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER]; in ct_mixer_destroy()
1171 int ct_mixer_create(struct ct_atc *atc, struct ct_mixer **rmixer) in ct_mixer_create() argument
1184 mixer->atc = atc; in ct_mixer_create()
1210 int ct_alsa_mix_create(struct ct_atc *atc, in ct_alsa_mix_create() argument
1218 err = ct_mixer_kcontrols_create((struct ct_mixer *)atc->mixer); in ct_alsa_mix_create()
1222 strcpy(atc->card->mixername, device_name); in ct_alsa_mix_create()