Re: [PATCH 11/21] ASoC: soc-core: add snd_soc_del_component()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pierre-Louis

> > From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
> > 
> > It is easy to read code if it is cleanly using paired function/naming,
> > like start <-> stop, register <-> unregister, etc, etc.
> > But, current ALSA SoC code is very random, unbalance, not paired, etc.
> > It is easy to create bug at the such code, and is difficult to debug.
> > 
> > Now ALSA SoC has snd_soc_add_component(), but there is no paired
> > snd_soc_del_component(). Thus, snd_soc_unregister_component() is
> > calling cleanup function randomly. it is difficult to read.
> > This patch adds missing snd_soc_del_component() and balance up code.
> 
> 
> the problem now is that the naming is confusing
> 
> we have snd_soc_component_del and snd_soc_del_component.
> we already had snd_soc_component_add and snd_soc_add_component.

Yes, very confusing.

> Also I find it useful to keep the _unlocked suffix when relevant, it
> adds value that is lost otherwise.
> 
> Can we avoid this pretty please?

Yeah, thanks.
The only issue for it is that my English naming sense/skill ;P

Thank you for your help !!
Best regards
---
Kuninori Morimoto
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux