On Wed, Mar 02, 2016 at 10:32:37AM +0100, Arnaud Pouliquen wrote: > Here is an alternative but with higher impact in soc-core: > 1)Create 2 helper functions in soc-core: > - snd_soc_add_dai_pcm_controls: > =>register a control that needs to be linked to pcm device. > if dai probed(pcm device exist) => link control to pcm device > else postpone link creation in soc_probe_link_dais > - snd_soc_add_dai_iec_control > same but based on snd_pcm_create_iec958_ctrl The whole point is to avoid functions... > 2) add 2 news fields in snd-soc-dai struct > struct snd_kcontrol *pcm_kctl /* list control that will be linked to > pcm device*/ > struct snd_pcm_iec958_params *params /* if not null iec control is > created */ > Abandon helper function for iec control should simplify implementation > but that also makes sense to have helper for this generic control... This seems better though I'm confused about what exactly these would be, I've not looked at the first patch since it seemed to have problems.
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel