Home
last modified time | relevance | path

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

/linux-6.12.1/sound/soc/codecs/aw88395/
Daw88395_device.c592 static int aw_dev_get_vcalk(struct aw_device *aw_dev, int16_t *vcalk) in aw_dev_get_vcalk() argument
609 *vcalk = (int16_t)reg_vcalk; in aw_dev_get_vcalk()
614 static int aw_dev_get_vcalk_dac(struct aw_device *aw_dev, int16_t *vcalk) in aw_dev_get_vcalk_dac() argument
629 *vcalk = (int16_t)reg_vcalk; in aw_dev_get_vcalk_dac()
662 int vcalb, vcalk; in aw_dev_set_vcalb() local
686 vcalk = AW88395_CABL_BASE_VALUE + AW88395_VCABLK_FACTOR * vcalk_val; in aw_dev_set_vcalb()
688 AW88395_ISCAL_FACTOR * icalk / vcalk * vcalb_adj; in aw_dev_set_vcalb()
691 AW88395_VCABLK_FACTOR, AW88395_VSCAL_FACTOR, icalk, vcalk); in aw_dev_set_vcalb()
697 vcalk = AW88395_CABL_BASE_VALUE + AW88395_VCABLK_FACTOR_DAC * vcalk_val; in aw_dev_set_vcalb()
699 AW88395_ISCAL_FACTOR * icalk / vcalk * vcalb_adj; in aw_dev_set_vcalb()
[all …]
/linux-6.12.1/sound/soc/codecs/
Daw88261.c335 static int aw88261_dev_get_vcalk(struct aw_device *aw_dev, int16_t *vcalk) in aw88261_dev_get_vcalk() argument
357 *vcalk = (int16_t)reg_vcalk; in aw88261_dev_get_vcalk()
365 int icalk, vcalk, vcalb; in aw88261_dev_set_vcalb() local
378 vcalk = AW88261_CABL_BASE_VALUE + AW88261_VCABLK_FACTOR * vcalk_val; in aw88261_dev_set_vcalb()
379 if (!vcalk) in aw88261_dev_set_vcalb()
382 vcalb = AW88261_VCAL_FACTOR * icalk / vcalk; in aw88261_dev_set_vcalb()
386 icalk, vcalk, vcalb, reg_val); in aw88261_dev_set_vcalb()
Daw88399.c364 static int aw88399_dev_get_vcalk(struct aw88399 *aw88399, int16_t *vcalk) in aw88399_dev_get_vcalk() argument
390 *vcalk = (int16_t)vcalk_val; in aw88399_dev_get_vcalk()
395 static int aw88399_dev_get_internal_vcalk(struct aw88399 *aw88399, int16_t *vcalk) in aw88399_dev_get_internal_vcalk() argument
422 *vcalk = (int16_t)vcalk_val; in aw88399_dev_get_internal_vcalk()
432 int16_t icalk, vcalk; in aw_dev_set_vcalb() local
452 ret = aw88399_dev_get_vcalk(aw88399, &vcalk); in aw_dev_set_vcalb()
453 vcal_k = vcalk * AW88399_VCABLK_FACTOR + AW88399_CABL_BASE_VALUE; in aw_dev_set_vcalb()
458 ret = aw88399_dev_get_internal_vcalk(aw88399, &vcalk); in aw_dev_set_vcalb()
459 vcal_k = vcalk * AW88399_VCABLK_DAC_FACTOR + AW88399_CABL_BASE_VALUE; in aw_dev_set_vcalb()