mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Reverted back code for generic mix function
This commit is contained in:
parent
e90d914915
commit
0b3b4b912d
1 changed files with 2 additions and 3 deletions
|
|
@ -641,9 +641,8 @@ static void mix_areas1(unsigned int size,
|
|||
|
||||
while (size-- > 0) {
|
||||
sample = *src;
|
||||
old_sample = *sum;
|
||||
if (*dst == 0)
|
||||
sample -= old_sample;
|
||||
sample -= *sum;
|
||||
*sum += sample;
|
||||
do {
|
||||
old_sample = *sum;
|
||||
|
|
@ -1375,7 +1374,7 @@ static int snd_pcm_dmix_initialize_slave(snd_pcm_dmix_t *dmix, snd_pcm_t *spcm,
|
|||
|
||||
ret = snd_pcm_sw_params(spcm, sw_params);
|
||||
if (ret < 0) {
|
||||
SNDERR("unable to install sw params");
|
||||
SNDERR("unable to install sw params (please upgrade to 0.9.0rc8+ driver)");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue