Lines Matching refs:kcontrol

160 static int snd_ca0106_shared_spdif_get(struct snd_kcontrol *kcontrol,  in snd_ca0106_shared_spdif_get()  argument
163 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_shared_spdif_get()
169 static int snd_ca0106_shared_spdif_put(struct snd_kcontrol *kcontrol, in snd_ca0106_shared_spdif_put() argument
172 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_shared_spdif_put()
185 static int snd_ca0106_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_info() argument
195 static int snd_ca0106_capture_source_get(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_get() argument
198 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_get()
204 static int snd_ca0106_capture_source_put(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_put() argument
207 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_put()
222 static int snd_ca0106_i2c_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_capture_source_info() argument
232 static int snd_ca0106_i2c_capture_source_get(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_capture_source_get() argument
235 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_i2c_capture_source_get()
241 static int snd_ca0106_i2c_capture_source_put(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_capture_source_put() argument
244 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_i2c_capture_source_put()
261 static int snd_ca0106_capture_line_in_side_out_info(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_line_in_side_out_info() argument
269 static int snd_ca0106_capture_mic_line_in_info(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_mic_line_in_info() argument
277 static int snd_ca0106_capture_mic_line_in_get(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_mic_line_in_get() argument
280 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_mic_line_in_get()
286 static int snd_ca0106_capture_mic_line_in_put(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_mic_line_in_put() argument
289 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_mic_line_in_put()
323 static int snd_ca0106_spdif_info(struct snd_kcontrol *kcontrol, in snd_ca0106_spdif_info() argument
339 static int snd_ca0106_spdif_get_default(struct snd_kcontrol *kcontrol, in snd_ca0106_spdif_get_default() argument
342 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_spdif_get_default()
343 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ca0106_spdif_get_default()
350 static int snd_ca0106_spdif_get_stream(struct snd_kcontrol *kcontrol, in snd_ca0106_spdif_get_stream() argument
353 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_spdif_get_stream()
354 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ca0106_spdif_get_stream()
361 static int snd_ca0106_spdif_get_mask(struct snd_kcontrol *kcontrol, in snd_ca0106_spdif_get_mask() argument
379 static int snd_ca0106_spdif_put_default(struct snd_kcontrol *kcontrol, in snd_ca0106_spdif_put_default() argument
382 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_spdif_put_default()
383 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ca0106_spdif_put_default()
399 static int snd_ca0106_spdif_put_stream(struct snd_kcontrol *kcontrol, in snd_ca0106_spdif_put_stream() argument
402 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_spdif_put_stream()
403 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ca0106_spdif_put_stream()
415 static int snd_ca0106_volume_info(struct snd_kcontrol *kcontrol, in snd_ca0106_volume_info() argument
425 static int snd_ca0106_volume_get(struct snd_kcontrol *kcontrol, in snd_ca0106_volume_get() argument
428 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_volume_get()
432 channel_id = (kcontrol->private_value >> 8) & 0xff; in snd_ca0106_volume_get()
433 reg = kcontrol->private_value & 0xff; in snd_ca0106_volume_get()
441 static int snd_ca0106_volume_put(struct snd_kcontrol *kcontrol, in snd_ca0106_volume_put() argument
444 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_volume_put()
448 channel_id = (kcontrol->private_value >> 8) & 0xff; in snd_ca0106_volume_put()
449 reg = kcontrol->private_value & 0xff; in snd_ca0106_volume_put()
462 static int snd_ca0106_i2c_volume_info(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_volume_info() argument
472 static int snd_ca0106_i2c_volume_get(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_volume_get() argument
475 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_i2c_volume_get()
478 source_id = kcontrol->private_value; in snd_ca0106_i2c_volume_get()
485 static int snd_ca0106_i2c_volume_put(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_volume_put() argument
488 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_i2c_volume_put()
494 source_id = kcontrol->private_value; in snd_ca0106_i2c_volume_put()
521 static int spi_mute_get(struct snd_kcontrol *kcontrol, in spi_mute_get() argument
524 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in spi_mute_get()
525 unsigned int reg = kcontrol->private_value >> SPI_REG_SHIFT; in spi_mute_get()
526 unsigned int bit = kcontrol->private_value & SPI_REG_MASK; in spi_mute_get()
532 static int spi_mute_put(struct snd_kcontrol *kcontrol, in spi_mute_put() argument
535 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in spi_mute_put()
536 unsigned int reg = kcontrol->private_value >> SPI_REG_SHIFT; in spi_mute_put()
537 unsigned int bit = kcontrol->private_value & SPI_REG_MASK; in spi_mute_put()