Skip to content

Commit d389719

Browse files
tokyovigilantebroonie
authored andcommitted
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): alsa-project/alsa-ucm-conf#491 Signed-off-by: Ryan Walklin <[email protected]> -- 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/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a149377 commit d389719

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/sunxi/sun4i-codec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,6 +2013,7 @@ static struct snd_soc_card *sun50i_h616_codec_create_card(struct device *dev)
20132013
card->dev = dev;
20142014
card->owner = THIS_MODULE;
20152015
card->name = "H616 Audio Codec";
2016+
card->long_name = "h616-audio-codec";
20162017
card->driver_name = "sun4i-codec";
20172018
card->controls = sun50i_h616_card_controls;
20182019
card->num_controls = ARRAY_SIZE(sun50i_h616_card_controls);

0 commit comments

Comments
 (0)