OSDN Git Service

ASoC: fsl: Use snd_mask_set_format()
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:17:20 +0000 (23:17 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 26 Jul 2018 16:09:07 +0000 (17:09 +0100)
Use the new helper function snd_mask_set_format() for avoiding the
ugly cast with __force prefix.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c

index 07808c6..44433b2 100644 (file)
@@ -195,7 +195,7 @@ static int be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
 
        mask = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
        snd_mask_none(mask);
-       snd_mask_set(mask, (__force int)priv->asrc_format);
+       snd_mask_set_format(mask, priv->asrc_format);
 
        return 0;
 }