[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <976ec85a-7b21-6c58-90cc-a3d104f9505a@linux.intel.com>
Date: Thu, 24 Jan 2019 13:07:17 -0600
From: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
To: Mark Brown <broonie@...nel.org>
Cc: rohkumar@....qualcomm.com, alsa-devel@...a-project.org,
bgoswami@...eaurora.org, vinod.koul@...aro.org,
lgirdwood@...il.com, Curtis Malainey <cujomalainey@...gle.com>,
plai@...eaurora.org, linux-kernel@...r.kernel.org,
Ajit Pandey <ajitp@...eaurora.org>, tiwai@...e.com,
Liam Girdwood <liam.r.girdwood@...ux.intel.com>,
Matthias Reichl <hias@...us.com>,
Rohit kumar <rohitkr@...eaurora.org>, asishb@...eaurora.org,
srinivas.kandagatla@...aro.org,
Curtis Malainey <cujomalainey@...omium.org>,
Dylan Reid <dgreid@...gle.com>
Subject: Re: [alsa-devel] [PATCH] ASoC: soc-core: Fix null pointer dereference
in soc_find_component
>> changes are legitimate. To move forward, maybe it's not worth spending too
>> much time on a grand unification of string theory, there are simpler
>> solutions: the Intel machine drivers already do get the platform driver name
>> as an platform_data argument, so we could modify the dailinks platform names
>> before even registering the card. I tested with the attached
> Yes, that would be much better - it's vastly more idiomatic. The
> general idea is that a machine driver should know what it's expecting to
> find before it starts probing.
Thanks for the feedback, will send a formal patch with the helper and
machine driver changes after I test more with the legacy drivers. Do you
have a preference for one patch that deals with multiple machines
drivers in one shot, or individual patches? The latter are nicer for
backports (e.g. for Chrome), the former nicer for maintainers...
The goal of reusing machine drivers as is isn't really achievable
anyways, it looks like we are going to have additional changes, e.g. if
we want to avoid the calls to snd_pcm_suspend as suggested by Takashi,
we'll have to add a reference to snd_soc_pm_ops that's only used for
SOF, the Atom/SST driver does things in different ways mostly due to
historical reasons.
-Pierre
Powered by blists - more mailing lists