Lines Matching refs:ucontrol
123 struct snd_ctl_elem_value *ucontrol) in pcxhr_analog_vol_get() argument
128 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in pcxhr_analog_vol_get()
129 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in pcxhr_analog_vol_get()
131 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; in pcxhr_analog_vol_get()
132 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; in pcxhr_analog_vol_get()
139 struct snd_ctl_elem_value *ucontrol) in pcxhr_analog_vol_put() argument
148 int new_volume = ucontrol->value.integer.value[i]; in pcxhr_analog_vol_put()
204 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_sw_get() argument
209 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; in pcxhr_audio_sw_get()
210 ucontrol->value.integer.value[1] = chip->analog_playback_active[1]; in pcxhr_audio_sw_get()
216 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_sw_put() argument
223 ucontrol->value.integer.value[i]) { in pcxhr_audio_sw_put()
225 !!ucontrol->value.integer.value[i]; in pcxhr_audio_sw_put()
361 struct snd_ctl_elem_value *ucontrol) in pcxhr_pcm_vol_get() argument
364 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in pcxhr_pcm_vol_get()
373 ucontrol->value.integer.value[0] = stored_volume[0]; in pcxhr_pcm_vol_get()
374 ucontrol->value.integer.value[1] = stored_volume[1]; in pcxhr_pcm_vol_get()
380 struct snd_ctl_elem_value *ucontrol) in pcxhr_pcm_vol_put() argument
383 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in pcxhr_pcm_vol_put()
395 int vol = ucontrol->value.integer.value[i]; in pcxhr_pcm_vol_put()
427 struct snd_ctl_elem_value *ucontrol) in pcxhr_pcm_sw_get() argument
430 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in pcxhr_pcm_sw_get()
433 ucontrol->value.integer.value[0] = chip->digital_playback_active[idx][0]; in pcxhr_pcm_sw_get()
434 ucontrol->value.integer.value[1] = chip->digital_playback_active[idx][1]; in pcxhr_pcm_sw_get()
440 struct snd_ctl_elem_value *ucontrol) in pcxhr_pcm_sw_put() argument
444 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in pcxhr_pcm_sw_put()
451 ucontrol->value.integer.value[i]) { in pcxhr_pcm_sw_put()
453 !!ucontrol->value.integer.value[i]; in pcxhr_pcm_sw_put()
478 struct snd_ctl_elem_value *ucontrol) in pcxhr_monitor_vol_get() argument
482 ucontrol->value.integer.value[0] = chip->monitoring_volume[0]; in pcxhr_monitor_vol_get()
483 ucontrol->value.integer.value[1] = chip->monitoring_volume[1]; in pcxhr_monitor_vol_get()
489 struct snd_ctl_elem_value *ucontrol) in pcxhr_monitor_vol_put() argument
498 ucontrol->value.integer.value[i]) { in pcxhr_monitor_vol_put()
500 ucontrol->value.integer.value[i]; in pcxhr_monitor_vol_put()
528 struct snd_ctl_elem_value *ucontrol) in pcxhr_monitor_sw_get() argument
532 ucontrol->value.integer.value[0] = chip->monitoring_active[0]; in pcxhr_monitor_sw_get()
533 ucontrol->value.integer.value[1] = chip->monitoring_active[1]; in pcxhr_monitor_sw_get()
539 struct snd_ctl_elem_value *ucontrol) in pcxhr_monitor_sw_put() argument
548 ucontrol->value.integer.value[i]) { in pcxhr_monitor_sw_put()
550 !!ucontrol->value.integer.value[i]; in pcxhr_monitor_sw_put()
667 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_src_get() argument
670 ucontrol->value.enumerated.item[0] = chip->audio_capture_source; in pcxhr_audio_src_get()
675 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_src_put() argument
685 if (ucontrol->value.enumerated.item[0] >= i) in pcxhr_audio_src_put()
688 if (chip->audio_capture_source != ucontrol->value.enumerated.item[0]) { in pcxhr_audio_src_put()
689 chip->audio_capture_source = ucontrol->value.enumerated.item[0]; in pcxhr_audio_src_put()
756 struct snd_ctl_elem_value *ucontrol) in pcxhr_clock_type_get() argument
759 ucontrol->value.enumerated.item[0] = mgr->use_clock_type; in pcxhr_clock_type_get()
764 struct snd_ctl_elem_value *ucontrol) in pcxhr_clock_type_put() argument
774 if (ucontrol->value.enumerated.item[0] >= clock_items) in pcxhr_clock_type_put()
777 if (mgr->use_clock_type != ucontrol->value.enumerated.item[0]) { in pcxhr_clock_type_put()
779 mgr->use_clock_type = ucontrol->value.enumerated.item[0]; in pcxhr_clock_type_put()
825 struct snd_ctl_elem_value *ucontrol) in pcxhr_clock_rate_get() argument
839 ucontrol->value.integer.value[i] = rate; in pcxhr_clock_rate_get()
928 struct snd_ctl_elem_value *ucontrol) in pcxhr_iec958_get() argument
948 ucontrol->value.iec958.status[i] = aes_bits; in pcxhr_iec958_get()
955 struct snd_ctl_elem_value *ucontrol) in pcxhr_iec958_mask_get() argument
959 ucontrol->value.iec958.status[i] = 0xff; in pcxhr_iec958_mask_get()
998 struct snd_ctl_elem_value *ucontrol) in pcxhr_iec958_put() argument
1006 if (ucontrol->value.iec958.status[i] != chip->aes_bits[i]) { in pcxhr_iec958_put()
1009 ucontrol->value.iec958.status[i]); in pcxhr_iec958_put()
1012 ucontrol->value.iec958.status[i]); in pcxhr_iec958_put()