ASoC: sun4i-codec: add h616 card long_name
authorRyan Walklin <ryan@testtoast.com>
Fri, 14 Feb 2025 22:02:27 +0000 (11:02 +1300)
committerMark Brown <broonie@kernel.org>
Thu, 13 Mar 2025 22:50:07 +0000 (22:50 +0000)
commitd389719fb4ece17ea28c0cf908066815d3ab0e25
treef06f5dc7f382af96f10e24e0ecdda289b819f364
parenta149377c033afe6557c50892ebbfc0e8b7e2e253
ASoC: sun4i-codec: add h616 card long_name

Adding jack detection requires sound servers to act on the emitted
events, which are described by ALSA Use Case Manager configurations in
userspace. These configurations include the long card name in the file
path (falling back to card->name if this is not present), so add a long
card name for the H616 without spaces, making UCM referencing easier.

The corresponding ALSA UCM patch is here (now merged):
https://github.com/alsa-project/alsa-ucm-conf/pull/491

Signed-off-by: Ryan Walklin <ryan@testtoast.com>
--
Changelog v1..v2:
- Separate patch for card->long_name
- Note UCM patch link

Changelog v2..v3:
- Add card->long_name rather than change existing card->name

Link: https://patch.msgid.link/20250214220247.10810-6-ryan@testtoast.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-codec.c