OSDN Git Service

ASoC: bytcr_rt5640: Allow quirk set via module option
authorTakashi Iwai <tiwai@suse.de>
Sun, 23 Apr 2017 07:22:56 +0000 (09:22 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 7 Jan 2018 13:31:54 +0000 (21:31 +0800)
commit538f556ca6cecd67d225f60f761029deaa8b0d71
tree24b326cd7c8972e126658bee2f532297637dd434
parenta00173aff5a654aa9a3f1365c155694017b3bc0c
ASoC: bytcr_rt5640: Allow quirk set via module option

The bytcr-rt5640 driver has a few quirk setups depending on the board,
where the quirk value is set by DMI matching.  When you have a new
device to add the support, you often experience to try the different
quirk by trial-and-error.  Or, you may have a development model that
still has no proper DMI string.  In either case, you'd need to compile
the driver at each time.

This patch introduces a module option to override the quirk value on
the fly.  User can boot like snd-soc-sst-bytcr-rt5640.quirk=0x4004 to
override the default value without recompilation.  It's a raw value,
so user needs to check the source code for the meaning of each bit.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: youling257 <youling257@gmail.com>
sound/soc/intel/boards/bytcr_rt5640.c