Lines Matching refs:c
62 #define codec_to_onyx(c) container_of(c, struct onyx, codec) argument
312 u8 c; in onyx_snd_mute_get() local
315 onyx_read_register(onyx, ONYX_REG_DAC_CONTROL, &c); in onyx_snd_mute_get()
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()
328 u8 v = 0, c = 0; in onyx_snd_mute_put() local
336 c = v; in onyx_snd_mute_put()
337 c &= ~(ONYX_MUTE_RIGHT | ONYX_MUTE_LEFT); in onyx_snd_mute_put()
339 c |= ONYX_MUTE_LEFT; in onyx_snd_mute_put()
341 c |= ONYX_MUTE_RIGHT; in onyx_snd_mute_put()
342 err = onyx_write_register(onyx, ONYX_REG_DAC_CONTROL, c); in onyx_snd_mute_put()
347 return !err ? (v != c) : err; in onyx_snd_mute_put()
369 u8 c; in onyx_snd_single_bit_get() local
376 onyx_read_register(onyx, address, &c); in onyx_snd_single_bit_get()
379 ucontrol->value.integer.value[0] = !!(c & mask) ^ polarity; in onyx_snd_single_bit_get()
388 u8 v = 0, c = 0; in onyx_snd_single_bit_put() local
403 c = v; in onyx_snd_single_bit_put()
404 c &= ~(mask); in onyx_snd_single_bit_put()
406 c |= mask; in onyx_snd_single_bit_put()
407 err = onyx_write_register(onyx, address, c); in onyx_snd_single_bit_put()
412 return !err ? (v != c) : err; in onyx_snd_single_bit_put()