homebridge-raspbian-image icon indicating copy to clipboard operation
homebridge-raspbian-image copied to clipboard

Sound is not working on RPi != 5

Open Vaxter opened this issue 5 months ago • 3 comments

Raspberry Pi Model

Raspberry Pi 4 B

Describe The Bug

Download and flash Homebridge image with RPi Imager.

Setup Codec Zero sound card by following the official documentation: https://www.raspberrypi.com/documentation/accessories/audio.html#raspberry-pi-codec-zero

Try to record sound: arecord -f cd test.wav

Recording is empty.

I have tested this on PRi4, RPi Zero WH and RPi Zero 2 W, same results - empty recording.

Do the same thing on RPi 5, everything works as expected.

Use RPi OS Lite or any other image on any RPi version, again everything works.

Logs

Error that arecord sometimes shows, but not always:
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
overrun!!! (at least 1.091 ms long)
overrun!!! (at least 0.165 ms long)
^CAborted by signal Interrupt...

Vaxter avatar Jan 29 '24 15:01 Vaxter

You could install RPI OS lite then install the homebridge apt package. That is what is done within the homebridge raspbian package.

https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian

NorthernMan54 avatar Jan 30 '24 01:01 NorthernMan54

That’s fine for me, but I am developing a HB plugin for hooking an analog intercom to HB and I don’t think that everyone would be willing to do this.

Anyhow, there is an issue that should be fixed…

Vaxter avatar Jan 30 '24 09:01 Vaxter

As fixing this requires the HAT you are using, could you look into what is missing from the Homebridge Image, and we can add it.

The build is here, which is pretty straight forward - https://github.com/homebridge/homebridge-raspbian-image/blob/latest/.github/workflows/create_raspbian_pi-gen.yml

NorthernMan54 avatar Jan 30 '24 14:01 NorthernMan54

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 01 '24 01:03 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 01 '24 01:04 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 02 '24 01:05 github-actions[bot]

This issue has been closed as no further activity has occurred.

github-actions[bot] avatar May 07 '24 01:05 github-actions[bot]