24 Jan
2020
24 Jan
'20
5:28 a.m.
24.01.2020 06:39, Sameer Pujar пишет:
+static int tegra_ahub_put_value_enum(struct snd_kcontrol *kctl, + struct snd_ctl_elem_value *uctl) +{ + struct snd_soc_component *cmpnt = snd_soc_dapm_kcontrol_component(kctl); + struct tegra_ahub *ahub = snd_soc_component_get_drvdata(cmpnt); + struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctl); + struct soc_enum *e = (struct soc_enum *)kctl->private_value; + struct snd_soc_dapm_update update[TEGRA_XBAR_UPDATE_MAX_REG] = { };
Shouldn't this be {0} to make array zero'ed?
Isn't it the same with empty braces?
Looks like is should be the same because turns out GCC has an extension for that.