• Home
  • Raw
  • Download

Lines Matching refs:value

65 static int onyx_read_register(struct onyx *onyx, u8 reg, u8 *value)  in onyx_read_register()  argument
70 *value = onyx->cache[reg-FIRSTREGISTER]; in onyx_read_register()
75 *value = 0; in onyx_read_register()
78 *value = (u8)v; in onyx_read_register()
79 onyx->cache[ONYX_REG_CONTROL-FIRSTREGISTER] = *value; in onyx_read_register()
83 static int onyx_write_register(struct onyx *onyx, u8 reg, u8 value) in onyx_write_register() argument
87 result = i2c_smbus_write_byte_data(onyx->i2c, reg, value); in onyx_write_register()
89 onyx->cache[reg-FIRSTREGISTER] = value; in onyx_write_register()
113 uinfo->value.integer.min = -128 + VOLUME_RANGE_SHIFT; in onyx_snd_vol_info()
114 uinfo->value.integer.max = -1 + VOLUME_RANGE_SHIFT; in onyx_snd_vol_info()
129 ucontrol->value.integer.value[0] = l + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
130 ucontrol->value.integer.value[1] = r + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
141 if (ucontrol->value.integer.value[0] < -128 + VOLUME_RANGE_SHIFT || in onyx_snd_vol_put()
142 ucontrol->value.integer.value[0] > -1 + VOLUME_RANGE_SHIFT) in onyx_snd_vol_put()
144 if (ucontrol->value.integer.value[1] < -128 + VOLUME_RANGE_SHIFT || in onyx_snd_vol_put()
145 ucontrol->value.integer.value[1] > -1 + VOLUME_RANGE_SHIFT) in onyx_snd_vol_put()
152 if (l + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[0] && in onyx_snd_vol_put()
153 r + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[1]) { in onyx_snd_vol_put()
159 ucontrol->value.integer.value[0] in onyx_snd_vol_put()
162 ucontrol->value.integer.value[1] in onyx_snd_vol_put()
189 uinfo->value.integer.min = 3 + INPUTGAIN_RANGE_SHIFT; in onyx_snd_inputgain_info()
190 uinfo->value.integer.max = 28 + INPUTGAIN_RANGE_SHIFT; in onyx_snd_inputgain_info()
204 ucontrol->value.integer.value[0] = in onyx_snd_inputgain_get()
216 if (ucontrol->value.integer.value[0] < 3 + INPUTGAIN_RANGE_SHIFT || in onyx_snd_inputgain_put()
217 ucontrol->value.integer.value[0] > 28 + INPUTGAIN_RANGE_SHIFT) in onyx_snd_inputgain_put()
223 n |= (ucontrol->value.integer.value[0] - INPUTGAIN_RANGE_SHIFT) in onyx_snd_inputgain_put()
258 ucontrol->value.enumerated.item[0] = !!(v&ONYX_ADC_INPUT_MIC); in onyx_snd_capture_source_get()
279 if (ucontrol->value.enumerated.item[0] > 1) in onyx_snd_capture_source_put()
282 ucontrol->value.enumerated.item[0]); in onyx_snd_capture_source_put()
318 ucontrol->value.integer.value[0] = !(c & ONYX_MUTE_LEFT); in onyx_snd_mute_get()
319 ucontrol->value.integer.value[1] = !(c & ONYX_MUTE_RIGHT); in onyx_snd_mute_get()
338 if (!ucontrol->value.integer.value[0]) in onyx_snd_mute_put()
340 if (!ucontrol->value.integer.value[1]) in onyx_snd_mute_put()
379 ucontrol->value.integer.value[0] = !!(c & mask) ^ polarity; in onyx_snd_single_bit_get()
405 if (!!ucontrol->value.integer.value[0] ^ polarity) in onyx_snd_single_bit_put()
469 ucontrol->value.iec958.status[0] = 0x3e; in onyx_spdif_mask_get()
470 ucontrol->value.iec958.status[1] = 0xff; in onyx_spdif_mask_get()
472 ucontrol->value.iec958.status[3] = 0x3f; in onyx_spdif_mask_get()
473 ucontrol->value.iec958.status[4] = 0x0f; in onyx_spdif_mask_get()
494 ucontrol->value.iec958.status[0] = v & 0x3e; in onyx_spdif_get()
497 ucontrol->value.iec958.status[1] = v; in onyx_spdif_get()
500 ucontrol->value.iec958.status[3] = v & 0x3f; in onyx_spdif_get()
503 ucontrol->value.iec958.status[4] = v & 0x0f; in onyx_spdif_get()
517 v = (v & ~0x3e) | (ucontrol->value.iec958.status[0] & 0x3e); in onyx_spdif_put()
520 v = ucontrol->value.iec958.status[1]; in onyx_spdif_put()
524 v = (v & ~0x3f) | (ucontrol->value.iec958.status[3] & 0x3f); in onyx_spdif_put()
528 v = (v & ~0x0f) | (ucontrol->value.iec958.status[4] & 0x0f); in onyx_spdif_put()