hifiberry / hifiberry-os

Linux distribution optimized for audio playback
MIT License
1.01k stars 128 forks source link

Beocreate 4 channel amplifier incorrectly detected as DAC+ DSP in 20211105 #303

Closed thefiddler closed 2 years ago

thefiddler commented 3 years ago

Describe the bug Beocreate 4 channel amplifier is incorrectly detected as DAC+ DSP. No sound.

HiFiBerryOS version 20211105

HiFiBerry sound card Beocreate 4 channel amplifier

To Reproduce Steps to reproduce the behavior:

  1. Install an AMP2 and configure it - works fine
  2. Replace the AMP2 with a Beocreate - appears as DAC+ DSP instead
  3. Try to play any sound (airplay or bluetooth) - no sound

Expected behavior Beocreate 4 channel amplifier should be detected and used.

Screenshots image

Browser (if applicable)

Additional context I was successfully using AMP2 before.

After installing the Beocreate, the DSP program was listed as Unknown Program.

I followed the instructions from Norbert here https://support.hifiberry.com/hc/en-us/community/posts/4409631891217-Improved-DAC-DSP-Beocreate-detection:

image

thefiddler commented 3 years ago

If I run /opt/hifiberry/bin/reconfigure-players without a /etc/hifiberry/config.fixed I get the wrong sound card (DAC+ DSP):

/opt/hifiberry/bin/readhat: line 23: /sys/class/i2c-adapter/i2c-/new_device: No such file or directory
/etc/hifiberry ~
~
Feature pi not yet configured
Feature dsp not yet configured
Sound card settings have been changed, reconfiguring...
Applying settings:
 Players:  (was )
 Raspberry Pi model: 4
 System name: egli-hifi (was egli-hifi)
 Sound card: DAC+ DSP (was Beocreate 4-Channel Amplifier)
 Interrupt pin for power controller: 2 (was )
 DSP type: DAC+ DSP (was )
 HW device: card 0 (was card 0)
 ALSA mixer control: DSPVolume (was DSPVolume)
 Recording:  (was )
 Vendor/product   (was )
 Features: pi bluetooth pi3orlater arm7 dsp toslink localui (was !)

Saving settings to /etc/hifiberry.state
Reconfigure features
Reconfiguring Spotifyd
Reconfiguring Vollibrespot
Reconfiguring Shairport-sync
Reconfiguring Bluetooth
Reconfiguring squeezelite
Reconfiguring MPD
Reconfiguring DLNA
Reconfiguring Mopidy
modidy not installed, ignoring
Reconfigure AudioControl2
 updated interrupt pin
Restarting audiocontrol2
Reconfigure upmpdcli
Reconfigure RAAT
Configuring RAAT server for UUID 78142091-3786-441b-9c55-94a1a9e9e085 on DAC+ (snd_rpi_hifiberry_dac)
Reconfiguring Beocreate software
Value could not be interpreted as JSON, falling back to old method.
Settings updated for 'system'.
 updated card type
["pi","bluetooth","pi3orlater","arm7","dsp","toslink","localui"]
Settings updated for 'system'.
Value could not be interpreted as JSON, falling back to old method.
Settings updated for 'system'.
Restarting beocreate2
 restarting Beocreate

If I run /opt/hifiberry/bin/reconfigure-players with a /etc/hifiberry/config.fixed I get the right Beocreate sound card, but the DSP disappears:

# /etc/hifiberry/config.fixed
MIXER_CONTROL="DSPVolume"
CARD="Beocreate 4-Channel Amplifier"
FEATURES="toslink localui"
/opt/hifiberry/bin/reconfigure-players: line 50: $N=${CURRENT_$N}: bad substitution
Using fixed card Beocreate 4-Channel Amplifier with fetaures toslink localui bluetooth pi3orlater arm7
Using fixed mixer control DSPVolume
/etc/hifiberry ~
~
Sound card settings have been changed, reconfiguring...
Applying settings:
 Players:  (was )
 Raspberry Pi model: 4
 System name: egli-hifi (was egli-hifi)
 Sound card: Beocreate 4-Channel Amplifier (was DAC+ DSP)
 Interrupt pin for power controller:  (was 2)
 DSP type:  (was DAC+ DSP)
 HW device: card 0 (was card 0)
 ALSA mixer control: DSPVolume (was DSPVolume)
 Recording:  (was )
 Vendor/product  (was  )
 Features: toslink localui bluetooth pi3orlater arm7 localui (was pi bluetooth pi3orlater arm7 dsp toslink localui)

