diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-26 00:17:19 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-26 19:09:06 +0300 |
commit | b5453e8ca311fdb6003c6583ad101d2b9131b994 (patch) | |
tree | 3a48b22ee89e5ee3bc7870ca4a89decd6e5d7ff6 /sound/soc/intel/boards/bxt_rt298.c | |
parent | 533a9274850b041b32fbe6d1df58a5c5b0b9e652 (diff) | |
download | linux-b5453e8ca311fdb6003c6583ad101d2b9131b994.tar.xz |
ASoC: intel: Fix snd_pcm_format_t handling
As sparse warns, the PCM format type can't be dealt as integer as
found in Intel SST driver codes.
Fix them in the following two ways:
- The open code with snd_mask_set() and params->masks reference is
replaced with params_set_format()
- The rest codes with snd_mask_set(fmt, SNDRV_PCM_FORMAT_XXX) are
replaced with the new helper, snd_mask_set_format().
Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/bxt_rt298.c')
-rw-r--r-- | sound/soc/intel/boards/bxt_rt298.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c index b68c289558a8..27308337ab12 100644 --- a/sound/soc/intel/boards/bxt_rt298.c +++ b/sound/soc/intel/boards/bxt_rt298.c @@ -221,7 +221,7 @@ static int broxton_ssp5_fixup(struct snd_soc_pcm_runtime *rtd, /* set SSP5 to 24 bit */ 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; } |