[alsa-devel] [PATCH 5/9] ASoC: tegra: add Tegra210 based AHUB driver

Dmitry Osipenko digetx at gmail.com
Fri Jan 24 05:28:52 CET 2020


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.


More information about the Alsa-devel mailing list