Commit 9be51470 authored by John Watts's avatar John Watts Committed by Mark Brown

ASoC: sunxi: sun4i-i2s: Fix pcm_formats type specification

pcm_formats should be a u64 as it is a SNDRV_PCM_FMTBIT_* not a
SNDRV_PCM_FORMAT_*.

Also fix a small grammar error while we're here.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404170103.ySYwieqi-lkp@intel.com/Signed-off-by: default avatarJohn Watts <contact@jookia.org>
Link: https://lore.kernel.org/r/20240417-sunxi_s32_fix-v1-1-d82e451565c0@jookia.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9aea6d64
...@@ -156,7 +156,7 @@ struct sun4i_i2s; ...@@ -156,7 +156,7 @@ struct sun4i_i2s;
/** /**
* struct sun4i_i2s_quirks - Differences between SoC variants. * struct sun4i_i2s_quirks - Differences between SoC variants.
* @has_reset: SoC needs reset deasserted. * @has_reset: SoC needs reset deasserted.
* @pcm_formats: available PCM formats * @pcm_formats: available PCM formats.
* @reg_offset_txdata: offset of the tx fifo. * @reg_offset_txdata: offset of the tx fifo.
* @sun4i_i2s_regmap: regmap config to use. * @sun4i_i2s_regmap: regmap config to use.
* @field_clkdiv_mclk_en: regmap field to enable mclk output. * @field_clkdiv_mclk_en: regmap field to enable mclk output.
...@@ -176,7 +176,7 @@ struct sun4i_i2s; ...@@ -176,7 +176,7 @@ struct sun4i_i2s;
*/ */
struct sun4i_i2s_quirks { struct sun4i_i2s_quirks {
bool has_reset; bool has_reset;
snd_pcm_format_t pcm_formats; u64 pcm_formats;
unsigned int reg_offset_txdata; /* TX FIFO */ unsigned int reg_offset_txdata; /* TX FIFO */
const struct regmap_config *sun4i_i2s_regmap; const struct regmap_config *sun4i_i2s_regmap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment