-
Notifications
You must be signed in to change notification settings - Fork 349
include: add missing header file for Topology parser #3166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This patch adds missing header file asoc.h which is required to build Topology parser (tplg_parser.c) Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
paulstelian97
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be in src/include/kernel?
|
The file is included with the kernel headers, I suspect we probably need to point to the kernel headers in the include paths. |
|
@lgirdwood, it is in kernel repo include I agree, but I can't see it in FW anywhere. @paulstelian97 , that may be a good idea. |
|
It shouldn't be in our repo at all, it's part of kernel 'core' codebase (not even sof), we don't copy alsa headers to sof, we also shouldn't copy non-SOFABI kernel headers. These files can be installed in system headers or added with |
What's the added value compared to a basic "asoc.h not found" message from the pre-processor? |
This would help to avoid some confusion. It could appear a FW/SDK bug to anyone new. I would also add this in sof-docs as a dependency. |
I hope most C developers interpret any "missing X.h" error as "What dependency do I miss?". Sure you can always provide more information in a CMake error but last time I checked we had 1.5 CMake developers in the team (counting myself as 0.5) and unsurprisingly no one else anywhere close to volunteering. So less CMake code is more IMHO.
Absolutely - I went through the getting started guide not very long ago and the list of dependencies was there and easy to use. EDIT: it is there already, see next comment. |
tl;drI tested on 20.04 the It just works and installs Longer storyI searched and found on my Ubuntu 20.04 system 3 copies of the same I recommend against creating a 4th copy :-) By default, While PS/shameless plug: about alsa-lib packages see also thesofproject/linux#2211, advice welcome. |
marc-hb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrajwa ? Just Works, close? |
I know and I am also surprised why my Ubuntu 16.04 doesn't install it during that apt-get step Content of my /usr/include/sound/
as you can see there is no asoc.h however it is here /usr/include/alsa/sound/asoc.h - a quick and simple copy of asoc.h to /usr/include/sound/ fixes the issue. Yes this PR is out of question and should be closed. I just got confused by this missing header file. Can I close now or we still want to discuss this case? |
|
We can close. |
This patch adds missing header file asoc.h which is required
to build Topology parser (tplg_parser.c)
Signed-off-by: Marcin Rajwa marcin.rajwa@linux.intel.com