On Mon, May 26, 2014 at 03:29:03PM +0200, Lars-Peter Clausen wrote:
On 05/26/2014 02:08 PM, Vinod Koul wrote: [...]
- snd_soc_dapm_kcontrol_platform() - Returns the platform associated to a kcontrol
- @kcontrol: The kcontrol
- */
+struct snd_soc_platform *snd_soc_dapm_kcontrol_platform(
struct snd_kcontrol *kcontrol)
+{
- return dapm_kcontrol_get_wlist(kcontrol)->widgets[0]->platform;
+} +EXPORT_SYMBOL_GPL(snd_soc_dapm_kcontrol_platform);
This conflicts with the series that moves DAPM support to the component level [1].
Thanks for the pointer, has this series been merged? Dont see it in topic/core in Mark's tree.
I will take a look but fwiw this statement is not entirely true in the cover letter of patch:
"This will allow any component to have DAPM widgets and routes, which was previously only possible for CODECs, and will allow any component to have DAPM widgets with controls (i.e. Mixers and MUXs), which was previously only possible for CODECs"
I am already running a system which models platform and has Mixers, Muxes and works fine (tested on 3.10 and 3.14).
Few bits of code is in RFC I sent earlier and will post these in detail over next few weeks
- Lars
[1] http://mailman.alsa-project.org/pipermail/alsa-devel/2014-May/076718.html