ASoC: mediatek: common: Handle mediatek,accdet property

Handle the optional mediatek,accdet property. When present, retrieve the
sound component from its phandle, so the machine sound driver can use it
to register the audio jack and initialize the MT6359 ACCDET for jack
detection.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://patch.msgid.link/20250306-mt8188-accdet-v3-2-7828e835ff4b@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Nícolas F. R. A. Prado 2025-03-06 16:52:16 -03:00 • committed by Mark Brown
commit cf536e2622
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 19 additions and 1 deletions