]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: mediatek: mt8192-mt6359: Go back to old headphone pin name
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Thu, 8 Jun 2023 22:10:48 +0000 (18:10 -0400)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jun 2023 09:44:38 +0000 (10:44 +0100)
commite352f31a863f47adfa54c76b633a21b1ed562387
tree0c53819fb77ec2bb5c084e815d389ea3a1f30be4
parent08e6c4bb17087584261c4aff555d32fc1c620b81
ASoC: mediatek: mt8192-mt6359: Go back to old headphone pin name

This reverts commit cbbc0ec6dea09c ("ASoC: mediatek: mt8192-mt6359:
Remove " Jack" from Headphone pin name"). That commit removed the "
Jack" suffix with the reasoning that it is automatically added to the
name of the kcontrol created, which is true, but this name is also used
to look for the DAPM widget that will be toggled when the jack status is
updated. Since the widget is still called "Headphone Jack" the jack
can't link to the widget and the following error is shown:

mt8192_mt6359 sound: ASoC: DAPM unknown pin Headphone

It is not possible to also rename the headphone DAPM widget because its
name is used by a switch kcontrol, "Headphone Jack Switch", both to link
to the headphone widget and to assemble its name. This switch's name is
referenced in the upstream UCM file, so renaming it would break
userspace. Since the original commit didn't bring any benefit, besides
sparing a few CPU cycles, simply revert it.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20230608221050.217968-1-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c