]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: Intel: bytcr_rt5651: Add support for externar amplifier enable GPIO
authorHans de Goede <hdegoede@redhat.com>
Sun, 1 Jul 2018 18:36:31 +0000 (20:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 10 Jul 2018 17:49:23 +0000 (18:49 +0100)
commit5f6fb23d2e114506ddb8437a3e65f4a20d081013
tree74de42cdb1dcdfc6a74dd8eefcf688c84a910121
parent2c375204bfad2f481feb006a82cdb67cc570b670
ASoC: Intel: bytcr_rt5651: Add support for externar amplifier enable GPIO

The rt5651 does not have a built-in speaker amplifier, so it is often
used together with an external amplifier. On Cherry Trail boards this
external amplifier's enable pin is driven through a GPIO, which is
given as the first GPIO in the ACPI resources of the codec fwnode.

This commit adds support to the bytcr_rt5651 for this GPIO, fixing
the speaker not working on CHT devices with a rt5651 codec.

Cc: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5651.c