Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp421751ima; Wed, 6 Feb 2019 02:19:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IYQO7tCylsCJ2hmU8cY9Cnnydh7s1cV5PR8UHRBVDTWjlLBv3sJGNHdX0GlY8dd9CrVdQOr X-Received: by 2002:a65:47ca:: with SMTP id f10mr9092685pgs.166.1549448355587; Wed, 06 Feb 2019 02:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448355; cv=none; d=google.com; s=arc-20160816; b=PCpk/sZzVqXPCf4/NGYCk1N4xO4fipAKGWh7dfx1Jbblj8sBVj7P/2c6e97IpzIeEG 4Y9C0G6xbT/7XjcLUgTeTkwSSt/kdqrvvQr/GVpuWtkykgCfb7zqO2QReqqf6LFm7KTd kp1fgetPHfPiyDpWiHacHw5H6TDZmPgl0vEt7DfZS+BsomDroGY2PjLKKRy7yfmy8RHb u9kTfWutfDPI4XQZ02KzfmXky2f+6Bvv6c0a6U0EgoqzuzhMFbM5uBGxn5GZ8K+GxniK x6BVzlnGeeJcRJpSzmEhf66SsKzWOA1VvLAdwA3bgSW+CGl9uLknkYnL4cxvO16DPVlH m3fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=+hfuCQ2OkLcOCo4yTkiXbSL8MXk8GzdcQ5bF9jfJYEY=; b=GPGd3nq9bN04rC3EEIg+iuiJdGzSqOsJDnDziKAEPMBPqklC+mzjF4Y72LlinkzIfQ gXfW+82LSv5B8vj6Ejt4QXjpsjefo37HJnx9ND/zt78tDr7EGWThL43GswWgYRRPD8Ju /3yls5Ju9Lzi5ch/xtCel45RknA5ejQLqnc+0VUGVVGYz0H6BeMZsZqrUaO9kPHOpERL sfUXlBzUrMkiV75ygiDqiC1VzpYkGJxedveFBySyKhhn2dp6v0DuKK7BvWAnjXeh70i7 U8RPQluqqIUT8neDPZmhEUMaq+WJ1pQUUyMyYGfoxoKa5sQQT2ScbhChC29OU32xHtV4 j7EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=l5198oGQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y123si5711741pfy.18.2019.02.06.02.18.59; Wed, 06 Feb 2019 02:19:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=l5198oGQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728670AbfBFKSO (ORCPT + 99 others); Wed, 6 Feb 2019 05:18:14 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:44688 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbfBFKSO (ORCPT ); Wed, 6 Feb 2019 05:18:14 -0500 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20190206101808epoutp024d80c7583b5ea6592df7c0386fa45951~AvwJF69J60878908789epoutp02C; Wed, 6 Feb 2019 10:18:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20190206101808epoutp024d80c7583b5ea6592df7c0386fa45951~AvwJF69J60878908789epoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1549448288; bh=+hfuCQ2OkLcOCo4yTkiXbSL8MXk8GzdcQ5bF9jfJYEY=; h=Subject:To:Cc:From:Date:In-reply-to:References:From; b=l5198oGQI/GfLm5sCpUMuBakoXxdI9Jk4dI3GJP3YlFRQ9wk7H4fJ4pSrjvEVzO3a 0Bx3LowETuCkBmb/NWZpsWI9wyOMJgTBExa+ozWfNMB5H5P1aFTPlilfoBc5h7vQ66 7dwBw1ZAtrqiKOa3D2/J0rLR59SAaNkyiyINaA08= Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20190206101807epcas1p2afc45db986ff5b4e31fe0d7c06f9d883~AvwH-xEVm0332003320epcas1p2s; Wed, 6 Feb 2019 10:18:07 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id E4.AC.04074.F54BA5C5; Wed, 6 Feb 2019 19:18:07 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20190206101806epcas1p4788ddeb1e8c89a92b2586d5725b592d1~AvwHQg_CJ1391913919epcas1p4s; Wed, 6 Feb 2019 10:18:06 +0000 (GMT) X-AuditID: b6c32a35-27fff70000000fea-1b-5c5ab45f5acd Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 3C.79.04015.E54BA5C5; Wed, 6 Feb 2019 19:18:06 +0900 (KST) Received: from [106.116.147.40] by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PMI00M8W1Y1BA90@mmp2.samsung.com>; Wed, 06 Feb 2019 19:18:06 +0900 (KST) Subject: Re: [PATCH] ASoC: dapm: Check for NULL widget in dapm_update_dai_unlocked To: Charles Keepax Cc: Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Marek Szyprowski From: Sylwester Nawrocki Message-id: Date: Wed, 06 Feb 2019 11:18:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-version: 1.0 In-reply-to: <20190206100549.GO3837@imbe.wolfsonmicro.main> Content-type: text/plain; charset="utf-8" Content-language: en-GB Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJKsWRmVeSWpSXmKPExsWy7bCmvm78lqgYgx2rmS2uXDzEZDH14RM2 iyutmxgtzp/fwG7x7UoHk8XlXXPYLGac38dksfbIXXaLzl39rBYbvq9ldODy2PC5ic1j56y7 7B6bVnWyeUyf85/RY9/bZWwefVtWMXqs33KVxePzJrkAjigum5TUnMyy1CJ9uwSujBO7FrEV 7OCoOHq0qIHxGVsXIyeHhICJxIUDk5m7GLk4hAR2MErcmnSJDcL5zijx4nEnC0zV10/bWCAS Gxgl3j9bAlV1n1GifV0TM0iVsECIxOwpS1lBbBEBI4mPx28xgRQxCxxlkli45h9YEZuAoUTv 0T5GEJtXwE5i0b2dQDYHB4uAqsSa57EgYVGBCInDve+gSgQlfky+B3YFp4C1ROvbI2A2s4Cm xIsvk6BscYlj928yQtjyEpvXvAX7R0LgP5tER/s1qEddJM48WccKsktCQFri0lFbiHC1xK7t 3VD1HYwSLRe2M0MkrCUOH7/ICjGUT+Ld1x6oXl6JjjYhiBIPib7FbdBQec4oMX/bNvYJjDKz kNw9C8mts5DcOgvJrQsYWVYxiqUWFOempxYbFhjqFSfmFpfmpesl5+duYgQnGC3THYxTzvkc YhTgYFTi4dXojowRYk0sK67MPcQowcGsJMJrPiMqRog3JbGyKrUoP76oNCe1+BCjNAeLkjjv egfn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wIAAA== X-CMS-MailID: 20190206101806epcas1p4788ddeb1e8c89a92b2586d5725b592d1 CMS-TYPE: 101P X-CMS-RootMailID: 20190205211638epcas3p409823d4acac8073473153d745151ea5f References: <20190205211622.GA5891@kozik-lap> <844c3f34-f7db-6b26-169a-994922367c78@samsung.com> <20190206100549.GO3837@imbe.wolfsonmicro.main> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/6/19 11:05, Charles Keepax wrote: > DAIs linked to the dummy will not have an associated playback/capture > widget, so we need to skip the update in that case. > > Fixes: 078a85f2806f ("ASoC: dapm: Only power up active channels from a DAI") > Signed-off-by: Charles Keepax Tested-by: Sylwester Nawrocki > --- > > Ok so that all makes sense, this patch is probably the best fix? It seems so, everything works well with such change, thank you. > sound/soc/soc-dapm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c > index 482ddb825fb59..5235d8828758a 100644 > --- a/sound/soc/soc-dapm.c > +++ b/sound/soc/soc-dapm.c > @@ -2570,6 +2570,9 @@ static int dapm_update_dai_unlocked(struct snd_pcm_substream *substream, > else > w = dai->capture_widget; > > + if (!w) > + return 0; > + > dev_dbg(dai->dev, "Update DAI routes for %s %s\n", dai->name, > dir == SNDRV_PCM_STREAM_PLAYBACK ? "playback" : "capture"); >