Home
last modified time | relevance | path

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

/sound/soc/codecs/
Dmax98390.c639 unsigned int rdc, rdc_cal_result, rdc_integer, rdc_factor, temp, val; in max98390_dsm_calib_put() local
653 regmap_read(max98390->regmap, THERMAL_RDC_RD_BACK_BYTE0, &rdc_cal_result); in max98390_dsm_calib_put()
666 rdc_cal_result |= (rdc << 8) & 0x0000FFFF; in max98390_dsm_calib_put()
667 if (rdc_cal_result) in max98390_dsm_calib_put()
668 max98390->ref_rdc_value = 268435456U / rdc_cal_result; in max98390_dsm_calib_put()
672 rdc_integer = rdc_cal_result * 937 / 65536; in max98390_dsm_calib_put()
673 rdc_factor = ((rdc_cal_result * 937 * 100) / 65536) - (rdc_integer * 100); in max98390_dsm_calib_put()
677 rdc_integer, rdc_factor, rdc_cal_result, temp); in max98390_dsm_calib_put()