Lines Matching refs:vol
55 static int codec_set_output_volume(const struct device *dev, int vol);
157 return codec_set_output_volume(dev, val.vol); in codec_set_property()
437 static int codec_set_output_volume(const struct device *dev, int vol) in codec_set_output_volume() argument
445 if ((vol > CODEC_OUTPUT_VOLUME_MAX) || in codec_set_output_volume()
446 (vol < CODEC_OUTPUT_VOLUME_MIN)) { in codec_set_output_volume()
448 vol >> 1, ((uint32_t)vol & 1) ? 5 : 0); in codec_set_output_volume()
453 vol = -vol; in codec_set_output_volume()
456 if (vol > HPX_ANA_VOL_FLOOR) { in codec_set_output_volume()
458 } else if (vol > HPX_ANA_VOL_LOW_THRESH) { in codec_set_output_volume()
461 if (vol_array[vol_index] >= vol) { in codec_set_output_volume()
467 vol_val = (uint8_t)vol; in codec_set_output_volume()