mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-01-04 11:08:53 -05:00
Minor optimization on mmap
Minor optimization on mmap.
This commit is contained in:
parent
db1e39a4e8
commit
3ffeaf4cb1
1 changed files with 19 additions and 19 deletions
|
|
@ -421,7 +421,6 @@ int snd_pcm_mmap(snd_pcm_t *pcm)
|
|||
default:
|
||||
assert(0);
|
||||
}
|
||||
}
|
||||
for (c1 = c + 1; c1 < pcm->channels; ++c1) {
|
||||
snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1];
|
||||
if (i1->type != i->type)
|
||||
|
|
@ -443,6 +442,7 @@ int snd_pcm_mmap(snd_pcm_t *pcm)
|
|||
}
|
||||
i1->addr = i->addr;
|
||||
}
|
||||
}
|
||||
a->addr = i->addr;
|
||||
a->first = i->first;
|
||||
a->step = i->step;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue