aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/bytcr_dpcm_rt5640.c
diff options
context:
space:
mode:
authorFang, Yang A <yang.a.fang@intel.com>2015-02-09 00:18:12 -0800
committerMark Brown <broonie@kernel.org>2015-02-24 00:43:19 +0900
commit369a9f5f397fe3258ab937ec7a9c2229d0b1a015 (patch)
tree63df1de61c0a510aa0e4354b955359bb09f92069 /sound/soc/intel/bytcr_dpcm_rt5640.c
parentALSA: Add params_set_format helper (diff)
downloadlinux-dev-369a9f5f397fe3258ab937ec7a9c2229d0b1a015.tar.xz
linux-dev-369a9f5f397fe3258ab937ec7a9c2229d0b1a015.zip
ASoC: Intel: fix machine driver warnings
this patch will fix below sparse warnings warning: incorrect type in argument 2 (different base types) expected unsigned int [unsigned] val got restricted snd_pcm_format_t [usertype] <noident> sound/soc/intel/haswell.c:61:37 sound/soc/intel/broadwell.c:115:37: sound/soc/intel/bytcr_dpcm_rt5640.c:118:37: sound/soc/intel/cht_bsw_rt5672.c:183:37: sound/soc/intel/cht_bsw_rt5645.c:208:37: Signed-off-by: Fang, Yang A <yang.a.fang@intel.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/bytcr_dpcm_rt5640.c')
-rw-r--r--sound/soc/intel/bytcr_dpcm_rt5640.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/intel/bytcr_dpcm_rt5640.c b/sound/soc/intel/bytcr_dpcm_rt5640.c
index 59308629043e..3b262d01c1b3 100644
--- a/sound/soc/intel/bytcr_dpcm_rt5640.c
+++ b/sound/soc/intel/bytcr_dpcm_rt5640.c
@@ -113,9 +113,7 @@ static int byt_codec_fixup(struct snd_soc_pcm_runtime *rtd,
channels->min = channels->max = 2;
/* set SSP2 to 24-bit */
- snd_mask_set(&params->masks[SNDRV_PCM_HW_PARAM_FORMAT -
- SNDRV_PCM_HW_PARAM_FIRST_MASK],
- SNDRV_PCM_FORMAT_S24_LE);
+ params_set_format(params, SNDRV_PCM_FORMAT_S24_LE);
return 0;
}