]> git.alsa-project.org Git - alsa-lib.git/commit
Fix wrong offset calculation in snd_pcm_{read|write}_mmap()
authorTakashi Iwai <tiwai@suse.de>
Thu, 20 Sep 2007 11:20:03 +0000 (13:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Sep 2007 11:20:03 +0000 (13:20 +0200)
commit67399e35ff47269c324c251e611531c70c8e71ef
tree9d13975065838b1ff855739afb1ee25f13f57993
parentcda4a3cb6109dca7628092b12ff7606ce9c4f62f
Fix wrong offset calculation in snd_pcm_{read|write}_mmap()

The offset used in snd_pcm_{read|write}_mmap() is not the linear offset
but the offset in a ring buffer.  It has to be rounded.
src/pcm/pcm_mmap.c