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)
commit6448fcba2a7fe6856ba74bef623559a00267f54e
tree34292efb425e1796764842a97268381425ac9fe1
parent763e5067aac91ce569a8b1212e6c31968bc7d325
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