26 Oct
2016
26 Oct
'16
2:12 p.m.
On Wed, Oct 26, 2016 at 09:20:45AM +0530, Vinod Koul wrote:
into rtd internals. So would make sense to combine two suggestion and add an API:
struct snd_soc_codec *snd_soc_get_codec(struct snd_soc_pcm_runtime *rtd) { return rtd->codec; }
then we can use this is drivers.
That interface does bake in the CPU/CODEC distinction which is something we want to get away from with componentization since it makes things more complicated with situations like CODEC<->CODEC links. OTOH we're looking up a CODEC rather than a component here so it's going to need to change again anyway so it probably doesn't matter.