Lines Matching refs:mix
1482 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_routing_get() local
1491 mix->send_routing[voice][idx] & mask; in snd_emu10k1_send_routing_get()
1499 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_routing_put() local
1509 if (mix->send_routing[voice][idx] != val) { in snd_emu10k1_send_routing_put()
1510 mix->send_routing[voice][idx] = val; in snd_emu10k1_send_routing_put()
1514 if (change && mix->epcm && mix->epcm->voices[0]) { in snd_emu10k1_send_routing_put()
1515 if (!mix->epcm->voices[0]->last) { in snd_emu10k1_send_routing_put()
1516 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_routing_put()
1517 &mix->send_routing[1][0]); in snd_emu10k1_send_routing_put()
1518 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number + 1, in snd_emu10k1_send_routing_put()
1519 &mix->send_routing[2][0]); in snd_emu10k1_send_routing_put()
1521 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_routing_put()
1522 &mix->send_routing[0][0]); in snd_emu10k1_send_routing_put()
1554 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_volume_get() local
1560 ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx]; in snd_emu10k1_send_volume_get()
1568 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_volume_put() local
1576 if (mix->send_volume[idx/num_efx][idx%num_efx] != val) { in snd_emu10k1_send_volume_put()
1577 mix->send_volume[idx/num_efx][idx%num_efx] = val; in snd_emu10k1_send_volume_put()
1581 if (change && mix->epcm && mix->epcm->voices[0]) { in snd_emu10k1_send_volume_put()
1582 if (!mix->epcm->voices[0]->last) { in snd_emu10k1_send_volume_put()
1583 update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_volume_put()
1584 &mix->send_volume[1][0]); in snd_emu10k1_send_volume_put()
1585 update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number + 1, in snd_emu10k1_send_volume_put()
1586 &mix->send_volume[2][0]); in snd_emu10k1_send_volume_put()
1588 update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_volume_put()
1589 &mix->send_volume[0][0]); in snd_emu10k1_send_volume_put()
1620 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_attn_get() local
1625 ucontrol->value.integer.value[idx] = mix->attn[idx] * 0xffffU / 0x8000U; in snd_emu10k1_attn_get()
1633 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_attn_put() local
1641 if (mix->attn[idx] != val) { in snd_emu10k1_attn_put()
1642 mix->attn[idx] = val; in snd_emu10k1_attn_put()
1646 if (change && mix->epcm && mix->epcm->voices[0]) { in snd_emu10k1_attn_put()
1647 if (!mix->epcm->voices[0]->last) { in snd_emu10k1_attn_put()
1648 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[1]); in snd_emu10k1_attn_put()
1649 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number + 1, mix->attn[2]); in snd_emu10k1_attn_put()
1651 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[0]); in snd_emu10k1_attn_put()
1685 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_efx_send_routing_get() local
1693 mix->send_routing[0][idx] & mask; in snd_emu10k1_efx_send_routing_get()
1702 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_send_routing_put() local
1710 if (mix->send_routing[0][idx] != val) { in snd_emu10k1_efx_send_routing_put()
1711 mix->send_routing[0][idx] = val; in snd_emu10k1_efx_send_routing_put()
1716 if (change && mix->epcm) { in snd_emu10k1_efx_send_routing_put()
1717 if (mix->epcm->voices[ch]) { in snd_emu10k1_efx_send_routing_put()
1718 update_emu10k1_fxrt(emu, mix->epcm->voices[ch]->number, in snd_emu10k1_efx_send_routing_put()
1719 &mix->send_routing[0][0]); in snd_emu10k1_efx_send_routing_put()
1751 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_efx_send_volume_get() local
1757 ucontrol->value.integer.value[idx] = mix->send_volume[0][idx]; in snd_emu10k1_efx_send_volume_get()
1766 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_send_volume_put() local
1773 if (mix->send_volume[0][idx] != val) { in snd_emu10k1_efx_send_volume_put()
1774 mix->send_volume[0][idx] = val; in snd_emu10k1_efx_send_volume_put()
1778 if (change && mix->epcm) { in snd_emu10k1_efx_send_volume_put()
1779 if (mix->epcm->voices[ch]) { in snd_emu10k1_efx_send_volume_put()
1780 update_emu10k1_send_volume(emu, mix->epcm->voices[ch]->number, in snd_emu10k1_efx_send_volume_put()
1781 &mix->send_volume[0][0]); in snd_emu10k1_efx_send_volume_put()
1813 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_efx_attn_get() local
1816 ucontrol->value.integer.value[0] = mix->attn[0] * 0xffffU / 0x8000U; in snd_emu10k1_efx_attn_get()
1825 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_attn_put() local
1832 if (mix->attn[0] != val) { in snd_emu10k1_efx_attn_put()
1833 mix->attn[0] = val; in snd_emu10k1_efx_attn_put()
1836 if (change && mix->epcm) { in snd_emu10k1_efx_attn_put()
1837 if (mix->epcm->voices[ch]) { in snd_emu10k1_efx_attn_put()
1838 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[ch]->number, mix->attn[0]); in snd_emu10k1_efx_attn_put()