* ASoC: Cyclic dependency between soc.h and soc-dapm.h
@ 2010-11-17 14:33 Lars-Peter Clausen
2010-11-17 18:44 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Lars-Peter Clausen @ 2010-11-17 14:33 UTC (permalink / raw)
To: alsa-devel; +Cc: Mark Brown, Liam Girdwood
The commit "ASoC: Decouple DAPM from CODECs" introduced a cyclic dependency between
soc.h and soc-dapm.h which leads to the following compile error, if a driver includes
soc-dapm.h without having included soc.h before:
In file included from include/sound/soc-dapm.h:19,
from sound/soc/codecs/jz4740.c:25:
include/sound/soc.h:484: error: field 'dapm' has incomplete type
If soc.h has been included before the error does not happen, but then soc-dapm.h
already got included trough soc.h, so the driver does not really have to include it
again.
So I wonder if soc-dapm.h should be made completely internal and not be included
anywhere else but soc.h anymore?
Or if the cyclic dependency should be broken somehow, maybe by introducing a third
header file?
- Lars
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ASoC: Cyclic dependency between soc.h and soc-dapm.h
2010-11-17 14:33 ASoC: Cyclic dependency between soc.h and soc-dapm.h Lars-Peter Clausen
@ 2010-11-17 18:44 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2010-11-17 18:44 UTC (permalink / raw)
To: Lars-Peter Clausen; +Cc: alsa-devel, Liam Girdwood
On Wed, Nov 17, 2010 at 03:33:18PM +0100, Lars-Peter Clausen wrote:
[Reflowed into 80 columns, please look into your MUA configuration.]
> So I wonder if soc-dapm.h should be made completely internal and not
> be included anywhere else but soc.h anymore?
I think this is the simplest approach - the separation is useful for
code legibility but I don't think it's going to make a meanigful
difference if you always end up with both at compile time.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-17 18:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 14:33 ASoC: Cyclic dependency between soc.h and soc-dapm.h Lars-Peter Clausen
2010-11-17 18:44 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).