Code Monkey home page Code Monkey logo

tpa-hermes-rpi-dev's Introduction

execute all as root

sudo su

(first time only) install required packages

apt-get install raspberrypi-kernel-headers gcc make device-tree-compiler git

(first time only) download Hermes-RPi driver sources

git clone https://github.com/miero/tpa-hermes-rpi-dev.git

enter driver directory

cd tpa-hermes-rpi-dev

(upgrade only) download current Hermes-RPi driver sources

git pull

build and install modules and overlay file from the tpa-hermes-rpi-dev directory

make clean
make install
depmod -A

(first time only on most RPi distros) append loading tpa-hermes-rpi overlay into config.txt

echo "dtoverlay=tpa-hermes-rpi" >> /boot/config.txt

(first time only on DietPi) append loading tpa-hermes-rpi overlay into config.txt

echo "dtoverlay=tpa-hermes-rpi" >> /DietPi/config.txt
/DietPi/dietpi/func/dietpi-set_hardware soundcard hw:sndtpahermesrpi,0

reboot

reboot

verify that the driver is loaded

aplay -l

output of aplay command should contain sndtpahermesrpi device

**** List of PLAYBACK Hardware Devices ****
...
card 1: sndtpahermesrpi [snd_tpa_hermes_rpi], device 0: TPA-Hermes-RPi HiFi tpa-hermes-rpi-dai-0 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0

tpa-hermes-rpi-dev's People

Contributors

fernfrost avatar miero avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tpa-hermes-rpi-dev's Issues

Error writing from AlsaSink buffer to PCM

Hi Miero

Been testing with raspotify and librespot that uses alsa backend but i think there is a driver issue.
DietPi version: ARMv7 32-bit Bullseye

Error:

Nov 26 22:03:39 DietPi librespot[1197]: [2021-11-26T21:03:39Z WARN  librespot_playback::audio_backend::alsa] Error writing from AlsaSink buffer to PCM, trying to recover, ALSA function 'snd_pcm_writei' failed with error 'EIO: I/O error'
Nov 26 22:03:39 DietPi librespot[1197]: [2021-11-26T21:03:39Z ERROR librespot_playback::player] Audio Sink Error On Write: <AlsaSink> ALSA function 'snd_pcm_recover' failed with error 'EIO: I/O error'

Output of aplay -L:

dietpi@DietPi:/$ sudo aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hw:CARD=sndtpahermesrpi,DEV=0
snd_tpa_hermes_rpi, TPA-Hermes-RPi HiFi tpa-hermes-rpi-codec-0
Direct hardware device without any conversions
plughw:CARD=sndtpahermesrpi,DEV=0
snd_tpa_hermes_rpi, TPA-Hermes-RPi HiFi tpa-hermes-rpi-codec-0
Hardware device with all software conversions
sysdefault:CARD=sndtpahermesrpi
snd_tpa_hermes_rpi, TPA-Hermes-RPi HiFi tpa-hermes-rpi-codec-0
Default Audio Device
dmix:CARD=sndtpahermesrpi,DEV=0
snd_tpa_hermes_rpi, TPA-Hermes-RPi HiFi tpa-hermes-rpi-codec-0
Direct sample mixing device

Output of aplay -Dhw:0,0 --dump-hw-params /usr/share/sounds/alsa/Front_Right.wav

ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card
aplay: main:830: audio open error: No such file or directory

Have you encountered this error?
What player software have you tested the driver with?

Old issue on raspoitify: dtcooper/raspotify#461

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.