ASoC: Intel: boards: use snd_mask_set_format in all machine drivers
Fix Sparse warnings with two machine drivers which weren't updated Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
10583cdac2
commit
4e88068ed0
|
@ -164,7 +164,7 @@ static int geminilake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,
|
||||||
|
|
||||||
/* set SSP to 24 bit */
|
/* set SSP to 24 bit */
|
||||||
snd_mask_none(fmt);
|
snd_mask_none(fmt);
|
||||||
snd_mask_set(fmt, SNDRV_PCM_FORMAT_S24_LE);
|
snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S24_LE);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,
|
||||||
rate->min = rate->max = 48000;
|
rate->min = rate->max = 48000;
|
||||||
channels->min = channels->max = 2;
|
channels->min = channels->max = 2;
|
||||||
snd_mask_none(fmt);
|
snd_mask_none(fmt);
|
||||||
snd_mask_set(fmt, SNDRV_PCM_FORMAT_S24_LE);
|
snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S24_LE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -229,7 +229,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,
|
||||||
* thus changing the mask here
|
* thus changing the mask here
|
||||||
*/
|
*/
|
||||||
if (!strcmp(be_dai_link->name, "SSP0-Codec"))
|
if (!strcmp(be_dai_link->name, "SSP0-Codec"))
|
||||||
snd_mask_set(fmt, SNDRV_PCM_FORMAT_S16_LE);
|
snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S16_LE);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue