ASoC: rt5645: set in2_diff flag for GPD win and pocket devices
authorHans de Goede <hdegoede@redhat.com>
Tue, 2 Jan 2018 18:53:11 +0000 (19:53 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 3 Jan 2018 11:30:04 +0000 (11:30 +0000)
commit2dc6e1a4883a3eba451c76b726c23a580ed05307
tree4ff002ae4937a7570d7f1ba53d5843a27f400c22
parentaa9c387c2dc25597b730cd8386cac8ccfe75de07
ASoC: rt5645: set in2_diff flag for GPD win and pocket devices

The GPD pocket has a differential signal microphone and needs in2_diff
to be set to avoid getting a very noisy signal.

Since the GPD pocket and win use the same DMI strings, they share their
platform data-definition, so enabling in2_diff on the pocket also sets
it on the GPD win. The GPD win has a normal microphone, but setting
in2_diff there does not negatively impact the sound from the microphone.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c