6 comments
-
HiFiBerry team Ooops, looks like we missed this in the current DSP profile. We'll come back with a new one soon...
-
HiFiBerry team Can you try this one:
https://raw.githubusercontent.com/hifiberry/dspprofiles/refs/heads/master/dspaddon/dsp-addon-96-14.xml
Unfortunately I didn't find the time for full testing, only tested that the input pass-trough is working at all. So no guarantee this works perfectly. If there are still problems, let me know and we'll look into this again next week. I just didn't want to let you wait over the weekend. -
JPF84 Cool! Now it works using arecord (arecord -d60 -fS16_LE -r44100 -c 2 s16_44.wav)
What it doesn’t work is with HifiberryOSalpha8 and alsaloop. It starts playing music but after 4 o 5 seconds stops. This is the journal log:##############
Nov 15 19:26:23 hifiberry node[3694]: Source 'alsaloop' has activated.
Nov 15 19:26:23 hifiberry python3[3678]: INFO: http_post - posted metadata update to http://127.0.0.1:80/sources/metadata ({'artist': None, 'title': None, 'albumArtist': None, 'albumTitle': None, 'artUrl': None, 'externalArtUrl': None, 'discNumber': None, 'tracknumber': None, 'playerName': 'alsaloop', 'playerState': 'playing', 'streamUrl': dbus.String('alsaloop://', variant_level=1), 'playCount': None, 'mbid': None, 'artistmbid': None, 'albummbid': None, 'loved': None, 'wiki': None, 'loveSupported': True, 'tags': [], 'skipped': False, 'host_uuid': None, 'releaseDate': None, 'trackid': None, 'hifiberry_cover_found': False, 'duration': 0, 'time': 0, 'position': 0, 'positionupdate': 1731698783.7669504, 'trackId': None})
Nov 15 19:26:25 hifiberry python3[3678]: 127.0.0.1 - - [15/Nov/2024 19:26:25] "GET /api/player/status HTTP/1.1" 200 825
Nov 15 19:26:26 hifiberry systemd[1]: Starting Store volume...
Nov 15 19:26:26 hifiberry store-volume[3896]: Storing ALSA volume...
Nov 15 19:26:27 hifiberry systemd[1]: store-volume.service: Deactivated successfully.
Nov 15 19:26:27 hifiberry systemd[1]: Finished Store volume.
Nov 15 19:26:31 hifiberry systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Nov 15 19:26:31 hifiberry audit: BPF prog-id=146 op=UNLOAD
Nov 15 19:26:31 hifiberry audit: BPF prog-id=145 op=UNLOAD
Nov 15 19:26:31 hifiberry audit: BPF prog-id=144 op=UNLOAD
Nov 15 19:26:31 hifiberry kernel: kauditd_printk_skb: 18 callbacks suppressed
Nov 15 19:26:31 hifiberry kernel: audit: type=1334 audit(1731698791.306:361): prog-id=146 op=UNLOAD
Nov 15 19:26:31 hifiberry kernel: audit: type=1334 audit(1731698791.306:362): prog-id=145 op=UNLOAD
Nov 15 19:26:31 hifiberry kernel: audit: type=1334 audit(1731698791.306:363): prog-id=144 op=UNLOAD
Nov 15 19:26:32 hifiberry python3[3871]: INFO: root - playback status changed from playing to stopped
Nov 15 19:26:32 hifiberry python3[3678]: ERROR: webserver - alsaloop
Nov 15 19:26:33 hifiberry python3[3678]: INFO: powercontroller - Update LED state for state=stopped
Nov 15 19:26:33 hifiberry python3[3678]: ERROR: powercontroller - Could not write to power controller: 5
Nov 15 19:26:33 hifiberry node[3694]: Source 'alsaloop' has deactivated.
Nov 15 19:26:33 hifiberry python3[3678]: INFO: http_post - posted metadata update to http://127.0.0.1:80/sources/metadata ({'artist': None, 'title': None, 'albumArtist': None, 'albumTitle': None, 'artUrl': None, 'externalArtUrl': None, 'discNumber': None, 'tracknumber': None, 'playerName': 'alsaloop', 'playerState': 'stopped', 'streamUrl': dbus.String('alsaloop://', variant_level=1), 'playCount': None, 'mbid': None, 'artistmbid': None, 'albummbid': None, 'loved': None, 'wiki': None, 'loveSupported': True, 'tags': [], 'skipped': False, 'host_uuid': None, 'releaseDate': None, 'trackid': None, 'hifiberry_cover_found': False, 'duration': 0, 'time': 0, 'position': 0, 'positionupdate': 1731698793.2415125, 'trackId': None})
Nov 15 19:26:33 hifiberry dockerd[502]: time="2024-11-15T19:26:33.500531234Z" level=error msg="stream copy error: reading from a closed fifo"
Nov 15 19:26:33 hifiberry dockerd[502]: time="2024-11-15T19:26:33.501136821Z" level=error msg="stream copy error: reading from a closed fifo"
Nov 15 19:26:33 hifiberry dockerd[502]: time="2024-11-15T19:26:33.509793861Z" level=error msg="Error running exec 8a02b3bccc7bafd40b0af32133aa73a8fe8cff2c6ebb4d8a658cce6f8d4da80a in container: OCI runtime exec failed: exec failed: unable to start container process: exec: \"is-active\": executable file not found in $PATH: unknown"
Nov 15 19:26:34 hifiberry dockerd[502]: time="2024-11-15T19:26:34.003529165Z" level=error msg="stream copy error: reading from a closed fifo"
Nov 15 19:26:34 hifiberry dockerd[502]: time="2024-11-15T19:26:34.003770633Z" level=error msg="stream copy error: reading from a closed fifo"
Nov 15 19:26:34 hifiberry dockerd[502]: time="2024-11-15T19:26:34.011699318Z" level=error msg="Error running exec 88603892996c48feb269ce8bb6d3cdb3e85f5282674c97491454210aea14ab1a in container: OCI runtime exec failed: exec failed: unable to start container process: exec: \"is-active\": executable file not found in $PATH: unknown"
Nov 15 19:26:34 hifiberry systemd[1]: run-docker-runtime\x2drunc-moby-71e1cc46b1380f0c98f098f1ee549996fec65a7d5323904de7802381130c7399-runc.SEpLMo.mount: Deactivated successfully.
Nov 15 19:26:34 hifiberry systemd[1]: run-docker-runtime\x2drunc-moby-386cd7ae03f6aeb29c90c4b6840132578b37bf19a40d96262a768ba6d8bca9b5-runc.KqFv4Q.mount: Deactivated successfully.
Nov 15 19:26:34 hifiberry dockerd[502]: time="2024-11-15T19:26:34.502694969Z" level=error msg="stream copy error: reading from a closed fifo"
Nov 15 19:26:34 hifiberry dockerd[502]: time="2024-11-15T19:26:34.502775230Z" level=error msg="stream copy error: reading from a closed fifo"
Nov 15 19:26:34 hifiberry dockerd[502]: time="2024-11-15T19:26:34.510632134Z" level=error msg="Error running exec f5a04424e4f52a78177affbdd3a801216e4315a37a448150bc07e7247a8661f7 in container: OCI runtime exec failed: exec failed: unable to start container process: exec: \"is-active\": executable file not found in $PATH: unknown"
Nov 15 19:26:34 hifiberry python3[3678]: INFO: webserver - active player: python
Nov 15 19:26:34 hifiberry python3[3678]: INFO: webserver - Pausing active player
Nov 15 19:26:34 hifiberry python3[3678]: INFO: controller - sent Pause to org.mpris.MediaPlayer2.alsaloop
##############I’m not sure if it is useful, but is all I get.
Thanks!
-
JPF84 Digging a little bit more, it seems to be something related to the Web interface of HifiberryOS because both:
/opt/alsaloop/alsaloop.py 0
And
alsaloop -r 48000 -C hw:0 -P hw:0 -l 256 -s 0 -U
Works fine.
Thanks!
-
HiFiBerry team Hmm, looks like a general bug in the loop application. Do you see the same problem without the DSP add-on?
-
JPF84 Yes, same problem without the DSP add-on. “Start when signal detected” doesn’t work, and when I enable analog input manually, most times audiocontrol2.service restarts (seeing journal log) and in some occasions it starts playing input sound but only for few seconds.
However, executing alsaloop.py through ssh works perfectly after disabling the service (systemctl disable alsaloop)