Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SZamb1
Novice
1,176 Views

Probing ASoC machine driver for I2S audio

Hi,

apologizes for double posting but I realized now that the other discussion thread ( ) had been marked as answered even though the question is still open.

If any moderator want to change the status of that question and delete this post, you're very welcome.

I'm on latest ref-os-iot and trying to connect the Cirrus Logic Audio Card to an Joule 550x.

So far I have:

1) created an ASoC machine driver (bxt-cirrus.c) based on the version for RaspberryPi

https://github.com/raspberrypi/linux/blob/rpi-4.9.y/sound/soc/bcm/rpi-cirrus.c https://github.com/raspberrypi/linux/blob/rpi-4.9.y/sound/soc/bcm/rpi-cirrus.c

removing all DT specific stuff and filling manually the DAI structures. Not really sure about all the fields here though, tried to follow bxt_florida.c for those.

2) As the other poster, removed snd_hda_intel and manually probed the new bxt-cirrus module

3) In my case, snd_soc_skl loads fine and firmware is transferred correctly

But still, lsmod | grep snd shows that the new module is loaded but not probed:

snd_soc_sst_bxt_cirrus 16956 0

snd_soc_sst_acpi 3171 0

snd_soc_sst_match 1554 2 snd_soc_sst_acpi,snd_soc_skl

snd_soc_wm8804 9697 0

snd_soc_wm5102 641540 0

Any suggestion on how to move from here? Is it necessary to modify ACPI tables to have the module probed?

Thanks,

 

Stefano
0 Kudos
4 Replies
idata
Community Manager
207 Views

Hi Stefano,

 

 

Thank you for contacting us.

 

 

Personally, I don't have any suggestion for you, because I haven't tried anything related to this at the moment. I was checking the Joule's information about audio, and maybe it can be useful for you: https://software.intel.com/en-us/node/721496.

 

 

Unfortunately, this issue is out of our support because it is a custom code, but I will try my best and I will investigate more about this.

 

 

I also want to inform you that there is a known issue with the latest image Version # 1705 with Audio playback, take a look at this link: https://download.01.org/ref-os-iot/releases/1705/Ref-OS-IoT-1705-ReadMe.txt

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
SZamb1
Novice
207 Views

Hi Leonardo,

thanks for your answer.

This is indeed custom code, but writing a custom machine driver is basically the only way to connect a codec board and it was also the road followed by the guy who asked in the previous thread.

I see that the issue that you cite is regarding some generic "Audio playback over I2S buffering issue", but here I am at an earlier stage: I can't get the driver probe and so nothing shows up in ALSA.

But indeed the fact that such issue is reported means that someone has actually been able to connect some device, and in fact there are some recent commits about audio on Ref OS IoT like this one:

https://github.com/01org/ref-os-iot/commit/be37acecbe46580623811894ec309af89b4ec6dc https://github.com/01org/ref-os-iot/commit/be37acecbe46580623811894ec309af89b4ec6dc

so I was hoping that someone could point me in the right direction to start. Maybe I'll try to contact the developer who committed those changes.

Best regards,

 

Stefano
idata
Community Manager
207 Views

Hi Stefano,

 

 

That's a great idea, yes please try to contact the developer of those changes, maybe he will be able to provide you a better response.

 

 

In the meantime, let me investigate more about this, but as I mentioned you before this is not supported, so I'm not sure if I will find something useful but I will try my best to help you.

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
idata
Community Manager
207 Views

Hi Stefano,

 

 

After some further investigation, I was not able to find a solution for this problem. As I mentioned you before, please try to contact the developer of those changes, maybe he will be able to help you more.

 

 

We encourage you to continue trying to solve this and feel free to post the solution here. It will be very useful for the community.

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
Reply