coefficients
&entry->coefficients);
struct cvb_coefficients coefficients;
static bool build_coefficients(struct gamma_coefficients *coefficients,
coefficients->a0[i] = dc_fixpt_from_fraction(
coefficients->a1[i] = dc_fixpt_from_fraction(
coefficients->a2[i] = dc_fixpt_from_fraction(
coefficients->a3[i] = dc_fixpt_from_fraction(
coefficients->user_gamma[i] = dc_fixpt_from_fraction(
} while (i != ARRAY_SIZE(coefficients->a0));
static const struct coefficients adm1075_coefficients[] = {
static const struct coefficients adm1272_coefficients[] = {
static const struct coefficients adm1275_coefficients[] = {
static const struct coefficients adm1276_coefficients[] = {
static const struct coefficients adm1278_coefficients[] = {
static const struct coefficients adm1293_coefficients[] = {
const struct coefficients *coefficients;
coefficients = adm1075_coefficients;
coefficients = adm1272_coefficients;
coefficients = adm1275_coefficients;
coefficients = adm1276_coefficients;
coefficients = adm1278_coefficients;
coefficients = adm1293_coefficients;
info->m[PSC_VOLTAGE_IN] = coefficients[vindex].m;
info->b[PSC_VOLTAGE_IN] = coefficients[vindex].b;
info->R[PSC_VOLTAGE_IN] = coefficients[vindex].R;
info->m[PSC_VOLTAGE_OUT] = coefficients[voindex].m;
info->b[PSC_VOLTAGE_OUT] = coefficients[voindex].b;
info->R[PSC_VOLTAGE_OUT] = coefficients[voindex].R;
coefficients[cindex].m * shunt / 1000;
info->b[PSC_CURRENT_OUT] = coefficients[cindex].b;
info->R[PSC_CURRENT_OUT] = coefficients[cindex].R;
coefficients[pindex].m * shunt / 1000;
info->b[PSC_POWER] = coefficients[pindex].b;
info->R[PSC_POWER] = coefficients[pindex].R;
info->m[PSC_TEMPERATURE] = coefficients[tindex].m;
info->b[PSC_TEMPERATURE] = coefficients[tindex].b;
info->R[PSC_TEMPERATURE] = coefficients[tindex].R;
goto coefficients;
coefficients:
u32 iris_hfi_gen2_get_matrix_coefficients(u32 coefficients)
switch (coefficients) {
u32 iris_hfi_gen2_get_matrix_coefficients(u32 coefficients);
static const struct coefficients vltg_coeff[4][4] = {
snd_nm256_write_buffer(chip, coefficients + offset, coeff_buf, size);
snd_nm256_write_buffer(chip, coefficients, chip->all_coeff_buf,
static const char coefficients[NM_TOTAL_COEFF_COUNT * 4] = {
s32 coefficients[AVS_COEFF_CHANNELS_MAX];
cfg.coefficients[i] = t->cfg_ext->updown_mix.coefficients[i];
.offset = offsetof(struct avs_tplg_modcfg_ext, updown_mix.coefficients[0]),
.offset = offsetof(struct avs_tplg_modcfg_ext, updown_mix.coefficients[1]),
.offset = offsetof(struct avs_tplg_modcfg_ext, updown_mix.coefficients[2]),
.offset = offsetof(struct avs_tplg_modcfg_ext, updown_mix.coefficients[3]),
.offset = offsetof(struct avs_tplg_modcfg_ext, updown_mix.coefficients[4]),
.offset = offsetof(struct avs_tplg_modcfg_ext, updown_mix.coefficients[5]),
.offset = offsetof(struct avs_tplg_modcfg_ext, updown_mix.coefficients[6]),
.offset = offsetof(struct avs_tplg_modcfg_ext, updown_mix.coefficients[7]),
s32 coefficients[AVS_COEFF_CHANNELS_MAX];