Home
last modified time | relevance | path

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

/openbmc/linux/sound/soc/codecs/aw88395/
H A Daw88395_device.c601 u16 reg_vcalk; in aw_dev_get_vcalk() local
610 reg_vcalk = (u16)reg_val & (~AW88395_EF_VSN_GESLP_MASK); in aw_dev_get_vcalk()
612 if (reg_vcalk & (~AW88395_EF_VSN_GESLP_SIGN_MASK)) in aw_dev_get_vcalk()
613 reg_vcalk = reg_vcalk | AW88395_EF_VSN_GESLP_SIGN_NEG; in aw_dev_get_vcalk()
615 *vcalk = (int16_t)reg_vcalk; in aw_dev_get_vcalk()
623 u16 reg_vcalk; in aw_dev_get_vcalk_dac() local
630 reg_vcalk = reg_val >> AW88395_EF_DAC_GESLP_SHIFT; in aw_dev_get_vcalk_dac()
632 if (reg_vcalk & AW88395_EF_DAC_GESLP_SIGN_MASK) in aw_dev_get_vcalk_dac()
633 reg_vcalk = reg_vcalk | AW88395_EF_DAC_GESLP_SIGN_NEG; in aw_dev_get_vcalk_dac()
635 *vcalk = (int16_t)reg_vcalk; in aw_dev_get_vcalk_dac()
/openbmc/linux/sound/soc/codecs/
H A Daw88261.c338 u16 reg_vcalk, reg_vcalkl; in aw88261_dev_get_vcalk() local
346 reg_vcalk = (u16)reg_val & (~AW88261_EF_VSN_GESLP_H_MASK); in aw88261_dev_get_vcalk()
354 reg_vcalk = (reg_vcalk >> AW88261_VCALK_SHIFT) & (reg_vcalkl >> AW88261_VCALKL_SHIFT); in aw88261_dev_get_vcalk()
356 if (reg_vcalk & AW88261_EF_VSN_GESLP_SIGN_MASK) in aw88261_dev_get_vcalk()
357 reg_vcalk = reg_vcalk | (~AW88261_EF_VSN_GESLP_NEG); in aw88261_dev_get_vcalk()
358 *vcalk = (int16_t)reg_vcalk; in aw88261_dev_get_vcalk()