]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: hw: Call USER_PVERSION ioctl at open
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Jun 2017 12:21:20 +0000 (14:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 Jun 2017 09:45:22 +0000 (11:45 +0200)
commit8ef3805f1b80a6c6059e0d9efd404fe32697db15
treee16a9803188c1582c1b24432dea0028b1cfbcd3d
parent48bf3d3e964fbd34afd430632e8f2f5ca395d24c
pcm: hw: Call USER_PVERSION ioctl at open

Up from the new PCM protocol 2.0.14, user-space can inform the
protocol version it supports to kernel, so that the kernel may switch
its behavior depending on it.  Add this ioctl call in the PCM hw
plugin at opening.

The patch contains also the addition of SNDRV_PCM_INFO_SYNC_APPLPTR
carried from the upstream kernel commit 42f945970af9 ("ALSA: pcm: Add
the explicit appl_ptr sync support"), as well as the trivial change
(an addition of comma) to sync with the kernel asound.h.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asound.h
src/pcm/pcm_hw.c