Lines Matching refs:ucontrol

168 				   struct snd_ctl_elem_value *ucontrol)  in snd_ak4117_in_error_get()  argument
175 ucontrol->value.integer.value[0] = *ptr; in snd_ak4117_in_error_get()
184 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_in_bit_get() argument
191 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4117_in_bit_get()
206 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_rx_get() argument
210 ucontrol->value.integer.value[0] = (chip->regmap[AK4117_REG_IO] & AK4117_IPS) ? 1 : 0; in snd_ak4117_rx_get()
215 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_rx_put() argument
223 change = !!ucontrol->value.integer.value[0] != ((old_val & AK4117_IPS) ? 1 : 0); in snd_ak4117_rx_put()
225 …reg_write(chip, AK4117_REG_IO, (old_val & ~AK4117_IPS) | (ucontrol->value.integer.value[0] ? AK411… in snd_ak4117_rx_put()
241 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_rate_get() argument
245 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, AK4117_REG_RCS1)); in snd_ak4117_rate_get()
257 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_spdif_get() argument
263 ucontrol->value.iec958.status[i] = reg_read(chip, AK4117_REG_RXCSB0 + i); in snd_ak4117_spdif_get()
275 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_spdif_mask_get() argument
277 memset(ucontrol->value.iec958.status, 0xff, AK4117_REG_RXCSB_SIZE); in snd_ak4117_spdif_mask_get()
291 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_spdif_pget() argument
296 ucontrol->value.integer.value[0] = 0xf8f2; in snd_ak4117_spdif_pget()
297 ucontrol->value.integer.value[1] = 0x4e1f; in snd_ak4117_spdif_pget()
299 ucontrol->value.integer.value[2] = tmp; in snd_ak4117_spdif_pget()
301 ucontrol->value.integer.value[3] = tmp; in snd_ak4117_spdif_pget()
313 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_spdif_qget() argument
319 ucontrol->value.bytes.data[i] = reg_read(chip, AK4117_REG_QSUB_ADDR + i); in snd_ak4117_spdif_qget()