WM8960 sound card on RPI3

General discussion about RuneAudio. Do not post any support or feature requests here.

WM8960 sound card on RPI3

Postby jca » 30 May 2019, 09:50

I just replaced my old Audiophonics I-Sabre ES9038 by the Waveshare WM8960 : it doesn't work with Volumio (WM8960 does).
I asked the question to Volumio about this issue but didn't receive any answer.
At this moment, it works just fine with Raspbian, VLC and VLC Remote thru my phone.
However, VLC Remote is rather summary.
So, does Runeaudio can manage this DAC.
If yes, how to implement it ?
jca
 
Posts: 3
Joined: 30 May 2019, 07:38

Re: WM8960 sound card on RPI3

Postby janui » 30 May 2019, 11:42

Hi jca,
jca wrote:So, does Runeaudio can manage this DAC.
If yes, how to implement it ?
The driver for this DAC is not installed as standard in Rune.
Installing the driver is documented here: https://www.waveshare.com/w/upload/5/54 ... ual_EN.pdf
If you want to install the driver you first need to create a build environment by installing some programs which will compile and install the driver. I believe these commands will successfully create a build environment:
Code: Select all
pacman -Syy
pacman -Sy autoconf automake clang make libtool fftw alsa-lib llvm-libs glibc gcc i2c-tools

Then from the DAC user manual you can run this to install the driver with these commands:
Code: Select all
cd /home
git clone https://github.com/waveshare/WM8960-Audio-HAT
cd WM8960-Audio-HAT
./install.sh
reboot
I have no idea if it will work, it is tricky. See this post: post27850.html?hilit=gearhead#p27850
janiu
User avatar
janui
 
Posts: 624
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: WM8960 sound card on RPI3

Postby jca » 30 May 2019, 13:04

Of course, I installed the driver on Volumio but without pacman assistance.
As I wrote, it didn't work.
I'll try on Runeaudio, I'll cross my fingers.
By the way, I wrote "WM8960 did" but I meant "ES9038 did".
Sorry.
jca
 
Posts: 3
Joined: 30 May 2019, 07:38

Re: WM8960 sound card on RPI3

Postby jca » 05 Jun 2019, 10:25

Hi janui

I tried the trick but it didn't make it.
Here are the results :

[root@runeaudio ~]# pacman -Syy
:: Synchronizing package databases...
core 214.5 KiB 613K/s 00:00 [###########################################] 100%
extra 2.2 MiB 211K/s 00:11 [###########################################] 100%
community 5.1 MiB 349K/s 00:15 [###########################################] 100%
alarm 117.7 KiB 436K/s 00:00 [###########################################] 100%
aur 5.2 KiB 521K/s 00:00 [###########################################] 100%
[root@runeaudio ~]# pacman -Sy autoconf automake clang make libtool fftw alsa-lib llvm-libs glibc gcc i2c-tools
:: Synchronizing package databases...

core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
resolving dependencies...
looking for conflicting packages...

Packages (15) binutils-2.31.1-4 compiler-rt-8.0.0-1 gcc-libs-8.2.1+20181127-1 linux-api-headers-5.0.7-1 alsa-lib-1.1.9-1
autoconf-2.69-5 automake-1.16.1-1 clang-8.0.0-4 fftw-3.3.8-1 gcc-8.2.1+20181127-1 glibc-2.28-5
i2c-tools-4.1-1 libtool-2.4.6+42+gb88cebd5-2 llvm-libs-8.0.0-2 make-4.2.1-3

Total Download Size: 87.23 MiB
Total Installed Size: 398.73 MiB
Net Upgrade Size: 258.44 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
linux-api-headers-5.0.7-1-any 967.5 KiB 108K/s 00:09 [###########################################] 100%
glibc-2.28-5-armv7h 8.3 MiB 664K/s 00:13 [###########################################] 100%
gcc-libs-8.2.1+20181127-1-armv7h 16.2 MiB 732K/s 00:23 [###########################################] 100%
autoconf-2.69-5-any 586.8 KiB 772K/s 00:01 [###########################################] 100%
automake-1.16.1-1-any 600.0 KiB 690K/s 00:01 [###########################################] 100%
error: failed retrieving file 'binutils-2.31.1-4-armv7h.pkg.tar.xz' from mirror.archlinuxarm.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: failed to retrieve some files
error: failed retrieving file 'gcc-8.2.1+20181127-1-armv7h.pkg.tar.xz' from mirror.archlinuxarm.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: failed to retrieve some files
libtool-2.4.6+42+gb88cebd5-2-armv7h 398.1 KiB 653K/s 00:01 [###########################################] 100%
make-4.2.1-3-armv7h 399.7 KiB 317K/s 00:01 [###########################################] 100%
llvm-libs-8.0.0-2-armv7h 14.4 MiB 709K/s 00:21 [###########################################] 100%
compiler-rt-8.0.0-1-armv7h 741.4 KiB 94.2K/s 00:08 [###########################################] 100%
clang-8.0.0-4-armv7h 14.5 MiB 561K/s 00:26 [###########################################] 100%
error: failed retrieving file 'fftw-3.3.8-1-armv7h.pkg.tar.xz' from mirror.archlinuxarm.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: failed to retrieve some files
alsa-lib-1.1.9-1-armv7h 353.6 KiB 693K/s 00:01 [###########################################] 100%
i2c-tools-4.1-1-armv7h 75.6 KiB 420K/s 00:00 [###########################################] 100%
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
[root@runeaudio ~]# cd /home
[root@runeaudio home]# git clone https://github.com/waveshare/WM8960-Audio-HAT
Cloning into 'WM8960-Audio-HAT'...
remote: Enumerating objects: 48, done.
remote: Total 48 (delta 0), reused 0 (delta 0), pack-reused 48
Unpacking objects: 100% (48/48), done.
Checking connectivity... done.
[root@runeaudio home]# cd WM8960-Audio-HAT
[root@runeaudio WM8960-Audio-HAT]# ./install.sh
./install.sh: line 21: apt: command not found
./install.sh: line 22: apt-get: command not found
./install.sh: line 23: apt-get: command not found
./install.sh: line 39: dkms: command not found
./install.sh: line 44: dkms: command not found
./install.sh: line 45: dkms: command not found
mkdir: cannot create directory ‘/etc/wm8960-soundcard’: File exists
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------

I tried to install apt and, of course, it didn't work.
Is any way to use this damn soundcard ?
jca
 
Posts: 3
Joined: 30 May 2019, 07:38

Re: WM8960 sound card on RPI3

Postby janui » 05 Jun 2019, 16:11

Hi jca,
jca wrote:Is any way to use this damn soundcard ?
Again I don't know if this will work, but you can give it a try.
Run this:
Code: Select all
pacman -Sy dkms git libasound2-plugins
pacman -Sy autoconf automake clang make libtool fftw alsa-lib llvm-libs glibc gcc i2c-tools
Then comment out the lines 21, 22 and 23 from install.sh, it should look like this:
Code: Select all
...
# apt update
# apt-get -y install raspberrypi-kernel-headers raspberrypi-kernel
# apt-get -y install  dkms git i2c-tools libasound2-plugins
...
Then run install.sh again.
janui
User avatar
janui
 
Posts: 624
Joined: 20 Dec 2014, 12:55
Location: Ollanda

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 2 guests