mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
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:
parent
1128efc7d4
commit
a2ee8e20e8
2 changed files with 10 additions and 4 deletions
|
|
@ -624,6 +624,9 @@ static snd_pcm_sframes_t snd_pcm_hw_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t fra
|
|||
SYSMSG("SNDRV_PCM_IOCTL_REWIND failed");
|
||||
return err;
|
||||
}
|
||||
err = sync_ptr(hw, SNDRV_PCM_SYNC_PTR_APPL);
|
||||
if (err < 0)
|
||||
return err;
|
||||
return frames;
|
||||
}
|
||||
|
||||
|
|
@ -637,6 +640,9 @@ static snd_pcm_sframes_t snd_pcm_hw_forward(snd_pcm_t *pcm, snd_pcm_uframes_t fr
|
|||
SYSMSG("SNDRV_PCM_IOCTL_FORWARD failed");
|
||||
return err;
|
||||
}
|
||||
err = sync_ptr(hw, SNDRV_PCM_SYNC_PTR_APPL);
|
||||
if (err < 0)
|
||||
return err;
|
||||
return frames;
|
||||
} else {
|
||||
snd_pcm_sframes_t avail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue