summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai2018-07-25 23:17:20 +0200
committerMark Brown2018-07-26 18:09:07 +0200
commitebc22af0c9268dc4032326c20b02f2f227203330 (patch)
tree1f37f13f833e006f5f934f25b2e2d5735e6dbfcf /sound
parentASoC: intel: Fix snd_pcm_format_t handling (diff)
downloadkernel-qcow2-linux-ebc22af0c9268dc4032326c20b02f2f227203330.tar.gz
kernel-qcow2-linux-ebc22af0c9268dc4032326c20b02f2f227203330.tar.xz
kernel-qcow2-linux-ebc22af0c9268dc4032326c20b02f2f227203330.zip
ASoC: fsl: Use snd_mask_set_format()
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/fsl-asoc-card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 07808c6d5461..44433b20435c 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -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;
}