]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: intel: Fix snd_pcm_format_t handling
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:17:19 +0000 (23:17 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 26 Jul 2018 16:09:06 +0000 (17:09 +0100)
commitd26445bf8820ba83d414f294c4b31bf379018aab
tree3a48b22ee89e5ee3bc7870ca4a89decd6e5d7ff6
parent0e8b83c43b9953a2eced4e5db4ad2f4ebef1c010
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>
sound/soc/intel/boards/bdw-rt5677.c
sound/soc/intel/boards/bxt_da7219_max98357a.c
sound/soc/intel/boards/bxt_rt298.c
sound/soc/intel/boards/kbl_da7219_max98357a.c
sound/soc/intel/boards/kbl_rt5663_max98927.c
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
sound/soc/intel/boards/skl_nau88l25_max98357a.c
sound/soc/intel/boards/skl_nau88l25_ssm4567.c
sound/soc/intel/boards/skl_rt286.c