|
Posted at 6/30/2016 21:10:32
6#
Last edited by Asuuga In 6/30/2016 23:37 Editor
Hi mac-l1,
I also have an original firefly. This is what i get in the kernel logs about hdmi-audio :
- ubuntu@firefly:~$ dmesg | grep hdmi
- [ 2.930992] rockchip-hdmi-audio hdmi_audio.6: ASoC: CODEC dw-hdmi-audio not registered
- [ 2.931010] rockchip-hdmi-audio hdmi_audio.6: register card failed (-517)
- [ 2.931017] platform hdmi_audio.6: Driver rockchip-hdmi-audio requests probe deferral
- [ 3.974254] rockchip-hdmi-audio hdmi_audio.6: ASoC: CODEC dw-hdmi-audio not registered
- [ 3.982201] rockchip-hdmi-audio hdmi_audio.6: register card failed (-517)
- [ 3.989004] platform hdmi_audio.6: Driver rockchip-hdmi-audio requests probe deferral
- [ 4.019681] rockchip-hdmi-audio hdmi_audio.6: ASoC: CODEC dw-hdmi-audio not registered
- [ 4.027607] rockchip-hdmi-audio hdmi_audio.6: register card failed (-517)
- [ 4.034414] platform hdmi_audio.6: Driver rockchip-hdmi-audio requests probe deferral
- [ 4.060459] dwhdmi-rockchip ff980000.hdmi: Detected HDMI controller 0x20:0xa:0xa0:0xc1
- [ 4.068383] dwhdmi-rockchip ff980000.hdmi: Detected HDMI config_id 0xbf:0x22:0xc2:0x0
- [ 4.094664] dwhdmi-rockchip ff980000.hdmi: monitor does not support audio
- [ 4.101573] dw-hdmi-audio dw-hdmi-audio: hdmi audio init success.
- [ 4.107676] rockchip-drm display-subsystem.4: bound ff980000.hdmi (ops dw_hdmi_rockchip_ops)
- [ 4.313451] dw-hdmi-audio dw-hdmi-audio: jack report [4]
- [ 4.320387] rockchip-hdmi-audio hdmi_audio.6: dw-hdmi-hifi <-> ff890000.i2s mapping ok
- [ 4.328780] input: RockchipHDMI HDMI Jack as /devices/hdmi_audio.6/sound/card1/input4
- [ 4.345253] rockchip-hdmi-audio hdmi_audio.6: hdmi audio init success.
- [ 32.060181] dw-hdmi-audio dw-hdmi-audio: startup.
- [ 32.078179] dw-hdmi-audio dw-hdmi-audio: shutdown.
- [ 32.088048] dw-hdmi-audio dw-hdmi-audio: startup.
- [ 32.097945] dw-hdmi-audio dw-hdmi-audio: [codec_dai]: trigger enable.
- [ 37.626900] dw-hdmi-audio dw-hdmi-audio: [codec_dai]: trigger disable.
- [ 37.627695] dw-hdmi-audio dw-hdmi-audio: shutdown.
Copy the code
So the driver probes correctly the hardware for me.
Also, you can control audio with pavucontrol.
In the "Configuration" tab, I have 2 items : "RockchipHDMI" (obviously, for hdmi output) and "RK_ES8323" (for jack output). I selected the profile from the first one to "Digital Stereo (HDMI) Output" whereas I set the second one to "Off". If both are activated at the same time, sound is only through the jack output and jitters a lot. So I have to activate only one at a time.
When I activate the profile on RockchipHDMI : the following kernel logs appear :
- [ 208.952332] dw-hdmi-audio dw-hdmi-audio: startup.
- [ 208.952732] dw-hdmi-audio dw-hdmi-audio: [codec_dai]: trigger enable.
Copy the code
When I deactivate it :
- [ 462.242270] dw-hdmi-audio dw-hdmi-audio: [codec_dai]: trigger disable.
- [ 462.242973] dw-hdmi-audio dw-hdmi-audio: shutdown.
Copy the code
About the sdcard problem :
There is no firefly-rk3288.dts in arch/arm/boot (in the kernel sources). So I suppose the kernel has been built with the device-tree from firefly-reload (firefly-rk3288-reload.dts), which is present. Am I correct uJerry ?
And if you look in this file, you'll see that the sdmmc node is disabled. So the hardware is never being probed and is thus not available. I wonder why they deactivated it ? Maybe it was not working correctly.
Finally, I noticed another problem : the rtc is not working. But again, there is no node that describes it in the device tree.
- ubuntu@firefly:~$ dmesg | grep rtc
- [ 4.483768] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Copy the code
About the vpu support, do you plan to use the kernel driver located in arch/arm/mach-rockchip/vcodec_service.c ? Or rather use a libhybris solution ?
|
|