Home
last modified time | relevance | path

Searched refs:CODEC_VOL (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/audio/
H A Dvia-ac97.c42 #define CODEC_VOL(vol, mask) ((255 * ((vol) & mask)) / mask) macro
48 lvol = 255 - CODEC_VOL(CODEC_REG(s, AC97_Master_Volume_Mute) >> 8, 0x1f); in codec_volume_set_out()
49 lvol *= 255 - CODEC_VOL(CODEC_REG(s, AC97_PCM_Out_Volume_Mute) >> 8, 0x1f); in codec_volume_set_out()
51 rvol = 255 - CODEC_VOL(CODEC_REG(s, AC97_Master_Volume_Mute), 0x1f); in codec_volume_set_out()
52 rvol *= 255 - CODEC_VOL(CODEC_REG(s, AC97_PCM_Out_Volume_Mute), 0x1f); in codec_volume_set_out()