OSDN Git Service

ASoC: Intel: cht_bsw_rt5645: Analog Mic support
authorHans de Goede <hdegoede@redhat.com>
Tue, 2 Jan 2018 18:53:14 +0000 (19:53 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 3 Jan 2018 11:35:47 +0000 (11:35 +0000)
commitb70b309950418437bbd2a30afd169c4f09dee3e5
tree39ca4623d5ec7be231878accb3ee5efb02fe4537
parenta249a95667f4f814b9b15f4b59049ffe68b5677f
ASoC: Intel: cht_bsw_rt5645: Analog Mic support

Various Cherry Trail boards with a rt5645 codec have an analog mic
connected to IN2P + IN2N. The mic on this boards also needs micbias to
be enabled, on some boards micbias1 is used and on others micbias2, so
we enable both.

This commit adds a new "Int Analog Mic" DAPM widget for this, so that we
do not end up enabling micbias on boards with a digital mic which uses
the already present "Int Mic" widget. Some existing UCM files already
refer to "Int Mic" for their "Internal Analog Microphones" SectionDevice,
but these don't work anyways since they enable the RECMIX BST1 Switch
instead of the BST2 switch.

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