]> git.baikalelectronics.ru Git - kernel.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)
commite891ff2ae0ba12ea71737cd94c652ac70f104271
tree7a856acca1f7ad37aed17142403b3e44c8f7f889
parent7269b2b1a7bad87475e8bca3571f3b842e45603d
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