michael3@raspberrypi3:~ $ sudo pip3 install --upgrade hifiberrydsp
[sudo] password for michael3:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting hifiberrydsp
Downloading https://files.pythonhosted.org/packages/c0/99/ba0701ce76d28b7a57e700fe05dcdf12b600e0c9d4f586a3d4b1f4071d95/hifiberrydsp-0.20-py3-none-any.whl (55kB)
100% |████████████████████████████████| 61kB 1.3MB/s
Requirement already satisfied, skipping upgrade: RPi.GPIO in /usr/lib/python3/dist-packages (from hifiberrydsp) (0.7.0)
Requirement already satisfied, skipping upgrade: lxml in /usr/lib/python3/dist-packages (from hifiberrydsp) (4.3.2)
Requirement already satisfied, skipping upgrade: spidev in /usr/lib/python3/dist-packages (from hifiberrydsp) (3.5)
Collecting xmltodict (from hifiberrydsp)
Downloading https://files.pythonhosted.org/packages/28/fd/30d5c1d3ac29ce229f6bdc40bbc20b28f716e8b363140c26eff19122d8a5/xmltodict-0.12.0-py2.py3-none-any.whl
Collecting pyalsaaudio (from hifiberrydsp)
Downloading https://www.piwheels.org/simple/pyalsaaudio/pyalsaaudio-0.9.0-cp37-cp37m-linux_armv7l.whl (65kB)
100% |████████████████████████████████| 71kB 282kB/s
Collecting zeroconf (from hifiberrydsp)
Downloading https://files.pythonhosted.org/packages/73/34/474853be969f18ac30a8b212f8665cb0460946788cd61647747a634eaf36/zeroconf-0.36.2-py3-none-any.whl (93kB)
100% |████████████████████████████████| 102kB 2.1MB/s
Collecting ifaddr>=0.1.7 (from zeroconf->hifiberrydsp)
Downloading https://files.pythonhosted.org/packages/92/0f/a577a724c03982b800232713874e805c8fcc14f4a2c3060902ed20b50da8/ifaddr-0.1.7-py2.py3-none-any.whl
Installing collected packages: xmltodict, pyalsaaudio, ifaddr, zeroconf, hifiberrydsp
Successfully installed hifiberrydsp-0.20 ifaddr-0.1.7 pyalsaaudio-0.9.0 xmltodict-0.12.0 zeroconf-0.36.2
michael3@raspberrypi3:~ $ bash <(curl https://raw.githubusercontent.com/hifiberry/hifiberry-dsp/master/install-dsptoolkit)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1026 100 1026 0 0 4684 0 --:--:-- --:--:-- --:--:-- 4684
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
python-dev is already the newest version (2.7.16-1).
python-dev set to manually installed.
python3-lxml is already the newest version (4.3.2-1+deb10u3).
python3-lxml set to manually installed.
zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
zlib1g-dev set to manually installed.
python3-pip is already the newest version (18.1-5+rpt1).
The following package was automatically installed and is no longer required:
python-colorzero
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
icu-devtools libicu-dev python-backports.functools-lru-cache python-bs4 python-html5lib python-soupsieve python-webencodings
Suggested packages:
icu-doc python-genshi python-lxml-dbg python-lxml-doc
The following NEW packages will be installed:
icu-devtools libicu-dev libxml2-dev libxslt1-dev python-backports.functools-lru-cache python-bs4 python-html5lib python-lxml
python-soupsieve python-webencodings
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.4 MB of archives.
After this operation, 50.6 MB of additional disk space will be used.
Get:1 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf icu-devtools armhf 63.1-6+deb10u1 [163 kB]
Get:2 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libicu-dev armhf 63.1-6+deb10u1 [8,841 kB]
Get:3 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libxml2-dev armhf 2.9.4+dfsg1-7+deb10u2 [641 kB]
Get:4 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libxslt1-dev armhf 1.1.32-2.2~deb10u1 [491 kB]
Get:5 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf python-backports.functools-lru-cache all 1.5-3 [6,704 B]
Get:6 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf python-soupsieve all 1.8+dfsg-1 [27.6 kB]
Get:7 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf python-bs4 all 4.7.1-1 [94.2 kB]
Get:8 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf python-webencodings all 0.5.1-1 [10.7 kB]
Get:9 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf python-html5lib all 1.0.1-1 [89.8 kB]
Get:10 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf python-lxml armhf 4.3.2-1+deb10u3 [1,021 kB]
Fetched 11.4 MB in 4s (3,111 kB/s)
Selecting previously unselected package icu-devtools.
(Reading database ... 98830 files and directories currently installed.)
Preparing to unpack .../0-icu-devtools_63.1-6+deb10u1_armhf.deb ...
Unpacking icu-devtools (63.1-6+deb10u1) ...
Selecting previously unselected package libicu-dev:armhf.
Preparing to unpack .../1-libicu-dev_63.1-6+deb10u1_armhf.deb ...
Unpacking libicu-dev:armhf (63.1-6+deb10u1) ...
Selecting previously unselected package libxml2-dev:armhf.
Preparing to unpack .../2-libxml2-dev_2.9.4+dfsg1-7+deb10u2_armhf.deb ...
Unpacking libxml2-dev:armhf (2.9.4+dfsg1-7+deb10u2) ...
Selecting previously unselected package libxslt1-dev:armhf.
Preparing to unpack .../3-libxslt1-dev_1.1.32-2.2~deb10u1_armhf.deb ...
Unpacking libxslt1-dev:armhf (1.1.32-2.2~deb10u1) ...
Selecting previously unselected package python-backports.functools-lru-cache.
Preparing to unpack .../4-python-backports.functools-lru-cache_1.5-3_all.deb ...
Unpacking python-backports.functools-lru-cache (1.5-3) ...
Selecting previously unselected package python-soupsieve.
Preparing to unpack .../5-python-soupsieve_1.8+dfsg-1_all.deb ...
Unpacking python-soupsieve (1.8+dfsg-1) ...
Selecting previously unselected package python-bs4.
Preparing to unpack .../6-python-bs4_4.7.1-1_all.deb ...
Unpacking python-bs4 (4.7.1-1) ...
Selecting previously unselected package python-webencodings.
Preparing to unpack .../7-python-webencodings_0.5.1-1_all.deb ...
Unpacking python-webencodings (0.5.1-1) ...
Selecting previously unselected package python-html5lib.
Preparing to unpack .../8-python-html5lib_1.0.1-1_all.deb ...
Unpacking python-html5lib (1.0.1-1) ...
Selecting previously unselected package python-lxml:armhf.
Preparing to unpack .../9-python-lxml_4.3.2-1+deb10u3_armhf.deb ...
Unpacking python-lxml:armhf (4.3.2-1+deb10u3) ...
Setting up icu-devtools (63.1-6+deb10u1) ...
Setting up python-backports.functools-lru-cache (1.5-3) ...
Setting up python-webencodings (0.5.1-1) ...
Setting up libicu-dev:armhf (63.1-6+deb10u1) ...
Setting up python-lxml:armhf (4.3.2-1+deb10u3) ...
Setting up python-html5lib (1.0.1-1) ...
Setting up python-soupsieve (1.8+dfsg-1) ...
Setting up libxml2-dev:armhf (2.9.4+dfsg1-7+deb10u2) ...
Setting up libxslt1-dev:armhf (1.1.32-2.2~deb10u1) ...
Setting up python-bs4 (4.7.1-1) ...
Processing triggers for man-db (2.8.5-2) ...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: hifiberrydsp in /usr/local/lib/python3.7/dist-packages (0.20)
Requirement already satisfied, skipping upgrade: pyalsaaudio in /usr/local/lib/python3.7/dist-packages (from hifiberrydsp) (0.9.0)
Requirement already satisfied, skipping upgrade: RPi.GPIO in /usr/lib/python3/dist-packages (from hifiberrydsp) (0.7.0)
Requirement already satisfied, skipping upgrade: zeroconf in /usr/local/lib/python3.7/dist-packages (from hifiberrydsp) (0.36.2)
Requirement already satisfied, skipping upgrade: spidev in /usr/lib/python3/dist-packages (from hifiberrydsp) (3.5)
Requirement already satisfied, skipping upgrade: lxml in /usr/lib/python3/dist-packages (from hifiberrydsp) (4.3.2)
Requirement already satisfied, skipping upgrade: xmltodict in /usr/local/lib/python3.7/dist-packages (from hifiberrydsp) (0.12.0)
Requirement already satisfied, skipping upgrade: ifaddr>=0.1.7 in /usr/local/lib/python3.7/dist-packages (from zeroconf->hifiberrydsp) (0.1.7)
Failed to stop sigmatcp.service: Unit sigmatcp.service not loaded.
Failed to disable unit: Unit file sigmatcp.service does not exist.
Created symlink /etc/systemd/system/multi-user.target.wants/sigmatcp.service → /lib/systemd/system/sigmatcp.service.
mv: failed to preserve ownership for '/boot/config.txt': Operation not permitted
michael3@raspberrypi3:~ $ dsptoolkit write-reg 0xF106 0x0003
michael3@raspberrypi3:~ $ dsptoolkit write-reg 0xF146 0x0004
michael3@raspberrypi3:~ $ dsptoolkit write-reg 0xF195 0x0000
michael3@raspberrypi3:~ $ dsptoolkit write-reg 0xF194 0x0033
michael3@raspberrypi3:~ $ dsptoolkit write-reg 0xF21C 0x6C40
michael3@raspberrypi3:~ $ arecord -D hw:CARD=sndrpihifiberry,DEV=0 -d 10 -f S32_LE -r 44100 -c 2 sample.wav
Recording WAVE 'sample.wav' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo
michael3@raspberrypi3:~ $ sudo apt install audacity
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
python-colorzero
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
audacity-data libflac++6v5 libportaudio2 libportsmf0 libsuil-0-0 libvamp-hostsdk3v5 libwxbase3.0-0v5 libwxgtk3.0-0v5
Suggested packages:
ladspa-plugin
The following NEW packages will be installed:
audacity audacity-data libflac++6v5 libportaudio2 libportsmf0 libsuil-0-0 libvamp-hostsdk3v5 libwxbase3.0-0v5 libwxgtk3.0-0v5
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,230 kB of archives.
After this operation, 36.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf audacity-data all 2.2.2-1 [1,693 kB]
Get:2 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libflac++6v5 armhf 1.3.2-3 [34.7 kB]
Get:3 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libportaudio2 armhf 19.6.0-1+deb10u1 [56.7 kB]
Get:4 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libportsmf0 armhf 0.1~svn20101010-5 [47.3 kB]
Get:5 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libsuil-0-0 armhf 0.10.0~dfsg0-1 [19.5 kB]
Get:6 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libvamp-hostsdk3v5 armhf 2.7.1~repack0-1 [75.1 kB]
Get:7 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libwxbase3.0-0v5 armhf 3.0.4+dfsg-8 [891 kB]
Get:8 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf libwxgtk3.0-0v5 armhf 3.0.4+dfsg-8 [3,556 kB]
Get:9 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf audacity armhf 2.2.2-1+b1 [2,857 kB]
Fetched 9,230 kB in 4s (2,144 kB/s)
Selecting previously unselected package audacity-data.
(Reading database ... 99492 files and directories currently installed.)
Preparing to unpack .../0-audacity-data_2.2.2-1_all.deb ...
Unpacking audacity-data (2.2.2-1) ...
Selecting previously unselected package libflac++6v5:armhf.
Preparing to unpack .../1-libflac++6v5_1.3.2-3_armhf.deb ...
Unpacking libflac++6v5:armhf (1.3.2-3) ...
Selecting previously unselected package libportaudio2:armhf.
Preparing to unpack .../2-libportaudio2_19.6.0-1+deb10u1_armhf.deb ...
Unpacking libportaudio2:armhf (19.6.0-1+deb10u1) ...
Selecting previously unselected package libportsmf0:armhf.
Preparing to unpack .../3-libportsmf0_0.1~svn20101010-5_armhf.deb ...
Unpacking libportsmf0:armhf (0.1~svn20101010-5) ...
Selecting previously unselected package libsuil-0-0:armhf.
Preparing to unpack .../4-libsuil-0-0_0.10.0~dfsg0-1_armhf.deb ...
Unpacking libsuil-0-0:armhf (0.10.0~dfsg0-1) ...
Selecting previously unselected package libvamp-hostsdk3v5:armhf.
Preparing to unpack .../5-libvamp-hostsdk3v5_2.7.1~repack0-1_armhf.deb ...
Unpacking libvamp-hostsdk3v5:armhf (2.7.1~repack0-1) ...
Selecting previously unselected package libwxbase3.0-0v5:armhf.
Preparing to unpack .../6-libwxbase3.0-0v5_3.0.4+dfsg-8_armhf.deb ...
Unpacking libwxbase3.0-0v5:armhf (3.0.4+dfsg-8) ...
Selecting previously unselected package libwxgtk3.0-0v5:armhf.
Preparing to unpack .../7-libwxgtk3.0-0v5_3.0.4+dfsg-8_armhf.deb ...
Unpacking libwxgtk3.0-0v5:armhf (3.0.4+dfsg-8) ...
Selecting previously unselected package audacity.
Preparing to unpack .../8-audacity_2.2.2-1+b1_armhf.deb ...
Unpacking audacity (2.2.2-1+b1) ...
Setting up libportaudio2:armhf (19.6.0-1+deb10u1) ...
Setting up libvamp-hostsdk3v5:armhf (2.7.1~repack0-1) ...
Setting up audacity-data (2.2.2-1) ...
Setting up libportsmf0:armhf (0.1~svn20101010-5) ...
Setting up libsuil-0-0:armhf (0.10.0~dfsg0-1) ...
Setting up libwxbase3.0-0v5:armhf (3.0.4+dfsg-8) ...
Setting up libflac++6v5:armhf (1.3.2-3) ...
Setting up libwxgtk3.0-0v5:armhf (3.0.4+dfsg-8) ...
Setting up audacity (2.2.2-1+b1) ...
Processing triggers for shared-mime-info (1.10-1) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.31.4-3) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
michael3@raspberrypi3:~ $ arecord -D hw:CARD=sndrpihifiberry,DEV=0 -d 10 -f S32_LE -r 44100 -c 2 sample.wav
Recording WAVE 'sample.wav' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo
michael3@raspberrypi3:~ $ sudo reboot
Connection to raspberrypi3 closed by remote host.
Connection to raspberrypi3 closed.
michaeldsimon@Michaels-MacBook-Pro ~ % ssh michael3@raspberrypi3
michael3@raspberrypi3's password:
Linux raspberrypi3 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Sep 10 05:18:50 2021 from 192.168.86.27
michael3@raspberrypi3:~ $ wget https://raw.githubusercontent.com/hifiberry/hifiberry-os/master/buildroot/package/dsptoolkit/spdif2pi
--2021-09-10 05:31:22-- https://raw.githubusercontent.com/hifiberry/hifiberry-os/master/buildroot/package/dsptoolkit/spdif2pi
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 844 [text/plain]
Saving to: ‘spdif2pi’
spdif2pi 100%[===========================================================================================>] 844 --.-KB/s in 0s
2021-09-10 05:31:22 (4.48 MB/s) - ‘spdif2pi’ saved [844/844]
michael3@raspberrypi3:~ $ mv spdif2pi spdif2pi.sh
michael3@raspberrypi3:~ $ chmod +x spdif2pi.sh
michael3@raspberrypi3:~ $ ./spdif2pi.sh
michael3@raspberrypi3:~ $ arecord -D hw:CARD=sndrpihifiberry,DEV=0 -d 10 -f S32_LE -r 44100 -c 2 sample.wav
Recording WAVE 'sample.wav' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo