ALSA: cs35l41: Check hw_config before using it
authorLucas Tanure <tanureal@opensource.cirrus.com>
Wed, 13 Apr 2022 08:37:14 +0000 (09:37 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Apr 2022 08:42:32 +0000 (10:42 +0200)
commit2603c974b45dbfeece80474ee32173756aac3ba1
treee1b926fa5ab245c9087b9f41abb55273093d5a8c
parentf7f207375d4e6eb9acc78d312eed8806b37d101a
ALSA: cs35l41: Check hw_config before using it

The driver can receive an empty hw_config, so mark as valid if
successfully read from device tree/ACPI or set by the driver itself.
Platforms not marked with a valid hw config will not be supported.

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220413083728.10730-3-tanureal@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/cs35l41.h
sound/pci/hda/cs35l41_hda.c
sound/soc/codecs/cs35l41-lib.c
sound/soc/codecs/cs35l41.c