]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: Fix null string usage with WM8753 DAIs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 29 Jan 2009 13:08:20 +0000 (13:08 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 29 Jan 2009 13:14:21 +0000 (13:14 +0000)
The WM8753 driver multiplexes the DAI structures it exposes to the
outside world, leaving them uninitialised until the codec probes.  Since
the DAI name is used during the registration and setup process provide a
dummy name.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8753.c

index 6c21b50c93758f28c7aea6d59ae396405d232530..77620ab9875618f9217e8a6479b61478300c5ecf 100644 (file)
@@ -1451,7 +1451,14 @@ static const struct snd_soc_dai wm8753_all_dai[] = {
 },
 };
 
-struct snd_soc_dai wm8753_dai[2];
+struct snd_soc_dai wm8753_dai[] = {
+       {
+               .name = "WM8753 DAI 0",
+       },
+       {
+               .name = "WM8753 DAI 1",
+       },
+};
 EXPORT_SYMBOL_GPL(wm8753_dai);
 
 static void wm8753_set_dai_mode(struct snd_soc_codec *codec, unsigned int mode)