WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore and Wolfson Audio Card  (Read 21034 times)

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: piCore and Wolfson Audio Card
« Reply #30 on: November 05, 2014, 02:08:46 PM »
 Thank's

I will be working on this one, and try to test my sound -setup on this kernel.

Good job!

Maybe you could paste the kernel .config into the http://www.tinycorelinux.net/6.x/armv6/test_releases/... Would be nice i think  ;)

Regards;
   Jesper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore and Wolfson Audio Card
« Reply #31 on: November 05, 2014, 02:17:13 PM »

Maybe you could paste the kernel .config into the http://www.tinycorelinux.net/6.x/armv6/test_releases/... Would be nice i think  ;)


Install and

Code: [Select]
zcat /proc/config.gz
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: piCore and Wolfson Audio Card
« Reply #32 on: November 05, 2014, 03:50:01 PM »
Thank's  :)

I knew it btw... just thought it was an idea to have it there, along with modules etc... ! - Just an idea.

BTW: my bootswitch is working fine now :



Regards;
   Jesper.









Offline webb

  • Jr. Member
  • **
  • Posts: 52
Re: piCore and Wolfson Audio Card
« Reply #33 on: September 14, 2016, 04:52:24 AM »
By any chance has the Wolfson situation has improved with 8.0? (Or 7.0?)

Topic: piCore-8.0 released
bmarkus wrote:
> brought support for new hw, specially sound devices

Many thanks,
Webb

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: piCore and Wolfson Audio Card
« Reply #34 on: September 14, 2016, 05:06:48 AM »
hi Webb,

I doubt it (ever).

Keep an eye out for the appropriate overlay and info in README in the overlays directory on the boot partition.

It really is the responsibility of the hardware manufacturer to get their drivers incorporated into linux/Raspbian.

regards
Greg

Offline pkozul

  • Newbie
  • *
  • Posts: 6
Re: piCore and Wolfson Audio Card
« Reply #35 on: April 20, 2017, 07:40:57 PM »
Hi there,

I posted a question on the piCorePlayer 3.20 beta forum about support for the Wolfson / Cirrus audio card.

From what I understand, the 4.9x kernel should have support built in. Is there anything special that needs to be done in piCore to enable this card?

I followed the instructions here, but couldn't see the driver loaded in piCorePlayer.

http://www.horus.com/~hias/cirrus-driver.html

Any ideas?

Thanks,
Petar

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore and Wolfson Audio Card
« Reply #36 on: April 21, 2017, 01:51:56 AM »
Wolfsson Audio is not enabled in piCore-9.0 kernel. If you need it, please make a custom kernel.

And please do not double post the same question in the Forum.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline M-H

  • Newbie
  • *
  • Posts: 24
Re: piCore and Wolfson Audio Card
« Reply #37 on: May 02, 2017, 02:53:25 PM »
Hi all,

I have a picoreplayer 3.20 setup with the modules setup as described from : http://www.horus.com/~hias/cirrus-driver.html
and it leads to a working setup of the cirrus logic audio card .

However the module loading isn't fully automatic and it needs a manual action on the usb bus to complete the driver load.
To me it seems the correct parts are in the picore kernel, and the modules do work too ,since I have audio repeatedly and have not experienced instability while enjoying the card its nice output.

Who can help and teach me how the module loading works in picore, and help tweak the boot process to eliminate the need for a manual action?

For more info please see : http://forums.slimdevices.com/showthread.php?107329-Cirrus-Logic-Audio-Card-and-Wolfson-support-in-PCP-3-20
and or ask me for more details on Info I might not have provided jet.

Regards M

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore and Wolfson Audio Card
« Reply #38 on: May 02, 2017, 11:50:01 PM »

I have a picoreplayer 3.20 setup with the modules setup as described from : http://www.horus.com/~hias/cirrus-driver.html
and it leads to a working setup of the cirrus logic audio card .


For picoreplayer support please visit the picoreplayer forum. One more notice. Wolfsson Audio is not supported by piCore and it will be never supported.

« Last Edit: May 02, 2017, 11:52:28 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline M-H

  • Newbie
  • *
  • Posts: 24
Re: piCore and Wolfson Audio Card
« Reply #39 on: May 03, 2017, 06:33:43 PM »
Hi Bela,
You are right, I now see the PCP project does use its own modified version of picore.
However in that kernel : linux 4.9.21-pcpCore | piCore v8.01  I do get my Cirrus Logic Audio Card working.
So now I have to figure out how I can make the set boot all including the modules , without my manual intervention.
Can you help me debug why the modules do not start automatically?
Or hint me where I can find the info to build my knowledge on this module loading loading in picore.

