Posts by ashi
-
-
ashi At the moment the demux driver is an ugly port of even uglier Amlogic vendor code with support limited to the ~3 devices that myself and rozpruwacz have (and I have WP2 with DVB-S/DVB-T modules). Some work on a clean rewrite of the driver has started, but needs to be revived and moved forwards. The goal is to make all the drivers modular so technical implementations of demod/tuner/demux can described entirely within device-tree without relying on a single/monolithic driver with baked-in known combos of chips, which is how the vendor kernel works-ish. It's probably not a quick task happening in the next few weeks.
For the sake of asking, what chips are in the Mecool box and can you point me at a device-tree file?
Thanks again for pointing that out. I looked at the code and I understand how the tuner/demod combination selection works in meson-demux/aml_dvb.c and after importing r912 into the kernel tree. my plan was to do somthing like
Code
Display More+ else if (!strcmp(compat, "mecool,avl6862-r912")) { + dev_info(dev, "attaching DVB-T/T2/C frontend (AVL6862 + R912)\n"); + fe = avl6862_attach(&avl6862cfg_r912, i2c); + + if (fe) { + if (!r912_attach(fe, &r912cfg, i2c)) { + dev_err(dev, "R912 tuner attach failed\n"); + dvb_frontend_detach(fe); + fe = NULL; + } + }Well... it turned out that I was unable to find out how I should initialize the structures, how to find out which i2c address I need, GPIOS, clocks, etc etc.
dts and code from coreelec/crazycat drivers/amlogic vendor kernel, patches etc did not help me much. It is a crazy maze of layers and in the end I gave up finding the parameters that are needed to wire that up. -
meson-gxl-s905d-mecool-kii-pro-dvb.dts
It is a DVB-T2/S2/C device
Demod: avl6862
Tuner: Rafael R912
I found r912.c/r912.h in media_tree_aml , thats probably the biggest missing part for mainline. -
Thank you for reviving my Wetek Play 2 with full DVB-T2 support, it works even better than the vendor kernel used by CoreELEC used to work. Very cool
And nice to be back on LibreELEC finally.I could not really read from the forum whether DVB support is limited to a specific set of devices like the Wetek Play 2 or if more DVB boxes work (for example in my case the MECOOL KII Pro with triple tuner, which also got ditched from coreelec).
Would that work on that box also?
-
-
While this happens the kernel log is spammed with messages like these:
[ 1527.156627@1] audio data unaligned: pos=235, n=1024, align=8
[ 1527.156649@1] audio data unaligned: pos=363, n=1024, align=8
[ 1527.156819@0] audio data unaligned: pos=491, n=680, align=8
[ 1527.164257@1] audio data unaligned: pos=619, n=1024, align=8
[ 1527.164424@1] audio data unaligned: pos=747, n=1024, align=8
[ 1527.164449@1] audio data unaligned: pos=875, n=552, align=8
[ 1527.174246@1] audio data unaligned: pos=1003, n=1024, align=8
[ 1527.174282@1] audio data unaligned: pos=1131, n=1024, align=8
[ 1527.174318@1] audio data unaligned: pos=1259, n=1024, align=8
[ 1527.174334@1] audio data unaligned: pos=1387, n=232, align=8
[ 1527.184465@1] audio data unaligned: pos=1515, n=1024, align=8
[ 1527.184502@1] audio data unaligned: pos=1643, n=1024, align=8
[ 1527.184543@1] audio data unaligned: pos=1771, n=1024, align=8
[ 1527.184561@1] audio data unaligned: pos=1899, n=40, align=8EDIT:
The debug output comes from:
linux-amlogic/aml_i2s.c at amlogic-3.10.y · LibreELEC/linux-amlogic · GitHub
in
aml_i2s_copy_playback()
-
When playing Videos or Live TV, audio starts having a "hissing noise" after a few seconds, changing the audio track on Live TV makes it sound normal for a few seconds again but then falls back to the "hissing noise".
Playing around with all possible audio output options did not help, passthrough seems to be unavailable.
LibreELEC 8.2.x did not have that problem.