[PATCH AUTOSEL 4.18 117/131] ALSA: sb: Fix PCM format bit calculation

2018-09-02 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 55ff2d1ea5487fe131cce399baf4503dcf5cc8e1 ] The PCM format type in snd_pcm_format_t can't be treated as integer implicitly since it's with __bitwise. We have already a helper function to get the bit index of the given type, and use it in each place instead.

[PATCH AUTOSEL 4.18 117/131] ALSA: sb: Fix PCM format bit calculation

2018-09-02 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 55ff2d1ea5487fe131cce399baf4503dcf5cc8e1 ] The PCM format type in snd_pcm_format_t can't be treated as integer implicitly since it's with __bitwise. We have already a helper function to get the bit index of the given type, and use it in each place instead.