ASoC: Add a per component dai list

Now that every DAI has a component we can track the DAIs on a per component
basis. This simplifies the DAI lookup when we are only interested in DAIs of a
specific component and also makes it possible to have multiple components with
the same parent device and also register DAIs.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
Lars-Peter Clausen 2014-03-09 17:41:47 +01:00 • committed by Mark Brown
commit 1438c2f60b
2 changed files with 36 additions and 42 deletions

View file

@ -671,6 +671,8 @@ struct snd_soc_component {
int num_dai;
const struct snd_soc_component_driver *driver;
struct list_head dai_list;
};
/* SoC Audio Codec device */