Lines Matching refs:value
151 ucontrol->value.integer.value[0] = emu->spdif_enable; in snd_ca0106_shared_spdif_get()
162 val = !!ucontrol->value.integer.value[0]; in snd_ca0106_shared_spdif_put()
186 ucontrol->value.enumerated.item[0] = emu->capture_source; in snd_ca0106_capture_source_get()
197 val = ucontrol->value.enumerated.item[0] ; in snd_ca0106_capture_source_put()
223 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; in snd_ca0106_i2c_capture_source_get()
237 source_id = ucontrol->value.enumerated.item[0] ; in snd_ca0106_i2c_capture_source_put()
268 ucontrol->value.enumerated.item[0] = emu->capture_mic_line_in; in snd_ca0106_capture_mic_line_in_get()
279 val = ucontrol->value.enumerated.item[0] ; in snd_ca0106_capture_mic_line_in_put()
331 decode_spdif_bits(ucontrol->value.iec958.status, in snd_ca0106_spdif_get_default()
342 decode_spdif_bits(ucontrol->value.iec958.status, in snd_ca0106_spdif_get_stream()
350 ucontrol->value.iec958.status[0] = 0xff; in snd_ca0106_spdif_get_mask()
351 ucontrol->value.iec958.status[1] = 0xff; in snd_ca0106_spdif_get_mask()
352 ucontrol->value.iec958.status[2] = 0xff; in snd_ca0106_spdif_get_mask()
353 ucontrol->value.iec958.status[3] = 0xff; in snd_ca0106_spdif_get_mask()
372 val = encode_spdif_bits(ucontrol->value.iec958.status); in snd_ca0106_spdif_put_default()
392 val = encode_spdif_bits(ucontrol->value.iec958.status); in snd_ca0106_spdif_put_stream()
406 uinfo->value.integer.min = 0; in snd_ca0106_volume_info()
407 uinfo->value.integer.max = 255; in snd_ca0106_volume_info()
415 unsigned int value; in snd_ca0106_volume_get() local
421 value = snd_ca0106_ptr_read(emu, reg, channel_id); in snd_ca0106_volume_get()
422 ucontrol->value.integer.value[0] = 0xff - ((value >> 24) & 0xff); /* Left */ in snd_ca0106_volume_get()
423 ucontrol->value.integer.value[1] = 0xff - ((value >> 16) & 0xff); /* Right */ in snd_ca0106_volume_get()
438 nval = ((0xff - ucontrol->value.integer.value[0]) << 24) | in snd_ca0106_volume_put()
439 ((0xff - ucontrol->value.integer.value[1]) << 16); in snd_ca0106_volume_put()
440 nval |= ((0xff - ucontrol->value.integer.value[0]) << 8) | in snd_ca0106_volume_put()
441 ((0xff - ucontrol->value.integer.value[1]) ); in snd_ca0106_volume_put()
453 uinfo->value.integer.min = 0; in snd_ca0106_i2c_volume_info()
454 uinfo->value.integer.max = 255; in snd_ca0106_i2c_volume_info()
466 ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0]; in snd_ca0106_i2c_volume_get()
467 ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1]; in snd_ca0106_i2c_volume_get()
482 ngain = ucontrol->value.integer.value[0]; in snd_ca0106_i2c_volume_put()
488 emu->i2c_capture_volume[source_id][0] = ucontrol->value.integer.value[0]; in snd_ca0106_i2c_volume_put()
492 ngain = ucontrol->value.integer.value[1]; in snd_ca0106_i2c_volume_put()
498 emu->i2c_capture_volume[source_id][1] = ucontrol->value.integer.value[1]; in snd_ca0106_i2c_volume_put()
514 ucontrol->value.integer.value[0] = !(emu->spi_dac_reg[reg] & bit); in spi_mute_get()
527 if (ucontrol->value.integer.value[0]) { in spi_mute_put()