/* vx_set_analog_output_level - set the output attenuation level @codec: the output codec, 0 or 1. (1 for VXP440 only) @left: left output level, 0 = mute @right: right output level  */
static void vx_set_analog_output_level(struct vx_core *chip, int codec, int left, int right)
/* vx_set_analog_output_level - set the output attenuation level @codec: the output codec, 0 or 1. (1 for VXP440 only) @left: left output level, 0 = mute @right: right output level  */
static void vx_set_analog_output_level(struct vx_core *chip, int codec, int left, int right)
{
	left  = chip->hw->output_level_max - left;
	right = chip->hw->output_level_max - right;
	if (chip->ops->akm_write) {
		chip->ops->akm_write(chip, XX_CODEC_LEVEL_LEFT_REGISTER, left);
		chip->ops->akm_write(chip, XX_CODEC_LEVEL_RIGHT_REGISTER, right);
	} else {
		vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_LEFT_REGISTER, left);
		vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_RIGHT_REGISTER, right);
	}
}