commit | f839cc1cbd29f2160ef4e621b920e254cc84133a | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Fri May 19 20:04:23 2017 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Sun May 21 08:57:31 2017 +0200 |
tree | 70c472a4897b282059a54f3efe4f0940cedb62e0 | |
parent | dcab5fb7a5b0472e035da7dfe21168802c1b9d3b [diff] |
ALSA: pcm: Use a common helper for PCM state check and hwsync The mostly same codes for checking the current PCM state and calling hwsync are found in a few places. This patch simplifies them by creating a common helper function. It also fixes a couple of cases where we missed the proper state check (e.g. PAUSED state wasn't handled in rewind and snd_pcm_hwsync()), too. Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>