View Single Post
Posts: 194 | Thanked: 1,167 times | Joined on May 2016
#124
Originally Posted by Flos View Post
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
 

The Following 3 Users Say Thank You to TheKit For This Useful Post: