Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1531601pxa; Sun, 16 Aug 2020 01:47:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTa35DWBCOx8pb46q9S4MoqabHn0GkjgsCKqWmW2/7rJWR3dyR1g+JM4av0pUIXpF0XaY0 X-Received: by 2002:a05:6402:1c88:: with SMTP id cy8mr10325716edb.24.1597567644694; Sun, 16 Aug 2020 01:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597567644; cv=none; d=google.com; s=arc-20160816; b=xBmCS6bb12j7EaTqNL+OX9vL0NgYLJirM4VnhvyJjnLH2ruGqcwiTOe00BHSca/47l Dm7rS0POSgqxUJ1xUGIgoT5TkjrCYp4DsrJ5IwhH+Wy+xSMF2gd/aNqIAf88I+Hb/e3/ lMd4nLTErpGcdROlPRg858z9kYvpNaUU5e2mJwr+tT36u5dgcjBUo+XON7RBZmoakW3c 73jJWqdEvFopXrdSaI9NJM/y9CDuSpmCjqoDg2ZEQcRSNqbmeNdSx2lG3MCNQzRgHBq3 1Bltd3kzivEBDnxnKjHFa3KRcja/lh0Hg5afQuyOOQr+WXGvuHKbTNMcvGGmJMhi16Nv dN5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=oahd77XfreeRbWy+HNgABF7XK6OejVT7ErpT6jT9Zbg=; b=qc7OXaf3GrZH+EFdtyR9MhZbjQV3HarQOrD7D40/NqrBA4vQ7VvGPWleH+DgXqj/sN ivTIk6uhSMNPQ66OQ7nvlilGIli47GU3geb2jvJrkCduMJ3ZrCXps0L9XFFV1rbiBNTy UD2DyD7PqfdOSIiwetW2A49Qbxmi17nEKo3BjzNPP8Q73sUj2uiVorpVJrqzca4VjhWh Ue2mqTbKn6ODNuwJKl9yu/vvcnXuy5KjMvs1bD/F0Q9arA+JgYke+J+gFVr2wMxVjc0T anKA5BJyiE7944WQJvITjZOCJ6IZkCrN5tOEwzup+xqgukWU1l4X+4heJEuKGOgqZzlu K68w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si8600490ejx.722.2020.08.16.01.47.02; Sun, 16 Aug 2020 01:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728870AbgHPHut (ORCPT + 99 others); Sun, 16 Aug 2020 03:50:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:35746 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728477AbgHPHut (ORCPT ); Sun, 16 Aug 2020 03:50:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0A2C4ADC1; Sun, 16 Aug 2020 07:51:12 +0000 (UTC) Date: Sun, 16 Aug 2020 09:50:47 +0200 Message-ID: From: Takashi Iwai To: Brent Lu Cc: alsa-devel@alsa-project.org, Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , Amadeusz =?UTF-8?B?U8WCYXdpxYRz?= =?UTF-8?B?a2k=?= , Guennadi Liakhovetski , Kai Vehmanen , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: hdac_hdmi: support 'ELD' mixer In-Reply-To: <20200814083436.19845-1-brent.lu@intel.com> References: <20200814083436.19845-1-brent.lu@intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Aug 2020 10:34:36 +0200, Brent Lu wrote: > @@ -1784,6 +1913,16 @@ int hdac_hdmi_jack_init(struct snd_soc_dai *dai, int device, > } > } > > + /* 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. thanks, Takashi