Lines Matching refs:ucontrol

110 				struct snd_ctl_elem_value *ucontrol)  in pcxhr_analog_vol_get()  argument
115 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in pcxhr_analog_vol_get()
116 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in pcxhr_analog_vol_get()
118 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; in pcxhr_analog_vol_get()
119 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; in pcxhr_analog_vol_get()
126 struct snd_ctl_elem_value *ucontrol) in pcxhr_analog_vol_put() argument
135 int new_volume = ucontrol->value.integer.value[i]; in pcxhr_analog_vol_put()
191 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_sw_get() argument
196 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; in pcxhr_audio_sw_get()
197 ucontrol->value.integer.value[1] = chip->analog_playback_active[1]; in pcxhr_audio_sw_get()
203 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_sw_put() argument
210 ucontrol->value.integer.value[i]) { in pcxhr_audio_sw_put()
212 !!ucontrol->value.integer.value[i]; in pcxhr_audio_sw_put()
348 struct snd_ctl_elem_value *ucontrol) in pcxhr_pcm_vol_get() argument
351 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in pcxhr_pcm_vol_get()
360 ucontrol->value.integer.value[0] = stored_volume[0]; in pcxhr_pcm_vol_get()
361 ucontrol->value.integer.value[1] = stored_volume[1]; in pcxhr_pcm_vol_get()
367 struct snd_ctl_elem_value *ucontrol) in pcxhr_pcm_vol_put() argument
370 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in pcxhr_pcm_vol_put()
382 int vol = ucontrol->value.integer.value[i]; in pcxhr_pcm_vol_put()
414 struct snd_ctl_elem_value *ucontrol) in pcxhr_pcm_sw_get() argument
417 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in pcxhr_pcm_sw_get()
420 ucontrol->value.integer.value[0] = chip->digital_playback_active[idx][0]; in pcxhr_pcm_sw_get()
421 ucontrol->value.integer.value[1] = chip->digital_playback_active[idx][1]; in pcxhr_pcm_sw_get()
427 struct snd_ctl_elem_value *ucontrol) in pcxhr_pcm_sw_put() argument
431 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in pcxhr_pcm_sw_put()
438 ucontrol->value.integer.value[i]) { in pcxhr_pcm_sw_put()
440 !!ucontrol->value.integer.value[i]; in pcxhr_pcm_sw_put()
465 struct snd_ctl_elem_value *ucontrol) in pcxhr_monitor_vol_get() argument
469 ucontrol->value.integer.value[0] = chip->monitoring_volume[0]; in pcxhr_monitor_vol_get()
470 ucontrol->value.integer.value[1] = chip->monitoring_volume[1]; in pcxhr_monitor_vol_get()
476 struct snd_ctl_elem_value *ucontrol) in pcxhr_monitor_vol_put() argument
485 ucontrol->value.integer.value[i]) { in pcxhr_monitor_vol_put()
487 ucontrol->value.integer.value[i]; in pcxhr_monitor_vol_put()
515 struct snd_ctl_elem_value *ucontrol) in pcxhr_monitor_sw_get() argument
519 ucontrol->value.integer.value[0] = chip->monitoring_active[0]; in pcxhr_monitor_sw_get()
520 ucontrol->value.integer.value[1] = chip->monitoring_active[1]; in pcxhr_monitor_sw_get()
526 struct snd_ctl_elem_value *ucontrol) in pcxhr_monitor_sw_put() argument
535 ucontrol->value.integer.value[i]) { in pcxhr_monitor_sw_put()
537 !!ucontrol->value.integer.value[i]; in pcxhr_monitor_sw_put()
654 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_src_get() argument
657 ucontrol->value.enumerated.item[0] = chip->audio_capture_source; in pcxhr_audio_src_get()
662 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_src_put() argument
672 if (ucontrol->value.enumerated.item[0] >= i) in pcxhr_audio_src_put()
675 if (chip->audio_capture_source != ucontrol->value.enumerated.item[0]) { in pcxhr_audio_src_put()
676 chip->audio_capture_source = ucontrol->value.enumerated.item[0]; in pcxhr_audio_src_put()
743 struct snd_ctl_elem_value *ucontrol) in pcxhr_clock_type_get() argument
746 ucontrol->value.enumerated.item[0] = mgr->use_clock_type; in pcxhr_clock_type_get()
751 struct snd_ctl_elem_value *ucontrol) in pcxhr_clock_type_put() argument
761 if (ucontrol->value.enumerated.item[0] >= clock_items) in pcxhr_clock_type_put()
764 if (mgr->use_clock_type != ucontrol->value.enumerated.item[0]) { in pcxhr_clock_type_put()
766 mgr->use_clock_type = ucontrol->value.enumerated.item[0]; in pcxhr_clock_type_put()
812 struct snd_ctl_elem_value *ucontrol) in pcxhr_clock_rate_get() argument
826 ucontrol->value.integer.value[i] = rate; in pcxhr_clock_rate_get()
915 struct snd_ctl_elem_value *ucontrol) in pcxhr_iec958_get() argument
935 ucontrol->value.iec958.status[i] = aes_bits; in pcxhr_iec958_get()
942 struct snd_ctl_elem_value *ucontrol) in pcxhr_iec958_mask_get() argument
946 ucontrol->value.iec958.status[i] = 0xff; in pcxhr_iec958_mask_get()
985 struct snd_ctl_elem_value *ucontrol) in pcxhr_iec958_put() argument
993 if (ucontrol->value.iec958.status[i] != chip->aes_bits[i]) { in pcxhr_iec958_put()
996 ucontrol->value.iec958.status[i]); in pcxhr_iec958_put()
999 ucontrol->value.iec958.status[i]); in pcxhr_iec958_put()