Lines Matching defs:codec
18 * write a codec data (24bit)
20 static void vx_write_codec_reg(struct vx_core *chip, int codec, unsigned int data)
29 chip->ops->write_codec(chip, codec, data);
69 * set up codec register and write the value
70 * @codec: the codec id, 0 or 1
74 static void vx_set_codec_reg(struct vx_core *chip, int codec, int reg, int val)
81 vx_write_codec_reg(chip, codec, data.l);
87 * @codec: the output codec, 0 or 1. (1 for VXP440 only)
91 static void vx_set_analog_output_level(struct vx_core *chip, int codec, int left, int right)
101 vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_LEFT_REGISTER, left);
102 vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_RIGHT_REGISTER, right);
413 int codec = kcontrol->id.index;
415 ucontrol->value.integer.value[0] = chip->output_level[codec][0];
416 ucontrol->value.integer.value[1] = chip->output_level[codec][1];
424 int codec = kcontrol->id.index;
433 if (val[0] != chip->output_level[codec][0] ||
434 val[1] != chip->output_level[codec][1]) {
435 vx_set_analog_output_level(chip, codec, val[0], val[1]);
436 chip->output_level[codec][0] = val[0];
437 chip->output_level[codec][1] = val[1];