maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets (https://talk.maemo.org/showthread.php?t=96708)

Flos 2017-03-05 14:45

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1524738)
Could you please confirm your revision? Is it V3, V5 or something else? Check the digit after letter "V" in serial number at the back of the tablet.

Ahh.. yes, you're right, it shuld be a V5. The full string is:

P820DBFBV5A01619

So, any chance I can bring the sound back? Thanks!

TheKit 2017-03-05 16:39

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by Flos (Post 1524812)
Ahh.. yes, you're right, it shuld be a V5. The full string is:

P820DBFBV5A01619

So, any chance I can bring the sound back? Thanks!

No easy way, since it's a known issue due to V5 having different sound codec. I didn't see those errors before though. Could you please provide full dmesg log after boot (upload as file or to pastebin) and DSDT tables dump:
Code:

cat /sys/firmware/acpi/tables/DSDT > dsdt.dat

Flos 2017-03-06 17:10

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
1 Attachment(s)
Hi TheKit, please kindly find the file in the attachment. Thanks!

TheKit 2017-03-14 15:33

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by Flos (Post 1524931)
Hi TheKit, please kindly find the file in the attachment. Thanks!

Thanks for the logs. I did some investigation in spare time. DSDT is almost the same with V3. I downloaded Android firmwares for both revisions and compared their kernels with BinDiff to see if there are changes in sound codec or SST drivers. Surprisingly, there are no obvious differences in code, which means it might be data that's different.

I compared rt5640_init_reg array in kernel binaries and found exactly one change:
Code:

        {RT5640_HPO_MIXER, 0xc000},        /*HPVOL -> HPOLMIX */
        /*{RT5640_HPO_MIXER, 0xa000},//DAC1 -> HPOLMIX*/

V3 sets RT5640_HPO_MIXER to 0xc000 and V5 sets it to 0xa000 instead, which was present, but commented out in available kernel source tree.

I presume this won't be the only change, but I want V5 owners to test this kernel and post dmesg before I go further.
Code:

devel-su
mkdir /boot/esp
mount /dev/mmcblk0p1 /boot/esp
mv /boot/esp/bzImage /boot/esp/bzImage-old
cp bzImage /boot/esp/bzImage
reboot


tmi 2017-03-14 17:35

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1525400)
I want V5 owners to test this kernel and post dmesg before I go further.

Here's pastebin from mine.
I just want to say, I really appreciate what you're doing here!

TheKit 2017-03-14 17:55

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by tmi (Post 1525406)
Here's pastebin from mine.
I just want to say, I really appreciate what you're doing here!

Thank you! Now that's different from other devices, rt5642 codec isn't detected on I2C. Could you please also upload your DSDT?
Code:

cat /sys/firmware/acpi/tables/DSDT > dsdt.dat

tmi 2017-03-14 18:09

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
1 Attachment(s)
Quote:

Originally Posted by TheKit (Post 1525407)
Could you please also upload your DSDT?

Sure. /10char

tmichel 2017-03-16 07:46

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
1 Attachment(s)
Hi,

find attached anoterh dmesg and dsdt from an Onda V5.

TheKit 2017-03-16 14:24

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
@tmi, @tmichel your device has rt5651 codec, as opposed to rt5642 on V3 (and some other V5?). Newer kernel has driver for rt5651 codec, but likely it won't be easy to backport to 3.10. Wish there was a way to get actual kernel source used for the tablet.

smatkovi 2017-03-16 16:01

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
1 Attachment(s)
here's mine, as usual i just added the extension because of the filesize edit: experimental kernel with audio


All times are GMT. The time now is 19:59.

vBulletin® Version 3.8.8