Home
last modified time | relevance | path

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

/linux-6.12.1/sound/soc/codecs/
Drt722-sdca.c356 const unsigned int interval_offset = 0xc0; in rt722_sdca_set_gain_put() local
376 gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset); in rt722_sdca_set_gain_put()
378 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt722_sdca_set_gain_put()
392 gain_r_val = 0x1e00 - ((mc->max - gain_r_val) * interval_offset); in rt722_sdca_set_gain_put()
394 gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset); in rt722_sdca_set_gain_put()
426 const unsigned int interval_offset = 0xc0; in rt722_sdca_set_gain_get() local
440 ctl_l = mc->max - (((0x1e00 - read_l) & 0xffff) / interval_offset); in rt722_sdca_set_gain_get()
442 ctl_l = mc->max - (((0 - read_l) & 0xffff) / interval_offset); in rt722_sdca_set_gain_get()
450 ctl_r = mc->max - (((0x1e00 - read_r) & 0xffff) / interval_offset); in rt722_sdca_set_gain_get()
452 ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset); in rt722_sdca_set_gain_get()
[all …]
Drt712-sdca.c498 const unsigned int interval_offset = 0xc0; in rt712_sdca_set_gain_put() local
517 gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset); in rt712_sdca_set_gain_put()
519 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt712_sdca_set_gain_put()
533 gain_r_val = 0x1e00 - ((mc->max - gain_r_val) * interval_offset); in rt712_sdca_set_gain_put()
535 gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset); in rt712_sdca_set_gain_put()
564 const unsigned int interval_offset = 0xc0; in rt712_sdca_set_gain_get() local
577 ctl_l = mc->max - (((0x1e00 - read_l) & 0xffff) / interval_offset); in rt712_sdca_set_gain_get()
579 ctl_l = mc->max - (((0 - read_l) & 0xffff) / interval_offset); in rt712_sdca_set_gain_get()
587 ctl_r = mc->max - (((0x1e00 - read_r) & 0xffff) / interval_offset); in rt712_sdca_set_gain_get()
589 ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset); in rt712_sdca_set_gain_get()
[all …]
Drt1320-sdw.c3910 const unsigned int interval_offset = 0xc0; in rt1320_set_gain_put() local
3919 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt1320_set_gain_put()
3926 gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset); in rt1320_set_gain_put()
3948 const unsigned int interval_offset = 0xc0; in rt1320_set_gain_get() local
3953 ctl_l = mc->max - (((0 - read_l) & 0xffff) / interval_offset); in rt1320_set_gain_get()
3956 ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset); in rt1320_set_gain_get()
Drt712-sdca-dmic.c255 const unsigned int interval_offset = 0xc0; in rt712_sdca_dmic_set_gain_get() local
268 ctl = p->max - (((0x1e00 - regvalue) & 0xffff) / interval_offset); in rt712_sdca_dmic_set_gain_get()
270 ctl = p->max - (((0 - regvalue) & 0xffff) / interval_offset); in rt712_sdca_dmic_set_gain_get()
289 const unsigned int interval_offset = 0xc0; in rt712_sdca_dmic_set_gain_put() local
306 gain_val[i] = 0x1e00 - ((p->max - gain_val[i]) * interval_offset); in rt712_sdca_dmic_set_gain_put()