b-ak / audiosense-pi Goto Github PK
View Code? Open in Web Editor NEWAudioSense-Pi is a OSHW certified RPi HAT based on TI's stereo codec
AudioSense-Pi is a OSHW certified RPi HAT based on TI's stereo codec
Hi.
My hardware: RaspberryPi 4/4GB with latest Raspbian kernel 4.19.
I have two AudioSense-Pi that I have assembled myself.
I added all necessary entries to /boot/config.txt:
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
dtoverlay=lirc-rpi
dtoverlay=audiosense-pi
My problem is that there is no audio signal on both headphone and line outputs.
Test i did:
1: ffmpeg -i Downloads/1kHz_44100Hz_16bit_30sec.wav -af "pan=stereo|c0=c0|c1=c0" -ar 48000 -f alsa hw:1,0
No audio output! I noticed that "time" increases every two to three seconds and "speed" drops from 0.99 downwards v. fast...
It's the same for both PCBs
Perhaps something is wrong on the PCB, but all the elements were new and I tried to assemble them very carefully!
I'm sure raspbian os recognizes AudioSense-Pi correctly. I carried out the test by giving an audio signal to the LineIn input and switched "Bypass" - HPL / R Output Mixer IN1L / R
I heard on the headphones what was on the line input... I2C is working...
OK.
For today I have to finish ...
Maybe someone has an idea where is the problem ....?
Or maybe someone already had such a problem ...?
By
Hi
I have a custom board using i2c10 as I need to use the serial port using i2c1 pins.
So I will have to recompile the overlay file but cannot find the original dtb file.
Can you help?
Thanks
Andy.
I have acquired a Raspberry Pi 3 Model B+ in order to test. Unfortunately, I am still having no success getting audiosense-pi to work. :-(
I am trying to use Linux raspberrypi 4.19.118-v7+ #1311
If I have headphones plugged in when I power it up, I hear a pop, and power light is on, so it is at least getting power.
Following settings are in config.txt:
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
# Additional overlays and parameters are documented /boot/overlays/README
dtoverlay=audiosense-pi
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
I see devices like so:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: audiosensepi [audiosense-pi], device 0: TLV320AIC3204 Hifi Audio tlv320aic32x4-hifi-0 [TLV320AIC3204 Hifi Audio tlv320aic32x4-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
When attempting to play audio file, I hear nothing in headphones and get error eventually:
$ aplay -D hw:1 archer-theme-song-16bit-pcm.wav
Playing WAVE 'archer-theme-song-16bit-pcm.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
aplay: pcm_write:2053: write error: Input/output error
Any suggestions what issue could be or how to troubleshoot?
it is working again after downgrading with:
sudo rpi-update 453e49bdd87325369b462b40e809d5f3187df21d
Error on 5.10:
tlv320aic32x4: probe of 1-0018 failed with error -121
More info to be added...
I have followed the instructions but GPIO pin 26 is set to an INPUT rather than a HIGH OUTPUT to bring the codec chip out of reset.
This means that nothing works!
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.