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

From: Dmitry Osipenko
Date: Thu Jan 23 2020 - 23:28:58 EST


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.