From: Fang, Yang A Date: Mon, 4 May 2015 20:43:47 +0000 (-0700) Subject: ASoC: Intel: Fixed kbuild warnings X-Git-Tag: v4.2-rc1~109^2~38^2~6^4~22 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=26f63c692f012ff665a8fd085a36549fe734f59f;p=karo-tx-linux.git ASoC: Intel: Fixed kbuild warnings fix following sparse warnings: (new ones prefixed by >>) >> sound/soc/intel/boards/cht_bsw_max98090_ti.c:168:37: sparse: >> incorrect type in argument 2 (different base types) sound/soc/intel/boards/cht_bsw_max98090_ti.c:168:37: expected unsigned int [unsigned] val sound/soc/intel/boards/cht_bsw_max98090_ti.c:168:37: got restricted snd_pcm_format_t [usertype] Signed-off-by: Fang, Yang A Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/cht_bsw_max98090_ti.c b/sound/soc/intel/boards/cht_bsw_max98090_ti.c index 3c518b1ec49d..1be079423d1e 100644 --- a/sound/soc/intel/boards/cht_bsw_max98090_ti.c +++ b/sound/soc/intel/boards/cht_bsw_max98090_ti.c @@ -163,9 +163,7 @@ static int cht_codec_fixup(struct snd_soc_pcm_runtime *rtd, channels->min = channels->max = 2; /* set SSP2 to 24-bit */ - snd_mask_set(¶ms->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; }