Raspberry pi 3B+ running 64bit Raspberry Pi OS. Accessing from a Mac using Firefox Browser.
Everything is working great. Currently running HDMI out on the Raspberry Pi to a audio extractor for sake of testing. Waiting for my HAT/DAC to arrive.
Under audio output on the Plexamp Pi my audio device output is PulseAudio Sound and I see a lot of options to choose form in this menu.
I know my HDMI is coming from vc4-hdmi which is the last on on this list. When I actually select it and select away from PulseAudio Plexamp pauses the music if its playing, so I hit play again, then it moves forward in play for like 2 seconds then goes backwards for 1 or 2 seconds then tries to play then it pauses again. If I refresh the browser page it will try to play again and fail. So I figure ok go back to pulseaudio then. When I select PulseAudio and I hit play, no sound comes out and the browser window shows play for 2 seconds then reverse a second then stop. Or it just doesn’t work at all.
If I restart the raspberry pi with Pulse Audio selected before I restart then everything plays again like normal. Just wanted to share this weird thing that happens.
I don’t know if the output choices for the Pi need to be configured in the Raspberry pi or if I need to do something in raspberry pi OS to make them “active” or not? Not sure if that list can be shortened up or only reveal options that are “plugged in” so to speak. Anyway just throwing stuff out there.
Keep up the good work. Now that I know switcthing away from the output source will cause weirdness I am just not going to switch away from it. Also my Logs are attached just in case it helps.
Plexamp.log (119.5 KB)
elan
May 9, 2022, 12:59am
2
Plexamp uses ALSA so not sure if maybe PulseAudionos interfering in some way?
Maybe? Probably? Been doing some reading. Overall, seems like Raspberry Pi and the raspberry Pi OS the version I am running is Debian Bullseye. ALSA and Raspberry Pi have some issues/weirdness coming out of HDMI which is how I am running it at the moment. To really find out what is going on with HDMI audio I will have to dig deeper. I am too lazy to do that right now. From what I gather it seems there is a history of HDMI audio issues with Raspberry Pis.
Gonna roll with a PiHatDac to avoid going through the hdmi. PulseAudio is doing the job at the moment I am just not going to change outputs off of it.
elan
May 9, 2022, 6:18am
4
I see an error in there
May 08, 2022 19:00:58.569 [0x7a7fc180] ERROR - BASS: Error initializing device 3 with sample rate 44100 and flags 00000000 (46).
That means the device is busy. Possibly a combination of (a) enabling sample rate matching and (b) something else having exclusive access to the device?
Hmmm, thank you for that. Let me think. I used ps aux to see what was running on the pi. See below:
ryuzaki@raspberrypi:~ $ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.8 1.0 164820 10044 ? Ss 09:22 0:03 /sbin/init splash
root 2 0.0 0.0 0 0 ? S 09:22 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? I< 09:22 0:00 [rcu_gp]
root 4 0.0 0.0 0 0 ? I< 09:22 0:00 [rcu_par_gp]
root 7 0.3 0.0 0 0 ? I 09:22 0:01 [kworker/u8:0-events_unbound]
root 8 0.0 0.0 0 0 ? I< 09:22 0:00 [mm_percpu_wq]
root 9 0.0 0.0 0 0 ? S 09:22 0:00 [rcu_tasks_kthre]
root 10 0.0 0.0 0 0 ? S 09:22 0:00 [rcu_tasks_rude_]
root 11 0.0 0.0 0 0 ? S 09:22 0:00 [rcu_tasks_trace]
root 12 0.0 0.0 0 0 ? S 09:22 0:00 [ksoftirqd/0]
root 13 0.0 0.0 0 0 ? R 09:22 0:00 [rcu_preempt]
root 14 0.0 0.0 0 0 ? S 09:22 0:00 [migration/0]
root 15 0.0 0.0 0 0 ? S 09:22 0:00 [cpuhp/0]
root 16 0.0 0.0 0 0 ? S 09:22 0:00 [cpuhp/1]
root 17 0.0 0.0 0 0 ? S 09:22 0:00 [migration/1]
root 18 0.0 0.0 0 0 ? S 09:22 0:00 [ksoftirqd/1]
root 21 0.0 0.0 0 0 ? S 09:22 0:00 [cpuhp/2]
root 22 0.0 0.0 0 0 ? S 09:22 0:00 [migration/2]
root 23 0.0 0.0 0 0 ? S 09:22 0:00 [ksoftirqd/2]
root 26 0.0 0.0 0 0 ? S 09:22 0:00 [cpuhp/3]
root 27 0.0 0.0 0 0 ? S 09:22 0:00 [migration/3]
root 28 0.0 0.0 0 0 ? S 09:22 0:00 [ksoftirqd/3]
root 30 0.0 0.0 0 0 ? I< 09:22 0:00 [kworker/3:0H-kblockd]
root 31 0.0 0.0 0 0 ? S 09:22 0:00 [kdevtmpfs]
root 32 0.0 0.0 0 0 ? I< 09:22 0:00 [netns]
root 33 0.0 0.0 0 0 ? I< 09:22 0:00 [inet_frag_wq]
root 34 0.0 0.0 0 0 ? I 09:22 0:00 [kworker/2:1-events]
root 35 0.0 0.0 0 0 ? I 09:22 0:00 [kworker/1:1-mm_percpu_wq]
root 37 0.0 0.0 0 0 ? I 09:22 0:00 [kworker/0:1-events]
root 38 0.0 0.0 0 0 ? S 09:22 0:00 [kauditd]
root 39 0.0 0.0 0 0 ? I 09:22 0:00 [kworker/0:2-events]
root 40 0.0 0.0 0 0 ? S 09:22 0:00 [khungtaskd]
root 41 0.0 0.0 0 0 ? S 09:22 0:00 [oom_reaper]
root 42 0.0 0.0 0 0 ? I< 09:22 0:00 [writeback]
root 43 0.0 0.0 0 0 ? S 09:22 0:00 [kcompactd0]
root 63 0.0 0.0 0 0 ? I< 09:22 0:00 [kblockd]
root 64 0.0 0.0 0 0 ? I< 09:22 0:00 [blkcg_punt_bio]
root 65 0.0 0.0 0 0 ? S 09:22 0:00 [watchdogd]
root 66 0.1 0.0 0 0 ? I 09:22 0:00 [kworker/u8:1-events_unbound]
root 68 0.0 0.0 0 0 ? I< 09:22 0:00 [rpciod]
root 69 0.0 0.0 0 0 ? I< 09:22 0:00 [kworker/u9:0-brcmf_wq/mmc1:0001:1
root 70 0.0 0.0 0 0 ? I< 09:22 0:00 [xprtiod]
root 72 0.0 0.0 0 0 ? S 09:22 0:00 [kswapd0]
root 73 0.0 0.0 0 0 ? I< 09:22 0:00 [nfsiod]
root 74 0.0 0.0 0 0 ? I< 09:22 0:00 [kthrotld]
root 75 0.0 0.0 0 0 ? I< 09:22 0:00 [iscsi_eh]
root 76 0.0 0.0 0 0 ? I< 09:22 0:00 [iscsi_conn_clea]
root 77 0.0 0.0 0 0 ? I< 09:22 0:00 [nvme-wq]
root 78 0.0 0.0 0 0 ? I< 09:22 0:00 [nvme-reset-wq]
root 79 0.0 0.0 0 0 ? I< 09:22 0:00 [nvme-delete-wq]
root 80 0.0 0.0 0 0 ? I< 09:22 0:00 [dwc_otg]
root 81 0.0 0.0 0 0 ? I< 09:22 0:00 [DWC Notificatio]
root 82 0.0 0.0 0 0 ? I< 09:22 0:00 [uas]
root 83 0.0 0.0 0 0 ? I 09:22 0:00 [kworker/3:2-events]
root 84 0.1 0.0 0 0 ? I 09:22 0:00 [kworker/3:3-events]
root 85 0.0 0.0 0 0 ? S< 09:22 0:00 [vchiq-slot/0]
root 86 0.0 0.0 0 0 ? S< 09:22 0:00 [vchiq-recy/0]
root 87 0.0 0.0 0 0 ? S< 09:22 0:00 [vchiq-sync/0]
root 88 0.0 0.0 0 0 ? I 09:22 0:00 [kworker/1:2-events]
root 89 0.0 0.0 0 0 ? I< 09:22 0:00 [zswap-shrink]
root 91 0.0 0.0 0 0 ? I< 09:22 0:00 [mmc_complete]
root 92 0.1 0.0 0 0 ? I< 09:22 0:00 [kworker/0:1H-kblockd]
root 93 0.0 0.0 0 0 ? I< 09:22 0:00 [kworker/1:1H-mmc_complete]
root 94 0.1 0.0 0 0 ? I< 09:22 0:00 [kworker/2:1H-mmc_complete]
root 95 0.0 0.0 0 0 ? S 09:22 0:00 [jbd2/mmcblk0p2-]
root 96 0.0 0.0 0 0 ? I< 09:22 0:00 [ext4-rsv-conver]
root 98 0.0 0.0 0 0 ? I< 09:22 0:00 [kworker/0:2H-kblockd]
root 100 0.0 0.0 0 0 ? I< 09:22 0:00 [kworker/1:2H]
root 101 0.0 0.0 0 0 ? I< 09:22 0:00 [mld]
root 102 0.0 0.0 0 0 ? I< 09:22 0:00 [ipv6_addrconf]
root 109 0.0 0.0 0 0 ? I< 09:22 0:00 [kworker/3:2H-kblockd]
root 118 0.0 0.0 0 0 ? I< 09:22 0:00 [kworker/2:2H]
root 132 0.2 1.6 50956 15268 ? Ss 09:22 0:01 /lib/systemd/systemd-journald
root 151 0.0 0.0 0 0 ? I 09:22 0:00 [kworker/2:2-events]
root 166 0.5 0.6 22128 6440 ? Ss 09:22 0:02 /lib/systemd/systemd-udevd
root 194 0.0 0.0 0 0 ? S 09:22 0:00 [vchiq-keep/0]
root 196 0.0 0.0 0 0 ? S< 09:22 0:00 [SMIO]
root 227 0.0 0.0 0 0 ? I< 09:22 0:00 [mmal-vchiq]
root 230 0.0 0.0 0 0 ? I< 09:22 0:00 [mmal-vchiq]
root 231 0.0 0.0 0 0 ? I< 09:22 0:00 [mmal-vchiq]
root 232 0.0 0.0 0 0 ? I< 09:22 0:00 [mmal-vchiq]
root 233 0.0 0.0 0 0 ? I< 09:22 0:00 [mmal-vchiq]
root 235 0.0 0.0 0 0 ? I< 09:22 0:00 [mmal-vchiq]
root 236 0.0 0.0 0 0 ? I< 09:22 0:00 [mmal-vchiq]
root 276 0.0 0.0 0 0 ? I< 09:22 0:00 [cfg80211]
root 282 0.0 0.0 0 0 ? I< 09:22 0:00 [brcmf_wq/mmc1:0]
root 283 0.0 0.0 0 0 ? S 09:22 0:00 [brcmf_wdog/mmc1]
root 334 0.0 0.0 0 0 ? S 09:22 0:00 [cec-vc4]
root 336 0.0 0.0 0 0 ? S 09:22 0:00 [irq/82-vc4 hdmi]
root 337 0.0 0.0 0 0 ? S 09:22 0:00 [card0-crtc0]
root 338 0.0 0.0 0 0 ? S 09:22 0:00 [card0-crtc1]
root 339 0.0 0.0 0 0 ? S 09:22 0:00 [card0-crtc2]
root 340 0.0 0.0 0 0 ? S 09:22 0:00 [card0-crtc3]
avahi 409 0.1 0.3 7072 3284 ? Ss 09:22 0:00 avahi-daemon: running [raspberrypi
root 410 0.0 0.2 6696 2536 ? Ss 09:22 0:00 /usr/sbin/cron -f
message+ 411 0.2 0.4 8544 4252 ? Ss 09:22 0:01 /usr/bin/dbus-daemon --system --ad
root 420 0.0 0.8 235456 7940 ? Ssl 09:22 0:00 /usr/libexec/polkitd --no-debug
root 426 0.0 0.3 220888 3688 ? Ssl 09:22 0:00 /usr/sbin/rsyslogd -n -iNONE
root 433 0.1 0.6 14376 6416 ? Ss 09:22 0:00 /lib/systemd/systemd-logind
nobody 434 0.0 0.2 5488 2492 ? Ss 09:22 0:00 /usr/sbin/thd --triggers /etc/trig
root 435 0.0 1.2 393264 11788 ? Ssl 09:22 0:00 /usr/libexec/udisks2/udisksd
root 438 0.0 0.5 13568 4768 ? Ss 09:22 0:00 /sbin/wpa_supplicant -u -s -O /run
avahi 440 0.0 0.0 6892 240 ? S 09:22 0:00 avahi-daemon: chroot helper
root 503 0.0 0.1 3120 1856 ? Ss 09:22 0:00 /usr/sbin/dhcpcd -b -q
root 526 0.0 0.0 92296 96 ? SLsl 09:22 0:00 /usr/sbin/rngd -r /dev/hwrng
root 548 0.0 0.7 232740 6612 ? Ssl 09:22 0:00 /usr/sbin/lightdm
root 552 0.0 1.0 244260 9848 ? Ssl 09:22 0:00 /usr/sbin/ModemManager
root 560 0.6 9.4 1280928 88076 tty7 Ssl+ 09:22 0:03 /usr/lib/xorg/Xorg :0 -seat seat0
root 561 0.0 0.4 9160 3884 tty1 Ss 09:22 0:00 /bin/login -f
root 564 0.0 0.4 13976 3788 ? Ss 09:22 0:00 wpa_supplicant -B -c/etc/wpa_suppl
root 589 0.0 0.0 2132 132 ? S 09:22 0:00 /usr/bin/hciattach /dev/serial1 bc
root 590 0.0 0.0 0 0 ? I< 09:22 0:00 [kworker/u9:2-hci0]
root 614 0.0 0.9 23588 9308 ? Ss 09:22 0:00 /usr/libexec/bluetooth/bluetoothd
ryuzaki 622 0.1 0.9 16164 8440 ? Ss 09:22 0:00 /lib/systemd/systemd --user
ryuzaki 623 0.0 0.4 168600 4376 ? S 09:22 0:00 (sd-pam)
root 654 0.0 0.8 163672 7820 ? Sl 09:23 0:00 lightdm --session-child 14 17
ryuzaki 659 0.0 0.5 91808 5320 ? S<sl 09:23 0:00 /usr/bin/pipewire
ryuzaki 660 2.5 10.2 2513824 95872 ? SLsl 09:23 0:11 /usr/bin/node /home/ryuzaki/plexam
ryuzaki 661 0.2 2.5 610808 23432 ? S<sl 09:23 0:01 /usr/bin/pulseaudio --daemonize=no
ryuzaki 662 0.0 0.4 7980 4640 tty1 S+ 09:23 0:00 -bash
ryuzaki 663 0.0 1.4 250380 13108 ? Ssl 09:23 0:00 /usr/bin/lxsession -s LXDE-pi -e L
ryuzaki 675 0.0 0.4 7924 3760 ? Ss 09:23 0:00 /usr/bin/dbus-daemon --session --a
rtkit 676 0.0 0.2 153464 2636 ? SNsl 09:23 0:00 /usr/libexec/rtkit-daemon
systemd+ 746 0.0 0.6 88092 6148 ? Ssl 09:23 0:00 /lib/systemd/systemd-timesyncd
ryuzaki 751 0.0 0.6 85312 5824 ? S<l 09:23 0:00 /usr/bin/pipewire-media-session
colord 767 0.1 1.2 243424 11948 ? Ssl 09:23 0:00 /usr/libexec/colord
ryuzaki 808 0.0 0.0 5440 460 ? Ss 09:23 0:00 /usr/bin/ssh-agent x-session-manag
root 838 0.0 0.9 30040 8484 ? Ss 09:23 0:00 /usr/sbin/cupsd -l
root 839 0.0 1.2 174880 11292 ? Ssl 09:23 0:00 /usr/sbin/cups-browsed
ryuzaki 847 0.0 0.7 237540 7004 ? Ssl 09:23 0:00 /usr/libexec/gvfsd
lp 848 0.0 0.6 16668 5724 ? S 09:23 0:00 /usr/lib/cups/notifier/dbus dbus:/
root 850 0.0 0.0 0 0 ? S< 09:23 0:00 [krfcommd]
ryuzaki 856 0.0 0.5 380564 5184 ? Sl 09:23 0:00 /usr/libexec/gvfsd-fuse /run/user/
ryuzaki 865 0.1 1.9 69960 18024 ? S 09:23 0:00 openbox --config-file /home/ryuzak
ryuzaki 866 0.0 1.1 178564 11132 ? Sl 09:23 0:00 lxpolkit
ryuzaki 871 0.8 7.7 1973120 71984 ? Sl 09:23 0:03 lxpanel --profile LXDE-pi
ryuzaki 872 0.4 8.4 1563928 78388 ? Sl 09:23 0:02 pcmanfm --desktop --profile LXDE-p
ryuzaki 884 0.0 0.0 5440 460 ? Ss 09:23 0:00 /usr/bin/ssh-agent -s
ryuzaki 886 0.4 3.8 61236 35876 ? S 09:23 0:01 /usr/bin/python3 /usr/share/system
ryuzaki 894 0.0 0.1 5228 1332 ? S 09:23 0:00 xcompmgr -aR
ryuzaki 981 0.0 1.1 349776 11172 ? Ssl 09:23 0:00 /usr/libexec/gvfs-udisks2-volume-m
ryuzaki 986 0.0 0.5 310656 5580 ? Ssl 09:23 0:00 /usr/libexec/gvfs-afc-volume-monit
ryuzaki 995 0.0 0.6 235440 6232 ? Ssl 09:23 0:00 /usr/libexec/gvfs-gphoto2-volume-m
ryuzaki 997 0.0 0.5 157024 5560 ? Sl 09:23 0:00 /usr/lib/menu-cache/menu-cached /r
ryuzaki 1004 0.0 0.4 233448 4420 ? Ssl 09:23 0:00 /usr/libexec/gvfs-mtp-volume-monit
ryuzaki 1008 0.0 0.6 233580 5788 ? Ssl 09:23 0:00 /usr/libexec/gvfs-goa-volume-monit
ryuzaki 1013 0.0 0.7 311684 7220 ? Sl 09:23 0:00 /usr/libexec/gvfsd-trash --spawner
root 1104 3.1 3.7 365900 35040 ? Ssl 09:23 0:13 /usr/libexec/packagekitd
ryuzaki 1508 0.4 3.6 383168 34368 ? Rl 09:24 0:01 lxterminal
ryuzaki 1514 0.0 0.5 7984 4664 pts/0 Ss 09:24 0:00 bash
root 1523 0.0 0.0 0 0 ? I 09:28 0:00 [kworker/1:0-events]
root 1524 0.0 0.0 0 0 ? I 09:28 0:00 [kworker/2:0-events]
root 1525 0.0 0.0 0 0 ? I 09:29 0:00 [kworker/0:0-events]
root 1530 0.0 0.0 0 0 ? I 09:30 0:00 [kworker/3:0-events_power_efficien
root 1531 0.0 0.0 0 0 ? I 09:30 0:00 [kworker/0:3-events]
ryuzaki 1532 0.0 0.2 9460 2780 pts/0 R+ 09:30 0:00 ps aux
I ran grep
ryuzaki@raspberrypi:~ $ ps aux | grep HDMI
ryuzaki 2221 1.0 0.0 5912 636 pts/0 S+ 09:42 0:00 grep --color=auto HDMI
ryuzaki@raspberrypi:~ $ ps aux | grep hdmi
root 336 0.0 0.0 0 0 ? S 09:22 0:00 [irq/82-vc4 hdmi]
ryuzaki 2233 0.0 0.0 6044 696 pts/0 S+ 09:42 0:00 grep --color=auto hdmi
ryuzaki@raspberrypi:~ $ ps aux | grep vc4
root 334 0.0 0.0 0 0 ? S 09:22 0:00 [cec-vc4]
root 336 0.0 0.0 0 0 ? S 09:22 0:00 [irq/82-vc4 hdmi]
ryuzaki 2267 0.0 0.0 6044 692 pts/0 S+ 09:43 0:00 grep --color=auto vc4
To my inexperienced eye it doesn’t look like anything is out of order.
It could be a sample rate issue or maybe even a channels issues. HDMI obviously allows for more than stereo and can hit hi res. I wonder if there is any channel mixing or maybe channel mapping issues. I have bit rate set to strict. Ill be playing around with settings over the next few days and maybe I an isolate. I’m now curious.
system
Closed
August 7, 2022, 2:03pm
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.