b-ak / audiosense-pi

AudioSense-Pi is a OSHW certified RPi HAT based on TI's stereo codec
10 stars 2 forks source link

Playback not working, getting input/output error #2

Open SlowFamily opened 3 years ago

SlowFamily commented 3 years ago

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?

SlowFamily commented 3 years ago

Are there any particular settings in alsamixer that need to be enabled? There are a lot of items in there that I do not understand what they do. I have tried to ensure nothing is muted, but maybe something needs to be turned up?

b-ak commented 3 years ago

I will upload my image over the weekend. Please give it a try. Seems to be something basic that you are missing..

SlowFamily commented 3 years ago

I will upload my image over the weekend. Please give it a try. Seems to be something basic that you are missing..

Where is image uploaded to? I attempted to click link to Google Drive in the README but seems to still not exist on that link.

b-ak commented 3 years ago

Here's the image https://drive.google.com/file/d/10sPdlaTlowZFA2HO4iOQT1hiyIX3uXNR/view?usp=sharing

Hope it works now, do let me know (also helps for closure of this issue)