Skip to contentSkip to conversation

ASoC: of_parse_phandle techniques newbie question

DISCUSSION Matt Flax 1 participant 1 message Aug 14, 2014

lore
Share & tools
lore

Matt Flax

author
#0 lore raw

Hi there,

In implementing a codec/driver combination, I found that I have to re-write some of the snd_soc_dai_link with device tree related entries :
http://mailman.alsa-project.org/pipermail/alsa-devel/2014-August/080034.html

Can anyone explain to me why we have to do this, a little confused here ? For example :

         driver_dai.codec_name = NULL;
         driver_dai.codec_of_node = of_parse_phandle(np, .....

Why can't the codec be found from the codec_name which matches the previously probed codec ?

thanks
Matt