]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: mediatek: mt8183-da7219: add speaker switch
authorTzung-Bi Shih <tzungbi@google.com>
Wed, 12 Feb 2020 05:55:17 +0000 (13:55 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 12 Feb 2020 19:44:34 +0000 (19:44 +0000)
commit514de1c935d1670e0f162210f3794cf0be67c8a7
tree32377409b60d6d856e255f19e0ff024c2a94a34e
parent128f825aeab79ebff9679a84f49105eda85ecf2c
ASoC: mediatek: mt8183-da7219: add speaker switch

Da7219 and max98357a share the same I2S lines.  When writing audio data
to the I2S, both codecs generate sound.

Da7219 already has a separate control "Headphone Switch".  Adds a new
control "Speakers Switch" for turning on/off max98357a.  Userspace
program can decide to turn on/off which codecs by different use cases.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20200212124608.2.I5fa3fdca69dbb5d3dd5031c939b9b24095065a94@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c