]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerMark Brown <broonie@kernel.org>
Mon, 24 Apr 2017 17:48:07 +0000 (18:48 +0100)
commit9f2cf73ed65b598514e4858ca3d602710718ab93
tree7a856acca1f7ad37aed17142403b3e44c8f7f889
parent861886d338f7dd802be972e770a695bba62f397a
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>
sound/soc/intel/boards/bytcr_rt5640.c