diff options
author | Fang, Yang A <yang.a.fang@intel.com> | 2015-05-04 16:43:47 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-05 07:17:58 -0400 |
commit | 26f63c692f012ff665a8fd085a36549fe734f59f (patch) | |
tree | 38b7a56f34a32386d6fcad40451e4539c05569d9 | |
parent | c4ba51ba1c8f8e9dd51f63069eec88580f0e1d01 (diff) |
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] <noident>
Signed-off-by: Fang, Yang A <yang.a.fang@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/boards/cht_bsw_max98090_ti.c | 4 |
1 files changed, 1 insertions, 3 deletions
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, | |||
163 | channels->min = channels->max = 2; | 163 | channels->min = channels->max = 2; |
164 | 164 | ||
165 | /* set SSP2 to 24-bit */ | 165 | /* set SSP2 to 24-bit */ |
166 | snd_mask_set(¶ms->masks[SNDRV_PCM_HW_PARAM_FORMAT - | 166 | params_set_format(params, SNDRV_PCM_FORMAT_S24_LE); |
167 | SNDRV_PCM_HW_PARAM_FIRST_MASK], | ||
168 | SNDRV_PCM_FORMAT_S24_LE); | ||
169 | return 0; | 167 | return 0; |
170 | } | 168 | } |
171 | 169 | ||