Note: Wolfson / Cirrus Logic Audio Card support is included in official LibreELEC releases since version 8.0.1. Please use official releases, the builds linked on this page are no longer maintained.
Here are my "HiassofT" LibreELEC Raspberry Pi builds with support for the Wolfson and Cirrus Logic Audio Cards from element14. These builds offer the following features:
latest stable version: | ||
---|---|---|
8.0.0 2017-02-22 |
RPi
RPi2/3
builds
Source code |
|
previous testing version: | ||
7.0.3 2016-12-30 |
RPi
RPi2/3
builds
Source code |
|
old versions: | ||
Download from archive | Read Changelog.txt for details | |
LibreELEC 9.0 / Kodi 18 Leia preview builds | ||
Support for the Wolfson/Cirrus Logic audio cards is included in the LibreELEC master branch and also in the latest Milhouse builds |
The source code is available on my GitHub repository https://github.com/HiassofT/LibreELEC.tv.
If you want to download the source code of a specific / older release select the appropriate VERSION-cirrus tag (eg 8.0.0-cirrus).
Update
share or to /storage/.update/
on the command line and reboot
/flash/config.txt
- read the Config.txt
section on the LibreELEC wiki for more details.
dtoverlay=rpi-cirrus-wm5102
ALSA: Default (RPi-Cirrus Analog)
or ALSA: RPi-Cirrus, S/PDIF
.Automatic updates are disabled in the Wolfson/Cirrus builds so you have to perform a manual update as described in the LibreELEC manual update wiki page:
Update
share or to /storage/.update/
on the command linePlease note that the 7.0.3 and 8.x builds use a new method to customize the mixer configuration, the old method of editing the udev rule will not work.
General disclaimer: Upgrades to a new major version in general work fine, but there's always a small risk that something goes wrong. Make a full backup of your SD card before upgrading so that you are prepared for that case.
Except for the standard disclaimer upgrading from OpenELEC to LibreELEC usuallly works just fine with the manual update procedure described above.
If the Cirrus card no longer shows up under audio output devices
double-check that /flash/config.txt
contains the following line:
dtoverlay=rpi-cirrus-wm5102
In 6.x OpenELEC builds you could also use the deprecated variant
rpi-cirrus-wm5102-overlay
(note the -overlay
at the end),
but this is no longer supported with the current kernel.
By default the /flash
partition is mounted read-only,
you have to remount it read-write before you can edit
/flash/config.txt
:
mount -o remount,rw /flash
nano /flash/config.txt
The default lirc-rpi
GPIOs 17/18 will conflict with
the Wolfson / Cirrus card. But you can use the following line
in /flash/config.txt
to use an IR receiver connected
to GPIO 5 (pin 14 of the J2 connector on the Cirrus card):
dtoverlay=lirc-rpi,gpio_out_pin=12,gpio_in_pin=5
A better alternative to lirc-rpi
(which needs
userspace lirc configured) is gpio-ir-recv
. This driver
will use in-kernel decoding and you can easily configure the
keymap via config.txt
For example, if you are using a MCE remote and have the GPIO IR recevier connected to GPIO 5 / pin 14 just add the following line to config.txt and the remote will work out of the box:
dtoverlay=gpio-ir,gpio_pin=5,gpio_pull=1,rc-map-name=rc-rc6-mce
On bootup the audio card is configured automatically by LibreELEC via a udev rule. You can override the default configuration (eg to enable speaker output) by creating a file
/storage/.config/rpi-cirrus-config.sh
A sample
configuration file, /storage/.config/rpi-cirrus-config.sh.sample
is provided, just use it a template and look at the examples in
the comments.
Please post your questions in this section of the LibreELEC forum.