]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: file: update linked hw_ptr and appl_ptr
authorAndreas Pape <apape@de.adit-jv.com>
Fri, 25 Nov 2016 10:25:05 +0000 (15:55 +0530)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Dec 2016 14:43:43 +0000 (15:43 +0100)
commitada1eb413938a7e9ddd3bd5fd3626e1774a35161
tree35ca236dbf4cdb73f7c8cabb5077d5687950392d
parente1e211208ab95f374a580c3c2649a1384b65065b
pcm: file: update linked hw_ptr and appl_ptr

Plugin file provides no private hw_ptr and appl_ptr but instead links
them to the slave pcm.  If the slave pcm itself changes its hw_ptr or
app_prt this needs to be done in file plugin, too.

Plugin 'plug' is such a candidate changing the hw_ptr and app_ptr in
hw_params call dependent on the automatically inserted plugins.  ALSA
unfortunately has no support for automatically updating chained
pointers.

A notification on pointer change seems to be prepared inside the
snd_pcm_set_ptr() routine via rbptr->changed(), but it is not (yet)
implemented so that we need to care for it manually.

Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_file.c