Skip to contentSkip to conversation

ASoC: Intel: Fixed kbuild warnings

PATCH Applied [email protected] 2 participants 2 messages May 4, 2015 – May 5, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Intel: Fixed kbuild warnings

From: "Fang, Yang A" <[email protected]>

fix following sparse warnings: (new ones prefixed by >>)

Quoted 2 lines
Quoted 2 lines

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>

---
 sound/soc/intel/boards/cht_bsw_max98090_ti.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/intel/boards/cht_bsw_max98090_ti.c +1 -3
index 3c518b1..1be0794 100644
@@ -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(&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;
 }
 
Signature · 1 line
1.7.9.5