RE: [PATCH] ASoC: hdac_hdmi: support 'ELD' mixer
From: Lu, Brent
Date: Mon Aug 17 2020 - 20:53:49 EST
> > + /* add control for ELD Bytes */
> > + err = hdac_hdmi_create_eld_ctl(component, pcm);
> > + if (err < 0) {
> > + dev_err(&hdev->dev,
> > + "eld control add failed with err: %d for pcm: %d\n",
> > + err, device);
> > + kfree(pcm);
>
> pcm is allocated vida devm_kzalloc(), hence you shoudn't free it explicitly.
Will fix it in v2. Thanks.
Brent
>
>
> thanks,
>
> Takashi