Saving settings to /etc/hifiberry.state
Reconfigure features
Reconfiguring Spotifyd
Reconfiguring Vollibrespot
Reconfiguring Shairport-sync
Reconfiguring Bluetooth
Reconfiguring squeezelite
Reconfiguring MPD
Reconfiguring DLNA
Reconfiguring Mopidy
modidy not installed, ignoring
Reconfigure AudioControl2
 updated interrupt pin
Restarting audiocontrol2
Reconfigure upmpdcli
Reconfigure RAAT
Configuring RAAT server for UUID 78142091-3786-441b-9c55-94a1a9e9e085 on DAC+ (snd_rpi_hifiberry_dac)
Reconfiguring Beocreate software
Value could not be interpreted as JSON, falling back to old method.
Settings updated for 'system'.
 updated card type
["toslink","localui","bluetooth","pi3orlater","arm7","localui"]
Settings updated for 'system'.
Restarting beocreate2
 restarting Beocreate

Edit: if I add "dsp" to FEATURES, then the DSP appears!

# /etc/hifiberry/config.fixed
MIXER_CONTROL="DSPVolume"
CARD="Beocreate 4-Channel Amplifier"
FEATURES="toslink localui dsp"

And sound output works!

hifiberry commented 3 years ago

Can you please post the output of

/opt/hifiberry/bin/read-hat

thefiddler commented 2 years ago

Running /opt/hifiberry/bin/readhat prints:

/opt/hifiberry/bin/readhat: line 23: /sys/class/i2c-adapter/i2c-/new_device: No such file or directory
hifiberry commented 2 years ago

This should have been fixed some time ago. Can you test with the latest release?

jedie commented 2 years ago

Think i have the same Problem with current 20220826 release!

image

# /opt/hifiberry/bin/readhat
no vendor:no product

I tried without and with /etc/hifiberry/config.fixed with:

MIXER_CONTROL="DSPVolume"
CARD="Beocreate 4-Channel Amplifier"
FEATURES="toslink localui dsp"

image

# /opt/hifiberry/bin/check-system  
HiFiBerryOS version: 20220826
Pi type: 3B
Pi model: Raspberry Pi 3 Model B Rev 1.2
Compatibility: No known problems
Sound card: Beocreate 4-Channel Amplifier
Sound card ID: 0
aplay 1: card 0 sndrpihifiberry [snd_rpi_hifiberry_dac]
aplay 2:  device 0 HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
Mixer: DSPVolume
Features: toslink localui dsp pi3orlater arm7 localui
Power controller: Error: Read failed
Error: Read failed
not detected
Linux version: Linux beocreate 5.15.56-v7 #1 SMP Thu Aug 25 10:09:45 UTC 2022 armv7l GNU/Linux
Date and time: Thu Oct 20 15:36:46 CEST 2022
eth0: 192.168.6.96
eth0: 192.168.6.52
/data mounted: OK
/dev/dri/card0: OK
BT devices: 
WiFi devices: wlan0
audiocontrol2: running
beocreate2: running
bluetooth: not running
bluealsa: running
bluealsa-aplay: running
dlnampris: not running
mpd: running
pigpio: running
raat: not running
shairport-sync: not running
sigmatcp: running
snapcastmpris: not running
spotify: running
squeezelite: not running
sshd: running
ympd: not running
weston: not running
cog: not running
# /opt/hifiberry/bin/detect-hifiberry 
Mounting /boot
Detecting using I2C
Could not find an I2C enabled sound card
Assuming HiFiBerry DAC+ Light, Zero