OSDN Git Service

pcm: direct: Add generic hw_ptr_alignment function for dmix, dshare and dsnoop
authorVanitha Channaiah <vanitha.channaiah@in.bosch.com>
Wed, 15 May 2019 06:26:32 +0000 (11:56 +0530)
committerTakashi Iwai <tiwai@suse.de>
Wed, 15 May 2019 08:31:20 +0000 (10:31 +0200)
commit63ba5243ab7a33b77be5b65c0a8a2a0d5e26983f
tree6a54529265b4cd29076ec212b6f4820e6cd353f9
parent9122992a91334cd188203deba54cc077a91cd475
pcm: direct: Add generic hw_ptr_alignment function for dmix, dshare and dsnoop

Move the code snd_pcm_direct_reset_slave_ptr() from pcm_dmix.c
to pcm_direct.c and its header so that the helper function can be
re-used by other direct-pcm plugins.
There is no change in the behavior or the functionality.

Signed-off-by: Vanitha Channaiah <vanitha.channaiah@in.bosch.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_direct.c
src/pcm/pcm_direct.h
src/pcm/pcm_dmix.c