OSDN Git Service

drm/vc4: Unify PCM card's driver_name
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Fri, 15 Jan 2021 19:12:09 +0000 (20:12 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 18 Jan 2021 10:03:59 +0000 (11:03 +0100)
commit33c74535b03ecf11359de14bc88302595b1de44f
tree7feed87f71db2fc47d098cf617a5d4ad5a2c3826
parentbf9eee249ac2032521677dd74e31ede5429afbc0
drm/vc4: Unify PCM card's driver_name

User-space ALSA matches a card's driver name against an internal list of
aliases in order to select the correct configuration for the system.
When the driver name isn't defined, the match is performed against the
card's name.

With the introduction of RPi4 we now have two HDMI ports with two
distinct audio cards. This is reflected in their names, making them
different from previous RPi versions. With this, ALSA ultimately misses
the board's configuration on RPi4.

In order to avoid this, set "card->driver_name" to "vc4-hdmi"
unanimously.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Fixes: f437bc1ec731 ("drm/vc4: drv: Support BCM2711")
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210115191209.12852-1-nsaenzjulienne@suse.de
drivers/gpu/drm/vc4/vc4_hdmi.c