ASoC: rt5645: store eq kcontrol byte in __be
authorBard liao <yung-chuan.liao@linux.intel.com>
Sat, 5 Jan 2019 02:02:48 +0000 (20:02 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 16:54:06 +0000 (16:54 +0000)
commit60b52ed627213d1782e70b9810f5668f61bba3a8
tree632fc988f918984254af4dbc40ae939fda10419d
parentb468f379e1e01b723825267431d3ba60f824fda2
ASoC: rt5645: store eq kcontrol byte in __be

The eq parameters binary is stored in __be. However, it is unsigned short
in rt5645_eq_param_s{} which will cause incorrect type assignment. So add
struct rt5645_eq_param_s_be16{} to store the eq binary and convert it to
unsigned short in rt5645->eq_param.

Cc: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c