Fix 32/64bit problem with multi plugin

Fix the problems of multi plugin with 32bit apps on 64bit kernel.
The forward/backward of hw plugin are fixed, too.
This commit is contained in:
Takashi Iwai 2006-04-06 18:55:59 +02:00
parent 1128efc7d4
commit a2ee8e20e8
2 changed files with 10 additions and 4 deletions

View file

@ -424,8 +424,9 @@ static int snd_pcm_multi_prepare(snd_pcm_t *pcm)
int err = 0;
unsigned int i;
for (i = 0; i < multi->slaves_count; ++i) {
if (multi->slaves[i].linked)
continue;
/* We call prepare to each slave even if it's linked.
* This is to make sure to sync non-mmaped control/status.
*/
err = snd_pcm_prepare(multi->slaves[i].pcm);
if (err < 0)
return err;
@ -439,8 +440,7 @@ static int snd_pcm_multi_reset(snd_pcm_t *pcm)
int err = 0;
unsigned int i;
for (i = 0; i < multi->slaves_count; ++i) {
if (multi->slaves[i].linked)
continue;
/* Reset each slave, as well as in prepare */
err = snd_pcm_reset(multi->slaves[i].pcm);
if (err < 0)
return err;