I recently found a post where it was mentioned a TCE was created to load the correct modules.
Is this indeed an option to load specific modules and execute commands from a TCE ?
And would this be perhaps a better route to add these specific hardware support parts to PCP ?
Regards M-H

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore and Wolfson Audio Card
« Reply #40 on: May 04, 2017, 01:54:32 AM »
piCore kernel configuration is practically the same as Raspbian except few difference related to ZRAM, compressed swap, etc. but nothing for sound. The main difference is that piCore base do not contain all kernel modules and you must install them from the repo or if it is not there, extract from the archive of all built modules. Best way is to check on a system where it works like Raspbian ot PCP which modules loaded for your card than install them on piCore. If moduels are available most likely they will be loaded automatically. If still not workking, check dmesg, module dependencies, ... But in general it is a basix Linux staff, no piCore specific tricks.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline M-H

  • Newbie
  • *
  • Posts: 24
Re: piCore and Wolfson Audio Card
« Reply #41 on: May 04, 2017, 08:04:21 AM »
Thanks Bela,
This confirms the knowledge I have so far.
I (we)  know the modules and have them set on a system and am able to load them successfully to get the card working repeatedly.
However the loading part is not automatic, and it halts somewhere, where I am unable to see what is actually causing this halt.
dmesg output does not hint me what is the cause, but I have found by accident that plugging in a USB mouse does complete the process.
It shows the alsa device from
Code: [Select]
aplay -l and probably gets the mouse working too  .
Repeating the boot with the mouse connected throughout, does come to the same incomplete state. And unplugging and reconnecting the mouse does load the modules successfully.

Replicating the the setup on a fresh and fully updated raspbian jessie installation shows it is working without human intervention.
I used this as baseline test, and stil keep it available for comparison.

So I think the late usb new device discovery does trigger something that is needed for the Cirrus logic Audio card ( wolfson ) drivers to complete their initialisation, and probably this is a timing issue where a timeout caused it to fail initially and a later retry does complete things. But this is speculation as I do not know why they do not load , and what happens when the routines do after a new usb device event.

'Hias' who created the the kernel modules mentioned :
"  .. using modprobe from busybox which doesn't support softdep  (only alias, options, include and blacklist are supported):
see https://git.busybox.net/busybox/tree/modutils/modprobe.c#n282  "

So now I need to find the specifics in picore and or busybox to complete the module loading automatically at boot time.
As picore is a toolbox and not a full distri, it is possible just not a paved road. So there is some work involved.
Unfortunately I do not have the needed experience jet to find it , and reverse engineering the boot process to debug this is time consuming. Therefore tips, shortcuts and workarounds are welcome too as a temporary measure.
F.I. a script that would emulate parts of the USB actions I now do manually, could be a first step.

BTW, all was tested on a Bplus, I need to recheck all on a 2B and 3B to see if a faster Pi does alter the results and give me more insight on the possible timing issue.

I feel we will be able to solve all this in the future, and present a way to use the cards with picore and thus PCP, for other people
Hias did a great job on creating the modules and the needed parts in the kernel. They just do not work work flawlessly in PCP atm.
Regards M-H



Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore and Wolfson Audio Card
« Reply #42 on: May 05, 2017, 03:17:33 AM »
You can try an udev trigger, maybe it helps.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline M-H

  • Newbie
  • *
  • Posts: 24
Re: piCore and Cirrus Logic Audio Card
« Reply #43 on: May 17, 2017, 10:12:30 AM »
To all,

Is there a way to replicate the event of an inserted USB device from a script or command line ?

Manually loading the modules does work , but it still does not initialise the board or driver.
Tricks like :"  sudo udevadm trigger arizona_ldo1 " do not trigger the right event either.


Thanks in advance , M-H


Offline M-H

  • Newbie
  • *
  • Posts: 24
Re: piCore and Wolfson Audio Card
« Reply #44 on: May 21, 2017, 09:25:51 AM »
I found a way to complete the driver initialisation from a script after the boot process.
Code: [Select]
sudo modprobe -r arizona_spi
sleep 1
sudo modprobe arizona_spi
sleep 3
This is crude but at least does the job and allows me to use the card .
The sleeps are needed to make the next commands not to be executed to early as it led to instability in my setup.
The previous question on the USB event is no longer valid.

Regards M-H