Lines Matching refs:store
421 struct snd_us16x08_comp_store *store = elem->private_data; in snd_us16x08_comp_get() local
425 ucontrol->value.integer.value[0] = store->val[val_idx][index]; in snd_us16x08_comp_get()
435 struct snd_us16x08_comp_store *store = elem->private_data; in snd_us16x08_comp_put() local
451 store->val[val_idx][index] = ucontrol->value.integer.value[0]; in snd_us16x08_comp_put()
457 buf[8] = store->val[ in snd_us16x08_comp_put()
460 buf[11] = ratio_map[store->val[ in snd_us16x08_comp_put()
462 buf[14] = store->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_ATTACK)][index] in snd_us16x08_comp_put()
464 buf[17] = store->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_RELEASE)][index] in snd_us16x08_comp_put()
466 buf[20] = store->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_GAIN)][index]; in snd_us16x08_comp_put()
467 buf[26] = store->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_SWITCH)][index]; in snd_us16x08_comp_put()
489 struct snd_us16x08_eq_store *store = elem->private_data; in snd_us16x08_eqswitch_get() local
493 val = store->val[EQ_STORE_BAND_IDX(elem->head.id)] in snd_us16x08_eqswitch_get()
505 struct snd_us16x08_eq_store *store = elem->private_data; in snd_us16x08_eqswitch_put() local
522 buf[17] = store->val[b_idx][2][index]; in snd_us16x08_eqswitch_put()
523 buf[14] = store->val[b_idx][1][index]; in snd_us16x08_eqswitch_put()
524 buf[11] = store->val[b_idx][0][index]; in snd_us16x08_eqswitch_put()
529 store->val[b_idx][3][index] = val; in snd_us16x08_eqswitch_put()
548 struct snd_us16x08_eq_store *store = elem->private_data; in snd_us16x08_eq_get() local
553 val = store->val[b_idx][p_idx][index]; in snd_us16x08_eq_get()
565 struct snd_us16x08_eq_store *store = elem->private_data; in snd_us16x08_eq_put() local
582 store->val[b_idx][p_idx][index] = val; in snd_us16x08_eq_put()
583 buf[20] = store->val[b_idx][3][index]; in snd_us16x08_eq_put()
584 buf[17] = store->val[b_idx][2][index]; in snd_us16x08_eq_put()
585 buf[14] = store->val[b_idx][1][index]; in snd_us16x08_eq_put()
586 buf[11] = store->val[b_idx][0][index]; in snd_us16x08_eq_put()
619 static int snd_get_meter_comp_index(struct snd_us16x08_meter_store *store) in snd_get_meter_comp_index() argument
624 if (store->comp_active_index) { in snd_get_meter_comp_index()
626 if (store->comp_active_index & 0x20) { in snd_get_meter_comp_index()
628 if (store->comp_index - in snd_get_meter_comp_index()
629 store->comp_active_index > 1) in snd_get_meter_comp_index()
630 store->comp_index = in snd_get_meter_comp_index()
631 store->comp_active_index; in snd_get_meter_comp_index()
633 ret = store->comp_index++ & 0x1F; in snd_get_meter_comp_index()
636 ret = store->comp_active_index; in snd_get_meter_comp_index()
640 while (!store->comp_store->val[ in snd_get_meter_comp_index()
642 [store->comp_index - 1] in snd_get_meter_comp_index()
643 && store->comp_index <= SND_US16X08_MAX_CHANNELS) { in snd_get_meter_comp_index()
644 store->comp_index++; in snd_get_meter_comp_index()
646 ret = store->comp_index++; in snd_get_meter_comp_index()
647 if (store->comp_index > SND_US16X08_MAX_CHANNELS) in snd_get_meter_comp_index()
648 store->comp_index = 1; in snd_get_meter_comp_index()
655 struct snd_us16x08_meter_store *store, in get_meter_levels_from_urb() argument
663 store->meter_level[MUB2(meter_urb, s) - 1] = val; in get_meter_levels_from_urb()
665 store->comp_level[MUB2(meter_urb, s) - 1] = val; in get_meter_levels_from_urb()
669 store->master_level[MUB2(meter_urb, s) - 1] = val; in get_meter_levels_from_urb()
689 struct snd_us16x08_meter_store *store = elem->private_data; in snd_us16x08_meter_get() local
717 tmp[2] = snd_get_meter_comp_index(store); in snd_us16x08_meter_get()
727 get_meter_levels_from_urb(set, store, meter_urb); in snd_us16x08_meter_get()
731 store ? store->meter_level[i] : 0; in snd_us16x08_meter_get()
734 ucontrol->value.integer.value[i++] = store ? store->master_level[0] : 0; in snd_us16x08_meter_get()
735 ucontrol->value.integer.value[i++] = store ? store->master_level[1] : 0; in snd_us16x08_meter_get()
739 store ? store->comp_level[i - 2] : 0; in snd_us16x08_meter_get()
748 struct snd_us16x08_meter_store *store = elem->private_data; in snd_us16x08_meter_put() local
757 store->comp_active_index = val; in snd_us16x08_meter_put()
758 store->comp_index = val; in snd_us16x08_meter_put()