Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5009433ybv; Mon, 17 Feb 2020 10:18:34 -0800 (PST) X-Google-Smtp-Source: APXvYqznKr07qHDhI0HhgrU3BBoZqJc5AvngIVEWMBFLBg30Gdju2KtY6RORqMDmhl5CgAfkgQao X-Received: by 2002:a05:6808:a11:: with SMTP id n17mr205969oij.94.1581963514714; Mon, 17 Feb 2020 10:18:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581963514; cv=none; d=google.com; s=arc-20160816; b=wVcLz407WXLpuezqUN/cCkm5qvTWgx4OKZKg/2WsM5oLg8e7ZqrY9hvqE4htsbxIRL jgvuOOQnhTagREeXUnST5cNhIo+eWpL5hTXxv83KAL1DZGRf0kgOHyzdNNwp1SWnV+rQ hAnE96DD3t4vygS+alMZCGVz/0oyNL1FWKrgnCxduxKAEO1rsrQs7rcsHVS7CpVRgRGh oooJmCRE0XO7rR69+by3oeODMa0gKrx/RWpfd/SOhVhHET4cMxnUZrKqHTq8d1BOop5B 7IjdLZibarJ03yxFpbX2m+VxDPP4+0EDSMfWZSHdne98KQPCaqzYKk9EesiwisMt1D9A WbmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lUOr/P7Co+hhxw3FCW0w5zsARxmb/fCKtBS8bbYtmB8=; b=KQQzg5FyPZ8kzXnya+1iZAys/3n6P4PCbhrh0zUUbgpwtN9hzwmNijRUJeZiGAKsrv taA29nUuS7Ar6d09qg6Rv3v8qcyJTnhqp4acNUotKKR3GDOYXzkjaNKYdrMBKNEixiHY p3zmzKxE0+T1d1tFkUgwm8jHQYfH9AvmMVSFNRHzX8LDD9XlHUrvd/bpTm7DIqGY/mCT EKSBlsAcyQc43DJ/J5SN2NlAYwbVYsrdEdxj+tptVlg+i0sp2xTvpmfFki7nzyFbdzC+ 8Aq74EFkAqrTt9AA4HppQtZExIOqSOZYTp0m/4//uKpJlaAgmi/1jtGWPmK8BhSMJ2g1 /qYw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18si6268052oic.188.2020.02.17.10.18.22; Mon, 17 Feb 2020 10:18:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729643AbgBQRax (ORCPT + 99 others); Mon, 17 Feb 2020 12:30:53 -0500 Received: from foss.arm.com ([217.140.110.172]:39088 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728706AbgBQRax (ORCPT ); Mon, 17 Feb 2020 12:30:53 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AAC091FB; Mon, 17 Feb 2020 09:30:52 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2DD893F68F; Mon, 17 Feb 2020 09:30:52 -0800 (PST) Date: Mon, 17 Feb 2020 17:30:50 +0000 From: Mark Brown To: Stephan Gerhold Cc: Sameer Pujar , tiwai@suse.com, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jerome Brunet Subject: Re: [alsa-devel] [RFC] ASoC: soc-pcm: crash in snd_soc_dapm_new_dai Message-ID: <20200217173050.GT9304@sirena.org.uk> References: <1579443563-12287-1-git-send-email-spujar@nvidia.com> <20200217144120.GA243254@gerhold.net> <20200217154301.GN9304@sirena.org.uk> <20200217171245.GA881@gerhold.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ceuyUbi+oA5bUa/n" Content-Disposition: inline In-Reply-To: <20200217171245.GA881@gerhold.net> X-Cookie: There was a phone call for you. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ceuyUbi+oA5bUa/n Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 17, 2020 at 06:12:45PM +0100, Stephan Gerhold wrote: > This does the swapping you mentioned, so I guess rtd->dai_link->params > is only set for the codec2codec case? Yes, that's the idea. > From my limited understanding, I would say that a much simpler way to > implement this would be: >=20 > But I'm really not familar with the codec2codec case and am unable to > test it :) What do you think? I think that looks reasonable from just looking at the e-mail without a context diff and you should submit a patch so others can test! --ceuyUbi+oA5bUa/n Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5KzckACgkQJNaLcl1U h9BziAf+Izx20KRsb99onN4hjg2gDkeh3TMcutoOsbRYWWFaMSJOZ9Fq+lHXbuIq 0Qx4gzYh6jMLzvOPDY4BDyzSmcmE/7nAsAhNguMyc936iDrxG/K66Mq7sDX8oL45 YRWofbhaO4GvVtlpz1hxcrLrVVR9B3a2XreUqqmZQM2jLZCwgPtU0xALL/IDEwyb VL/OCGwh3GfX3DTmsarJCj3tUlwKcvN9QdS5p4KQvH1q18D9O9nd/I0ykSrkbjPt 6wN2fEAxsfbHRoEbfmGZ3kCXVe7pxLRGiCe13e3ea17uv/Z9u95bHgBRIJVNEcSV MX62HJ6YUZFKc/aAcg2f6BBGnaYpXQ== =BVkC -----END PGP SIGNATURE----- --ceuyUbi+oA5bUa/n--