mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-10 13:30:01 -05:00
Reduce compilation warnings
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
edcd677bf2
commit
49dde08641
9 changed files with 7 additions and 20 deletions
|
|
@ -332,9 +332,7 @@ static snd_pcm_sframes_t snd_pcm_mmap_emul_avail_update(snd_pcm_t *pcm)
|
|||
{
|
||||
mmap_emul_t *map = pcm->private_data;
|
||||
snd_pcm_t *slave = map->gen.slave;
|
||||
snd_pcm_sframes_t avail;
|
||||
|
||||
avail = snd_pcm_avail_update(slave);
|
||||
if (!map->mmap_emul || pcm->stream == SND_PCM_STREAM_PLAYBACK)
|
||||
map->hw_ptr = *slave->hw.ptr;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue