Alright Keyon, will give this a try.
Thanks!
-----Original Message----- From: Keyon Jie [mailto:yang.jie@linux.intel.com] Sent: Thursday, July 5, 2018 11:04 AM To: Ranjani Sridharan ranjani.sridharan@linux.intel.com; Nahulanthran, Sanjeev sanjeev.nahulanthran@intel.com; SOF sound-open-firmware@alsa-project.org Subject: Re: [Sound-open-firmware] .m4 File Request Help Needed
Hi Sanjeev,
as Ranjani suggested, please use repos from thesofproject for your development, as we have massive code change these weeks, otherwise, it may not work: https://github.com/thesofproject/linux #sof-dev https://github.com/thesofproject/sof #master https://github.com/thesofproject/soft #master
~Keyon
On 2018年07月04日 23:57, Ranjani Sridharan wrote:
On Wed, 2018-07-04 at 06:22 +0000, Nahulanthran, Sanjeev wrote:
Hi there,
Managed to build the topology file that I needed. Thanks for your help! Enabled some extra kernel logs to confirm that the tplg file being used matches the one I have created.
However, still obtaining this issue (dmesg logs attached) - sof-nocodec sof-nocodec: ASoC: CPU DAI sof-audio not registered sof-audio sof-audio: error: ipc error for 0x80010000 size 0xc sof-audio sof-audio: error: failed to set DAI config for SSP2 sof-audio sof-audio: error: DSP trace buffer overflow 16 bytes. Total messages 699
Hi Sanjeev,
Copying the list too.
This looks like you might be missing some kernel patches. Could you please share the tree you're using for the kernel, firmware and topology?
Thanks, Ranjani
Right now using tplg base file "reef-apl-nocodec.tplg" (modified to suit my needs, m4 also attached to email) from 1.1-stable branch of SOFT and using firmware file "reef-apl.ri" from master branch of SOF.
Can load the soundcards - shown using "aplay -l", however when playback is initiated, ipc error is shown as stated above. What could be the reason for this error? Tracing error code leads to function tx_wait_done in driver code ipc.c (data received from DSP is invalid I think). How can I resolve this?
Hope you can extend some help regarding this. Thank you very much for your time :)
Thanks and Regards, Sanjeev
-----Original Message----- From: Ranjani Sridharan [mailto:ranjani.sridharan@linux.intel.com] Sent: Wednesday, July 4, 2018 5:31 AM To: Nahulanthran, Sanjeev sanjeev.nahulanthran@intel.com Subject: Re: [Sound-open-firmware] .m4 File Request Help Needed
On Tue, 2018-07-03 at 08:01 +0000, Nahulanthran, Sanjeev wrote:
Hi there,
Somehow I am unable to bring up my soundcard except with this tplg file: test-ssp*-DSP_A-volume-s32le-s24le-48k-nocodec.tplg
Would you happen to have the .m4 reference for this topology file so that I can modify it for my own needs and build? I understand how to configure the DAI section now :) thanks btw
Somehow trying to configure the reference .m4 given to me was not successful. I need the .m4 to build this kind of tplg file (test- ssp*-DSP_A-volume-s32le-s24le-48k-nocodec.tplg), from there I can make my modifications as necessary.
The easiest way is to just add a line to tplg-build.sh script like this:
simple_test nocodec volume "NoCodec-2" s24le SSP 2 s16le 25 16 2400000 24000000 I2S 0 SIMPLE_TESTS[@]
The above line would create the tplg file you are looking for. Please remember to modify the SSP port, container bits, valid bits, bclk and mclk to suit your needs.
Hope this helps.
Thanks and Regards, Sanjeev
-----Original Message----- From: Ranjani Sridharan [mailto:ranjani.sridharan@linux.intel.com] Sent: Sunday, July 1, 2018 4:55 AM To: Nahulanthran, Sanjeev sanjeev.nahulanthran@intel.com; sound- ope n-firmware@alsa-project.org Subject: Re: [Sound-open-firmware] .m4 File Request Help Needed
On Thu, 2018-06-28 at 05:58 +0000, Nahulanthran, Sanjeev wrote:
Hi there,
Writing this e-mail to request for SOF support in providing a .m4 file with 48kHz, TDM8, and MCLK enabled - used for Cirrus Logic CS42435. This is required as we need it as a reference to make our own modifications to enable the same configuration for another device (amplifier) that we have.
Hi Sanjeev,
Please take a look at the example m4 files provided in the topology/test folder in the SOF tools repo: https://github.com/thesofproject/soft
For example to test playback, you can use test-playback.m4 and modify the DAI config to suit your needs. DAI_CONFIG is defined in the dai.m4 file and an example config is:
DAI_CONFIG(TEST_DAI_TYPE, TEST_DAI_PORT, 0, TEST_DAI_LINK_NAME, SSP_CONFIG(TEST_SSP_MODE, SSP_CLOCK(mclk, TEST_SSP_MCLK, codec_slave), SSP_CLOCK(bclk, TEST_SSP_BCLK, codec_slave), SSP_CLOCK(fsync, 48000, codec_slave), SSP_TDM(2, TEST_SSP_PHY_BITS, 3, 3), SSP_CONFIG_DATA(TEST_DAI_TYPE, TEST_DAI_PORT, TEST_SSP_DATA_BITS)))
As you can see, all the config parameters are arguments to the macro and quite self-explanatory.
If you have more questions, please feel free to contact us.
Thanks, Ranjani
Thanks and Regards, Sanjeev Software Engineer
Sound-open-firmware mailing list Sound-open-firmware@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmw ar e
Sound-open-firmware mailing list Sound-open-firmware@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware