• Home
  • Raw
  • Download

Lines Matching refs:mix

1233 	struct snd_emu10k1_pcm_mixer *mix =  in snd_emu10k1_send_routing_get()  local
1243 mix->send_routing[voice][idx] & mask; in snd_emu10k1_send_routing_get()
1253 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_routing_put() local
1263 if (mix->send_routing[voice][idx] != val) { in snd_emu10k1_send_routing_put()
1264 mix->send_routing[voice][idx] = val; in snd_emu10k1_send_routing_put()
1268 if (change && mix->epcm) { in snd_emu10k1_send_routing_put()
1269 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { in snd_emu10k1_send_routing_put()
1270 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_routing_put()
1271 &mix->send_routing[1][0]); in snd_emu10k1_send_routing_put()
1272 update_emu10k1_fxrt(emu, mix->epcm->voices[1]->number, in snd_emu10k1_send_routing_put()
1273 &mix->send_routing[2][0]); in snd_emu10k1_send_routing_put()
1274 } else if (mix->epcm->voices[0]) { in snd_emu10k1_send_routing_put()
1275 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_routing_put()
1276 &mix->send_routing[0][0]); in snd_emu10k1_send_routing_put()
1309 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_volume_get() local
1316 ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx]; in snd_emu10k1_send_volume_get()
1326 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_volume_put() local
1334 if (mix->send_volume[idx/num_efx][idx%num_efx] != val) { in snd_emu10k1_send_volume_put()
1335 mix->send_volume[idx/num_efx][idx%num_efx] = val; in snd_emu10k1_send_volume_put()
1339 if (change && mix->epcm) { in snd_emu10k1_send_volume_put()
1340 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { in snd_emu10k1_send_volume_put()
1341 update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_volume_put()
1342 &mix->send_volume[1][0]); in snd_emu10k1_send_volume_put()
1343 update_emu10k1_send_volume(emu, mix->epcm->voices[1]->number, in snd_emu10k1_send_volume_put()
1344 &mix->send_volume[2][0]); in snd_emu10k1_send_volume_put()
1345 } else if (mix->epcm->voices[0]) { in snd_emu10k1_send_volume_put()
1346 update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_volume_put()
1347 &mix->send_volume[0][0]); in snd_emu10k1_send_volume_put()
1378 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_attn_get() local
1385 ucontrol->value.integer.value[idx] = mix->attn[idx]; in snd_emu10k1_attn_get()
1395 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_attn_put() local
1402 if (mix->attn[idx] != val) { in snd_emu10k1_attn_put()
1403 mix->attn[idx] = val; in snd_emu10k1_attn_put()
1407 if (change && mix->epcm) { in snd_emu10k1_attn_put()
1408 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { in snd_emu10k1_attn_put()
1409 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[1]); in snd_emu10k1_attn_put()
1410 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[1]->number, mix->attn[2]); in snd_emu10k1_attn_put()
1411 } else if (mix->epcm->voices[0]) { in snd_emu10k1_attn_put()
1412 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[0]); in snd_emu10k1_attn_put()
1447 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_efx_send_routing_get() local
1456 mix->send_routing[0][idx] & mask; in snd_emu10k1_efx_send_routing_get()
1467 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_send_routing_put() local
1475 if (mix->send_routing[0][idx] != val) { in snd_emu10k1_efx_send_routing_put()
1476 mix->send_routing[0][idx] = val; in snd_emu10k1_efx_send_routing_put()
1481 if (change && mix->epcm) { in snd_emu10k1_efx_send_routing_put()
1482 if (mix->epcm->voices[ch]) { in snd_emu10k1_efx_send_routing_put()
1483 update_emu10k1_fxrt(emu, mix->epcm->voices[ch]->number, in snd_emu10k1_efx_send_routing_put()
1484 &mix->send_routing[0][0]); in snd_emu10k1_efx_send_routing_put()
1517 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_efx_send_volume_get() local
1524 ucontrol->value.integer.value[idx] = mix->send_volume[0][idx]; in snd_emu10k1_efx_send_volume_get()
1535 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_send_volume_put() local
1542 if (mix->send_volume[0][idx] != val) { in snd_emu10k1_efx_send_volume_put()
1543 mix->send_volume[0][idx] = val; in snd_emu10k1_efx_send_volume_put()
1547 if (change && mix->epcm) { in snd_emu10k1_efx_send_volume_put()
1548 if (mix->epcm->voices[ch]) { in snd_emu10k1_efx_send_volume_put()
1549 update_emu10k1_send_volume(emu, mix->epcm->voices[ch]->number, in snd_emu10k1_efx_send_volume_put()
1550 &mix->send_volume[0][0]); in snd_emu10k1_efx_send_volume_put()
1582 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_efx_attn_get() local
1587 ucontrol->value.integer.value[0] = mix->attn[0]; in snd_emu10k1_efx_attn_get()
1598 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_attn_put() local
1603 if (mix->attn[0] != val) { in snd_emu10k1_efx_attn_put()
1604 mix->attn[0] = val; in snd_emu10k1_efx_attn_put()
1607 if (change && mix->epcm) { in snd_emu10k1_efx_attn_put()
1608 if (mix->epcm->voices[ch]) { in snd_emu10k1_efx_attn_put()
1609 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[ch]->number, mix->attn[0]); in snd_emu10k1_efx_attn_put()
2045 struct snd_emu10k1_pcm_mixer *mix; in snd_emu10k1_mixer() local
2048 mix = &emu->pcm_mixer[pcm]; in snd_emu10k1_mixer()
2049 mix->epcm = NULL; in snd_emu10k1_mixer()
2052 mix->send_routing[0][v] = in snd_emu10k1_mixer()
2053 mix->send_routing[1][v] = in snd_emu10k1_mixer()
2054 mix->send_routing[2][v] = v; in snd_emu10k1_mixer()
2056 memset(&mix->send_volume, 0, sizeof(mix->send_volume)); in snd_emu10k1_mixer()
2057 mix->send_volume[0][0] = mix->send_volume[0][1] = in snd_emu10k1_mixer()
2058 mix->send_volume[1][0] = mix->send_volume[2][1] = 255; in snd_emu10k1_mixer()
2060 mix->attn[0] = mix->attn[1] = mix->attn[2] = 0xffff; in snd_emu10k1_mixer()
2065 struct snd_emu10k1_pcm_mixer *mix; in snd_emu10k1_mixer() local
2068 mix = &emu->efx_pcm_mixer[pcm]; in snd_emu10k1_mixer()
2069 mix->epcm = NULL; in snd_emu10k1_mixer()
2071 mix->send_routing[0][0] = pcm; in snd_emu10k1_mixer()
2072 mix->send_routing[0][1] = (pcm == 0) ? 1 : 0; in snd_emu10k1_mixer()
2074 mix->send_routing[0][2+v] = 13+v; in snd_emu10k1_mixer()
2077 mix->send_routing[0][4+v] = 60+v; in snd_emu10k1_mixer()
2079 memset(&mix->send_volume, 0, sizeof(mix->send_volume)); in snd_emu10k1_mixer()
2080 mix->send_volume[0][0] = 255; in snd_emu10k1_mixer()
2082 mix->attn[0] = 0xffff; in snd_emu10k1_mixer()