Open JCesarMolina opened 2 years ago
Hello, I noticed that in the code tools/topology/amp_bytes.m4 in Part II - Modifying the Topology & Driver
# AMP Example - Parameters
CONTROLBYTES_PRIV(AMP_priv,
` bytes "0x53,0x4f,0x46,0x00,'
` 0x00,0x00,0x00,0x00,'
` 0x08,0x00,0x00,0x00,'
` 0x00,0x00,0x00,0x03,'
` 0x00,0x00,0x00,0x00,''
` 0x00,0x00,0x00,0x00,'
` 0x00,0x00,0x00,0x00,'
` 0x00,0x00,0x00,0x00,'
` 0x01,0x00,0x00,0x00,'
` 0x01,0x00,0x00,0x00"'
)
It should has just one apostrophe in the end of the 7th line. Now the code for pipe-volume-playback-4test.m4 compiles.
Not sure what's going on, this works for me:
rm -rf tools/build_tools/
./scripts/build-tools.sh
ls -l tools/build_tools/topology/topology1/production/sof-imx8mp-wm8904.*
I don't know if it's related but you seem to have an ancient GCC version "The C compiler identification is GNU 7.5.0" so your platform may run into issues others with more recent packages don't see.
@JCesarMolina best to have a recent distro as the SOF developers mostly use recent distro releases with latest ALSA, GCC, cmake etc..
@lgirdwood I think so, but i followed the tutorial based on that i have kubuntu 18.04 ,i have to do it using that version. in the website:
If you are using Ubuntu 16.04, the gcc version must be updated to gcc 7.3+ in order for the Advanced Linux Sound Architecture (ALSA) to build.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-7 g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7
to avoid any problem , i just followed what in the SOF website is indicated.
@plbossart , it means that there's no syntax error in the 7th line?
Are you referring to this @JCesarMolina
` 0x00,0x00,0x00,0x03,'
` 0x00,0x00,0x00,0x00,''
I am not sure why there are two quotes in the end, but that should be harmless. @ranj063 would you concur?
Hello, I have been following the Hello World Tutorial, and in the Part II - Modifying the Topology & Driver I got the following output:
I don catch where is the error, then i tried to modify sof-imx8mp-wm8904.m4 , it can be compiled, I where the pipe-volume-playback-4test.m4 file is modified with small changes in order to find out where is the error.
The code for pipe-volume-playback-4test.m4 is:
After compilation, i got :
I hope someone could help me.
Thanks in advanced Julio C. Molina