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
Added support for Wolfson Audio Card by Element-14 #672
Added support for Wolfson Audio Card by Element-14 #672
Conversation
@hifiberry @koalo @hmbedded @iqaudio |
All in all it looks good. ASOC: RPI : Add support for Wolfson Audio Card ASOC: BCM2708: Update pcm hw info flag ASOC:RPI:late initialization of dmaengine driver Greetings, |
Certainly the impact on other boards is a concern - would not be happy if this destabilizes other's product support. Will look further into this. update:
|
Generally looking good. Can you please provide a config that is based off bcmrpi_defconfig? If the current one already is, please rename it to bcmrpi_defconfig so we have a diff. I assume popcornmix is OK with this being enabled by default (which it will be if included in the defconfig) if it does not impact other hardware. When building:
This change seemed to fix things:
When I boot Pi without a Wolfson card attached, I see the following:
Here is my lsmod, post
thus I would suggest reducing noise in d7ea787. Otherwise this confuses users. Maybe pr_err should be pr_warn? Others with sound card modules in the kernel should also take note here. Booting a vanilla kernel with no blacklisted modules, I will see probe failures for hardware I do not have attached! If you want to autoload your modules, you should not print failed probes as errors. |
Hi, |
I've tested these changes and there still seems to be a problem with recording 32 bit audio at 192 kHz. This has worked fine with the 3.10 kernel. 16 bit @ 192 kHz works fine, 32 bit @ 44.1 kHz works also fine. But with 32 bit @ 192 kHz I get loads of buffer overruns from arecord until it runs out of memory (or at least it says so - 'free -h' still shows plenty of free memory). |
Using these patches against Anyway, here's my input so far for what it's worth:
My root filesystem is admittedly now different (using a Buildroot FS rather than a Raspbian FS) but I see no reason why this should be a problem since It is unclear to me what the issue is but I will keep digging since it could unearth a bug that could potentially affect other users. |
Struggling to find the root cause of this problem, however it looks like some kind of SPI issue:
I had a look at the
This will cause two attempts to initialize SPI bus 0 / cs 1. The second attempt fails, because it has already been allocated to |
@manish-wolfsonmicro I notice you're back online....would be interested to get your thoughts on the issues I've encountered. I haven't been able to root cause them yet myself. |
7bc7e8b
to
c256eb9
Compare
Dom, is it just the i2s GPIO settings that have been merged or is the full Wolfson set of changes being merged? |
I've no idea what's happened. I updated kernel tree to 3.12.29. I didn't hit the merge button and github is showing that c256eb9 was merged from this PR. However that commit is unrelated to this PR (it's a commit of mine), so I'm not actually sure if anything from this PR has been merged. |
I don't think anything form this PR has been merged .I was in the process of uploading new patch set on the same pull request , so I reverted the previous patches .There was nothing in there to merge. ~Manish |
Seems like a github glitch. |
Hi Dom, I think you are right. It is not showing me any option of pushing new commits or reopen the PR. ~Manish |
treewide: update/normalize comment style
Hi All,
Please find the patches to support Element 14 Wolfson Audio Card.
The patch bundle includes the machine driver and few other supporting patches to offer the functionality of WM5102 and WM8804 codecs drivers.
None of these patches needs to be pushed to Linux mainline as these are RPI specific.
The current patch-set does not support SPDIF functionality. We are working on a patch-set that will be pushed to the mainline Kernel and once these have been merged we will submit them for addition in to the raspberry-pi kernel.
For your reference, the following link takes you to the official product page.
http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/wolfson_pi?CMP=KNC-EU-RPI-ACC-Wolfson
~Manish Gupta