I'm not seeing that (either someone else has edited my post or you are not referring to the first post in this thread).
But you are correct the "-pi4" is redundant since device tree aliases were added long ago.
I'm not seeing that (either someone else has edited my post or you are not referring to the first post in this thread).
I understand that is true so long as you're using a recent firmware.
Lower latency is quite likely as the route to output audio is much shorter (firmware based drivers require an additional queue of audio data to the GPU).busywait wrote: ↑Tue Dec 22, 2020 11:33 amFull KMS vs Fake KMS, and the ARM-side HDMI ALSA driver
Can anyone suggest if and when I would see or measure any differences between the full KMS and HDMI audio drivers over the previous firmware-based "Fake KMS/fkms" setup and Broadcom audio?
- Lower CPU?
- Lower latency possible?
- Faster anything?
- Different APIs supported?
Thank you - looks like I saw that old text in the "moving to kernel 5.4 thread", which I was looking at to confirm my audio setup.
Thanks Dom!dom wrote: ↑Tue Dec 22, 2020 11:41 amFull KMS vs Fake KMS, and the ARM-side HDMI ALSA driver
Lower latency is quite likely as the route to output audio is much shorter (firmware based drivers require an additional queue of audio data to the GPU).
Arm CPU is probably higher (as spdif formatting occurs on arm rather than gpu), but that should be negligible on pi2/3/4.
They both use the alsa api, although the arm driver driver can support HBR passthrough (TrueHD/DTS-HD) on pi4, but the firmware driver does not.
Similar to audio. kms drives the display hardware directly from the arm and fkms sends remote messages to gpu.
I didn't notice any problems with hardware decode before :/ However, I've just now used the Screen Layout Editor to set the desktop refresh rate to 60Hz, and then used Chromium to play some YouTube 1080p 60Hz content with the stats on. Some frame dropped each second, but looked and sounded pretty smooth with vc4-kms-v3d+ARM-HDMI audio.
I updated to the latest and Twitch is still causing the Pi to completely freeze. (db075f137fe12748c85a36fb1c52aacab61bce8a)
Not if you're joining in with the beta testing of the 5.10.2 kernel. You can't install that for testing without using sudo rpi-update (and having a good backup in case your system won't boot).
Code: Select all
hdmi_drive=2
Code: Select all
[ 4.996529] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 4.996606] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 5.215201] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[ 5.260732] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 5.330538] debugfs: Directory 'fef00700.hdmi' with parent 'vc4-hdmi-0' already present!
[ 5.333779] vc4_hdmi fef00700.hdmi: ASoC: no DMI vendor name!
[ 5.334690] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[ 5.338724] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 5.338967] debugfs: Directory 'fef05700.hdmi' with parent 'vc4-hdmi-1' already present!
[ 5.341033] vc4_hdmi fef05700.hdmi: ASoC: no DMI vendor name!
[ 5.344356] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[ 5.344674] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 5.344996] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[ 5.345287] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 5.345659] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 5.347727] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 5.348162] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 5.350990] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
Code: Select all
[ 9.504470] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 9.989908] broken atomic modeset userspace detected, disabling atomic
[ 11.577424] fuse: init (API version 7.32)
[ 12.811322] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 13.178260] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19
[ 13.179079] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19
[ 13.179937] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19
[ 13.200052] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19
[ 13.200556] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19
[ 13.273452] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19
[ 13.283219] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19
[ 13.283927] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19
[ 13.293563] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19
[ 13.293979] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19
[ 14.585700] Bluetooth: Core ver 2.22
[ 14.585803] NET: Registered protocol family 31
[ 14.585809] Bluetooth: HCI device and connection manager initialized
[ 14.585825] Bluetooth: HCI socket layer initialized
Code: Select all
Linux raspberrypi64 5.10.2-v8+ #1385 SMP PREEMPT Wed Dec 23 12:00:51 GMT 2020 aarch64 GNU/Linux
I think that there is still an unresolved problem with PulseAudio+the new ARM-side audio. (PulseAudio is part of the latest updates that you have installed).itsmedoofer wrote: ↑Sat Dec 26, 2020 11:07 amHi,
I've been trying to get audio working over the new KMS driver but cant seem to crack it, I think it's because of my set up rather than the software though..
I have a DVI monitor that I connect to the Pi with the standard adaptor, to get the sound I have a HDMI audio extractor that I plug the desktop speakers in to.
For this to work with the FKMS driverI have to have the following in my config.txt, but it works wellCode: Select all
hdmi_drive=2
I think I have followed things correctly , dtoverlay=vc4-kms-v3d has been set, dtparam=audio=on has been removed and the edits to /usr/share/alsa/cards/vc4-hdmi.conf have been made.
When I look at the available sounds devices I only see a "Dummy" device.
Any ideas on how to fix this ?Code: Select all
[ 9.504470] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled [ 9.989908] broken atomic modeset userspace detected, disabling atomic [ 11.577424] fuse: init (API version 7.32) [ 12.811322] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled [ 13.178260] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19 [ 13.179079] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19 [ 13.179937] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19 [ 13.200052] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19 [ 13.200556] vc4_hdmi fef00700.hdmi: ASoC: error at snd_soc_dai_startup on fef00700.hdmi: -19 [ 13.273452] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19 [ 13.283219] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19 [ 13.283927] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19 [ 13.293563] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19 [ 13.293979] vc4_hdmi fef05700.hdmi: ASoC: error at snd_soc_dai_startup on fef05700.hdmi: -19 [ 14.585700] Bluetooth: Core ver 2.22 [ 14.585803] NET: Registered protocol family 31 [ 14.585809] Bluetooth: HCI device and connection manager initialized [ 14.585825] Bluetooth: HCI socket layer initialized
I have tried this on a clean PiOS64 updated and then updated the kernel
viewtopic.php?p=1781377#p1781377itsmedoofer wrote: ↑Sat Dec 26, 2020 4:42 pmHi,
Thanks for the reply, appreciated.
So I have followed the thread, made sure things were working before switching to the KMS driver, made the switch and followed the possible fixes, still not go...
Having read the thread again I'm less certain it's my setup causing the problem, especially after reading your posts, will park the idea of using it for the moment and keep an eye open here...
Can you post the contents of your config.txt and cmdline.txt in your boot folder?itsmedoofer wrote: ↑Sat Dec 26, 2020 7:45 pmHi,
Thanks for the reply.
Yes followed that as well no different.
Regards.
To get audio with KMS drivers it's required that audio capabilities are signalled in the EDID (CEA audio and speaker allocation blocks). My guess is the HDMI audio extractor passes the edid of the DVI monitor on without altering it (AVRs usually modify the EDID and add the supported audio modes) and therefore you don't get audio from the driver.itsmedoofer wrote: ↑Sat Dec 26, 2020 11:07 amI have a DVI monitor that I connect to the Pi with the standard adaptor, to get the sound I have a HDMI audio extractor that I plug the desktop speakers in to.
...
My thinking is that the monitor is not being detected as a sound capable device and so nothing is being registered ?
Probably hdmi_drive has no effect with the KMS driver, due it to doing its own mode setting.itsmedoofer wrote: ↑Sat Dec 26, 2020 11:07 amHi,
I've been trying to get audio working over the new KMS driver but cant seem to crack it, I think it's because of my set up rather than the software though..
I have a DVI monitor that I connect to the Pi with the standard adaptor, to get the sound I have a HDMI audio extractor that I plug the desktop speakers in to.
For this to work with the FKMS driverI have to have the following in my config.txt, but it works wellCode: Select all
hdmi_drive=2
Code: Select all
pi@arya:~ $ uname -a
Linux arya 5.4.79-v7l+ #1373 SMP Mon Nov 23 13:27:40 GMT 2020 armv7l GNU/Linux
pi@arya:~ $ sudo rpi-eeprom-update
BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Fri 11 Dec 2020 11:15:17 AM UTC (1607685317)
LATEST: Fri 11 Dec 2020 11:15:17 AM UTC (1607685317)
FW DIR: /lib/firmware/raspberrypi/bootloader/beta
VL805: up-to-date
CURRENT: 000138a1
LATEST: 000138a1
The 5.10 kernel does boot on my Raspberry Pi 4 4GB, but IPsec doesn't work anymore. I tracked it down to dozens of processes waiting/hanging, all the same:# rpi-update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** We're running for the first time
*** Backing up files (this will take a few minutes)
*** Backing up firmware
*** Backing up modules 5.4.79-v7l+
#############################################################
WARNING: This update bumps to rpi-5.10.y linux tree
See: viewtopic.php?f=29&t=288234
'rpi-update' should only be used if there is a specific
reason to do so - for example, a request by a Raspberry Pi
engineer or if you want to help the testing effort
and are comfortable with restoring if there are regressions.
DO NOT use 'rpi-update' as part of a regular update process.
##############################################################
Would you like to proceed? (y/N)
*** Downloading specific firmware revision (this will take a few minutes)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 168 100 168 0 0 3169 0 --:--:-- --:--:-- --:--:-- 3169
100 119M 100 119M 0 0 293k 0 0:06:57 0:06:57 --:--:-- 472k
*** Updating firmware
*** Updating kernel modules
*** depmod 5.10.3-v7l+
*** depmod 5.10.3-v7+
*** depmod 5.10.3+
*** depmod 5.10.3-v8+
*** Updating VideoCore libraries
*** Using HardFP libraries
*** Updating SDK
*** Running ldconfig
*** Storing current firmware revision
*** Deleting downloaded files
*** Syncing changes to disk
*** If no errors appeared, your firmware was successfully updated to da59cb1161dc7c75727ec5c7636f632c52170961
*** A reboot is needed to activate the new firmware
It's hard to imagine a wifi issue that affect SomaFM and not other web sites. More information would be useful. e.g.noee wrote: ↑Sun Dec 27, 2020 11:01 pmVery latest rpi-update here (12/27) has broken something with either wifi or network in general. I updated and immediately JRiver MediaCenter and Chromium could not stream music from SomaFM. Didn't try video or another music sources. I say wifi, because this Pi4 4GB (32b) is only using wifi.
Thanks for the reply, that was my thinking that it was redundant with the KMS driver.andrum99 wrote: ↑Sun Dec 27, 2020 4:42 pm
Probably hdmi_drive has no effect with the KMS driver, due it to doing its own mode setting.
Some HDMI audio extractors have a switch on the side to force a specific audio mode. If yours has one, that's probably the easiest way to get sound working again. For example, the one I use has 3 settings, PASS (passthrough, i.e. just pass what the display says straight through to the host), 2CH (force 2 channel stereo), 5.1CH (force 5.1 channel surround sound).