[alsa-devel] [PATCH 1/4] ASoC: rt286: rt286_mic_detect() uses component

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Oct 24 09:43:19 CEST 2016


Hi

> >> From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> >>
> >> Intel broadwell is using card->codec_dev_list, but it will be
> >> replaced to component list soon. Then, it will not be able to use
> >> "codec".
> > 
> > Can't it be deduced by a simple container_of()?
> 
> There is the snd_soc_component_to_codec() helper for this.

The points are
 1) We would like to remove "codec" related functions
 2) We can get "codec" pointer by above function/macro,
    but "codec" function/macro is using codec->component inside.



More information about the Alsa-devel mailing list