Lines Matching refs:ucontrol

266 static void ews88_spdif_default_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol)  in ews88_spdif_default_get()  argument
268 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); in ews88_spdif_default_get()
271 static int ews88_spdif_default_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in ews88_spdif_default_put() argument
276 val = snd_cs8404_encode_spdif_bits(&ucontrol->value.iec958); in ews88_spdif_default_put()
289 static void ews88_spdif_stream_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in ews88_spdif_stream_get() argument
291 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); in ews88_spdif_stream_get()
294 static int ews88_spdif_stream_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in ews88_spdif_stream_put() argument
299 val = snd_cs8404_encode_spdif_bits(&ucontrol->value.iec958); in ews88_spdif_stream_put()
586 …nt snd_ice1712_ewx_io_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ewx_io_sense_get() argument
592 ucontrol->value.enumerated.item[0] = snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA) & mask ? 1 : 0; in snd_ice1712_ewx_io_sense_get()
597 …nt snd_ice1712_ewx_io_sense_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ewx_io_sense_put() argument
605 nval = ucontrol->value.enumerated.item[0] ? mask : 0; in snd_ice1712_ewx_io_sense_put()
638 …ce1712_ews88mt_output_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ews88mt_output_sense_get() argument
650ucontrol->value.enumerated.item[0] = data & ICE1712_EWS88MT_OUTPUT_SENSE ? 1 : 0; /* high = -10dBV… in snd_ice1712_ews88mt_output_sense_get()
655 …ce1712_ews88mt_output_sense_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ews88mt_output_sense_put() argument
666 …ndata = (data & ~ICE1712_EWS88MT_OUTPUT_SENSE) | (ucontrol->value.enumerated.item[0] ? ICE1712_EWS… in snd_ice1712_ews88mt_output_sense_put()
677 …ice1712_ews88mt_input_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ews88mt_input_sense_get() argument
681 int channel = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ice1712_ews88mt_input_sense_get()
692 ucontrol->value.enumerated.item[0] = data & (1 << channel) ? 0 : 1; in snd_ice1712_ews88mt_input_sense_get()
698 …ice1712_ews88mt_input_sense_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ews88mt_input_sense_put() argument
702 int channel = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ice1712_ews88mt_input_sense_put()
712 ndata = (data & ~(1 << channel)) | (ucontrol->value.enumerated.item[0] ? 0 : (1 << channel)); in snd_ice1712_ews88mt_input_sense_put()
746 … snd_ice1712_ews88d_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ews88d_control_get() argument
763 ucontrol->value.integer.value[0] = data[0]; in snd_ice1712_ews88d_control_get()
767 … snd_ice1712_ews88d_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ews88d_control_put() argument
783 if (! ucontrol->value.integer.value[0]) in snd_ice1712_ews88d_control_put()
786 if (ucontrol->value.integer.value[0]) in snd_ice1712_ews88d_control_put()
858 …t snd_ice1712_6fire_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_6fire_control_get() argument
870 ucontrol->value.integer.value[0] = data; in snd_ice1712_6fire_control_get()
874 …t snd_ice1712_6fire_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_6fire_control_put() argument
884 if (ucontrol->value.integer.value[0]) in snd_ice1712_6fire_control_put()
903 …_ice1712_6fire_select_input_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_6fire_select_input_get() argument
910 ucontrol->value.integer.value[0] = data & 3; in snd_ice1712_6fire_select_input_get()
914 …_ice1712_6fire_select_input_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_6fire_select_input_put() argument
922 ndata |= (ucontrol->value.integer.value[0] & 3); in snd_ice1712_6fire_select_input_put()