Searched refs:vol_val (Results 1 – 2 of 2) sorted by relevance
/Zephyr-Core-3.5.0/drivers/audio/ |
D | tas6422dac.c | 299 uint8_t vol_val; in codec_set_output_volume() local 306 vol_val = vol + 0xcf; in codec_set_output_volume() 309 codec_write_reg(dev, CH1_VOLUME_CTRL_ADDR, CH_VOLUME_CTRL_VOLUME(vol_val)); in codec_set_output_volume() 312 codec_write_reg(dev, CH2_VOLUME_CTRL_ADDR, CH_VOLUME_CTRL_VOLUME(vol_val)); in codec_set_output_volume() 315 codec_write_reg(dev, CH1_VOLUME_CTRL_ADDR, CH_VOLUME_CTRL_VOLUME(vol_val)); in codec_set_output_volume() 316 codec_write_reg(dev, CH2_VOLUME_CTRL_ADDR, CH_VOLUME_CTRL_VOLUME(vol_val)); in codec_set_output_volume()
|
D | tlv320dac310x.c | 439 uint8_t vol_val; in codec_set_output_volume() local 457 vol_val = HPX_ANA_VOL_FLOOR; in codec_set_output_volume() 465 vol_val = HPX_ANA_VOL_LOW_THRESH + vol_index + 1; in codec_set_output_volume() 467 vol_val = (uint8_t)vol; in codec_set_output_volume() 470 codec_write_reg(dev, HPL_ANA_VOL_CTRL_ADDR, HPX_ANA_VOL(vol_val)); in codec_set_output_volume() 471 codec_write_reg(dev, HPR_ANA_VOL_CTRL_ADDR, HPX_ANA_VOL(vol_val)); in codec_set_output_volume()
|