diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-30 09:46:51 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-03-30 09:46:51 +0200 |
commit | aa21c3d4b941739651e77747d2f7a20a6c1d87bc (patch) | |
tree | ae46596c4fe5803fbd4746459a09a09cff5487e8 /include/sound/pcm_params.h | |
parent | 476c02e0b4fd9071d158f6a1a1dfea1d36ee0ffd (diff) | |
parent | 652bb5d8df4b3a79ed350db35cda12637e63efa7 (diff) | |
download | kernel_replicant_linux-aa21c3d4b941739651e77747d2f7a20a6c1d87bc.tar.gz kernel_replicant_linux-aa21c3d4b941739651e77747d2f7a20a6c1d87bc.tar.bz2 kernel_replicant_linux-aa21c3d4b941739651e77747d2f7a20a6c1d87bc.zip |
Merge branch 'for-next' into for-linus
Diffstat (limited to 'include/sound/pcm_params.h')
-rw-r--r-- | include/sound/pcm_params.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sound/pcm_params.h b/include/sound/pcm_params.h index 661450a2095b..36f94735d23d 100644 --- a/include/sound/pcm_params.h +++ b/include/sound/pcm_params.h @@ -133,6 +133,13 @@ static inline int snd_mask_test(const struct snd_mask *mask, unsigned int val) return mask->bits[MASK_OFS(val)] & MASK_BIT(val); } +/* Most of drivers need only this one */ +static inline int snd_mask_test_format(const struct snd_mask *mask, + snd_pcm_format_t format) +{ + return snd_mask_test(mask, (__force unsigned int)format); +} + static inline int snd_mask_single(const struct snd_mask *mask) { int i, c = 0; |