Lines Matching refs:mgr
60 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_analog_audio_level()
82 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_info()
94 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_info()
113 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_get()
121 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_get()
132 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_put()
140 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_put()
150 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_put()
163 if (chip->mgr->is_hr_stereo) in pcxhr_analog_vol_put()
171 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_put()
195 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_audio_sw_get()
198 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_audio_sw_get()
207 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_audio_sw_put()
215 if (chip->mgr->is_hr_stereo) in pcxhr_audio_sw_put()
221 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_audio_sw_put()
273 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_playback_stream_level()
324 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_audio_pipe_level()
355 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_pcm_vol_get()
362 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_pcm_vol_get()
376 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_pcm_vol_put()
395 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_pcm_vol_put()
419 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_pcm_sw_get()
422 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_pcm_sw_get()
434 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_pcm_sw_put()
446 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_pcm_sw_put()
468 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_monitor_vol_get()
471 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_monitor_vol_get()
482 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_monitor_vol_put()
495 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_monitor_vol_put()
518 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_monitor_sw_get()
521 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_monitor_sw_get()
532 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_monitor_sw_put()
548 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_monitor_sw_put()
591 pcxhr_write_io_num_reg_cont(chip->mgr, mask, reg, &changed); in pcxhr_set_audio_source()
596 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_set_audio_source()
600 if (chip->mgr->board_aes_in_192k) { in pcxhr_set_audio_source()
604 for (i = 0; (i < 4) && (i < chip->mgr->capture_chips); i++) { in pcxhr_set_audio_source()
605 if (chip->mgr->chip[i]->audio_capture_source == 2) in pcxhr_set_audio_source()
613 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_set_audio_source()
625 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_set_audio_source()
630 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_set_audio_source()
645 if (chip->mgr->board_has_aes1) { in pcxhr_audio_src_info()
647 if (chip->mgr->board_has_mic) in pcxhr_audio_src_info()
667 if (chip->mgr->board_has_aes1) { in pcxhr_audio_src_put()
669 if (chip->mgr->board_has_mic) in pcxhr_audio_src_put()
674 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_audio_src_put()
677 if (chip->mgr->is_hr_stereo) in pcxhr_audio_src_put()
683 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_audio_src_put()
725 struct pcxhr_mgr *mgr = snd_kcontrol_chip(kcontrol); in pcxhr_clock_type_info() local
727 if (mgr->board_has_aes1) { in pcxhr_clock_type_info()
728 clock_items += mgr->capture_chips; /* add AES x */ in pcxhr_clock_type_info()
729 if (!mgr->is_hr_stereo) in pcxhr_clock_type_info()
732 if (mgr->is_hr_stereo) { in pcxhr_clock_type_info()
745 struct pcxhr_mgr *mgr = snd_kcontrol_chip(kcontrol); in pcxhr_clock_type_get() local
746 ucontrol->value.enumerated.item[0] = mgr->use_clock_type; in pcxhr_clock_type_get()
753 struct pcxhr_mgr *mgr = snd_kcontrol_chip(kcontrol); in pcxhr_clock_type_put() local
756 if (mgr->board_has_aes1) { in pcxhr_clock_type_put()
757 clock_items += mgr->capture_chips; /* add AES x */ in pcxhr_clock_type_put()
758 if (!mgr->is_hr_stereo) in pcxhr_clock_type_put()
763 mutex_lock(&mgr->mixer_mutex); in pcxhr_clock_type_put()
764 if (mgr->use_clock_type != ucontrol->value.enumerated.item[0]) { in pcxhr_clock_type_put()
765 mutex_lock(&mgr->setup_mutex); in pcxhr_clock_type_put()
766 mgr->use_clock_type = ucontrol->value.enumerated.item[0]; in pcxhr_clock_type_put()
768 if (mgr->use_clock_type != PCXHR_CLOCK_TYPE_INTERNAL) { in pcxhr_clock_type_put()
769 pcxhr_get_external_clock(mgr, mgr->use_clock_type, in pcxhr_clock_type_put()
772 rate = mgr->sample_rate; in pcxhr_clock_type_put()
777 pcxhr_set_clock(mgr, rate); in pcxhr_clock_type_put()
778 if (mgr->sample_rate) in pcxhr_clock_type_put()
779 mgr->sample_rate = rate; in pcxhr_clock_type_put()
781 mutex_unlock(&mgr->setup_mutex); in pcxhr_clock_type_put()
784 mutex_unlock(&mgr->mixer_mutex); in pcxhr_clock_type_put()
803 struct pcxhr_mgr *mgr = snd_kcontrol_chip(kcontrol); in pcxhr_clock_rate_info() local
805 uinfo->count = 3 + mgr->capture_chips; in pcxhr_clock_rate_info()
814 struct pcxhr_mgr *mgr = snd_kcontrol_chip(kcontrol); in pcxhr_clock_rate_get() local
817 mutex_lock(&mgr->mixer_mutex); in pcxhr_clock_rate_get()
818 for(i = 0; i < 3 + mgr->capture_chips; i++) { in pcxhr_clock_rate_get()
820 rate = mgr->sample_rate_real; in pcxhr_clock_rate_get()
822 err = pcxhr_get_external_clock(mgr, i, &rate); in pcxhr_clock_rate_get()
828 mutex_unlock(&mgr->mixer_mutex); in pcxhr_clock_rate_get()
868 if (chip->mgr->board_aes_in_192k) { in pcxhr_iec958_capture_byte()
893 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_iec958_capture_byte()
897 if (chip->mgr->board_aes_in_192k) { in pcxhr_iec958_capture_byte()
921 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_iec958_get()
926 if (chip->mgr->is_hr_stereo) in pcxhr_iec958_get()
937 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_iec958_get()
973 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_iec958_update_byte()
991 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_iec958_put()
994 if (chip->mgr->is_hr_stereo) in pcxhr_iec958_put()
1003 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_iec958_put()
1062 if (chip->mgr->is_hr_stereo) in pcxhr_init_audio_levels()
1072 if (chip->mgr->is_hr_stereo) in pcxhr_init_audio_levels()
1084 if (chip->mgr->is_hr_stereo) in pcxhr_init_audio_levels()
1094 if (chip->mgr->is_hr_stereo) in pcxhr_init_audio_levels()
1103 int pcxhr_create_mixer(struct pcxhr_mgr *mgr) in pcxhr_create_mixer() argument
1108 mutex_init(&mgr->mixer_mutex); /* can be in another place */ in pcxhr_create_mixer()
1110 for (i = 0; i < mgr->num_cards; i++) { in pcxhr_create_mixer()
1112 chip = mgr->chip[i]; in pcxhr_create_mixer()
1119 if (mgr->is_hr_stereo) in pcxhr_create_mixer()
1167 if (mgr->is_hr_stereo) in pcxhr_create_mixer()
1206 if (mgr->is_hr_stereo) { in pcxhr_create_mixer()
1229 snd_ctl_new1(&pcxhr_control_clock_type, mgr)); in pcxhr_create_mixer()
1236 snd_ctl_new1(&pcxhr_control_clock_rate, mgr)); in pcxhr_create_mixer()