]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Unify playback and capture poll callbacks
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Apr 2018 16:05:00 +0000 (18:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Apr 2018 05:37:24 +0000 (07:37 +0200)
commitb226a49b9228c163e2cf6a2945785a94324c44e5
tree34292efb425e1796764842a97268381425ac9fe1
parentb8eca98adff7f6d367e0b6bbd9cebbf180f0cb4b
ALSA: pcm: Unify playback and capture poll callbacks

The poll callbacks for playback and capture directions are doing
fairly similar but with a slight difference.  This patch unifies the
two functions into a single callback.  The advantage of this
refactoring is that the direction-specific procedures become clearer.

There should be no functional change but only the code cleanup.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c