Closed hackerb9 closed 11 months ago
Install RPiOS on a spare SD card and confirm that it also doesn't work, then we'll look at it.
The standard Hifiberry DAC does not have any I2C controlled device therefore i2cdetect won't show any DAC device. The aplay -l messages seem strange and may lead to some broken installation. Please follow pelwell's advice and make a clean install.
My apologies. I misunderstood #4898 to say that an i2s device should be expected to show up on the i2c bus with i2cdetect. That is not the case as my DAC is now working and it still does not show up with i2cdetect. (For anyone else who is using piCore and has the same problem, it was fixed by running tce-load -wi alsa.tcz
).
No problem - thanks for letting us know.
Describe the bug
The Hifiberry DAC does not show up as a sound card. It does not even appear on the i2c bus and an oscilloscope shows no data on the relevant pins. This situation might be analogous to issue #4898 , in which the overlay for the Hifiberry DAC 2 HD was not working.
Relevant section of config.txt
(See below for full config.txt.)
What does i2cdetect -y 1 show?
I see that no devices are on the i2c bus when using
dtoverlay=hifiberry-dac
. In fact, although hifiberry-dac is supposed to set dtparam=i2c automatically, it does not. To run i2cdetect, I must specify dtparam=i2c explicitly in config.txt in addition to the usualmodprobe i2c-dev
.Perhaps of note: knowing that the overlay was fixed for the Hifiberry DAC 2 HD, I also experimentally triedUpdate: It appears that the dacplushd overlay shows 4C in use even when no hat is installed. This was a red-herring.dtoverlay=hifiberry-dacplushd
. Although it is the wrong overlay for my card, it does demonstrate that my card is responding on the i2c bus. i2cdetect -y 1 shows address 4C as UU, in use by driver. My DAC still doesn't work, but it does suggest that the change to the hifiberry-dacplushd overlay by @j-schambacher in pull request #4904 may somehow be related.Is it a hardware fault?
Highly unlikely. I have reproduced this problem with two different Raspberry Pi Zeroes and two different DAC hats.
Steps to reproduce the behaviour
Install a hat compatible with the Hifiberry DAC. (I'm using the Adafruit "I2S DAC Bonnet"). Try
aplay -l
and note that the DAC is not detected.Device (s)
Raspberry Pi Zero, Raspberry Pi Zero W / WH
System
OS: piCore 14.
Firmware version: Apr 25 2023 18:32:05 Copyright (c) 2012 Broadcom version d7f9c2b4ef7e4a8c0b04374a879ce89d7a948453 (clean) (release) (start)
Kernel version: Linux box 6.1.25-piCore #1 Sun Apr 30 13:17:34 EDT 2023 armv6l GNU/Linux
Logs
i2cdetect -y 1
/proc/device-tree/chosen/user-warnings
File not found.
dmesg
vclog --msg
aplay -l
Full config.txt
Additional context
Other overlays of the same vintage likely also need to be updated, such as hifiberry-dacplus and i2c-dac.