ASoC: rt5645: add fallback case for jack detection support
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 11 Jan 2018 20:05:11 +0000 (14:05 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 12 Jan 2018 12:27:54 +0000 (12:27 +0000)
commit5954c4a1455c3bc42acb2c286744eae1aaa00918
treecb799c54bf7cea4a0ee3abe17ad0825062e8ac77
parente61f3f31e5830f027d8eedb742bc48a9b3173699
ASoC: rt5645: add fallback case for jack detection support

Commit 78f5605c0329 ("ASoC: rt5645: cleanup DMI matching code") did a
lot of useful cleanups. This patch adds a default case to enable
jack detection if there is no pdata, device property or quirk.

The chosen jd-mode3 is the most common and should limit the addition
of new DMI-based quirks. Existing DMI quirks which only set this mode
are left as is and not removed.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c