Closed nE0sIghT closed 4 years ago
While audio is broken. Fingerprint is working fine on android 10. [Haven't rebased to android 10 caf tag]
dmesg with debug messages from techpack and audio/soc: [1]
grep -i -E 'adsp|sound|audio|apr_' dmesg
: [2]
At least I don't think this is iommu issue for now:
[ 7.568821] msm-audio-ion soc:qcom,msm-audio-ion: msm_audio_ion_probe: SMMU version is (2)
[ 7.568828] msm-audio-ion soc:qcom,msm-audio-ion: msm_audio_ion_probe: adsp is ready
[ 7.568830] msm-audio-ion soc:qcom,msm-audio-ion: msm_audio_ion_probe: SMMU is Enabled
Looks more like dts issue. Main error code is -517 (EPROBE_DEFER).
[1] https://gist.github.com/nE0sIghT/083a458fc7bcc48148ca7f0ebe40e6b9 [2] https://gist.github.com/nE0sIghT/69a01a23a6c1c01bcd9ccdc98b2fa280
adsp seems like firmware issue, techpack use latest adsp firmware if we're following tissot changes.
We can force enable older firmware version !! For reference : https://github.com/nichcream/audio-kernel/commit/a77183fef3280c984d5e60561c6f480211b1aa61
We can force enable older firmware version !! For reference : nichcream/audio-kernel@a77183f
Good, any other commit needed?
Anyone knows where is original repository of techpack audio?
Anyone knows where is original repository of techpack audio?
this one sir
https://source.codeaurora.org/quic/la/platform/vendor/opensource/audio-kernel/
This one for msm8953 for LA.UM.8.6.2.r1-06900-89xx.0 tag
Not there
This tag is LA.UM.8.6.2.r1-06900-89xx.0 merged In audio-drivers.lnx.2.0.r13-rel branch
You can confirm it here:
Kernel audio drivers can be categorised into below folders. asoc - ALSA based drivers,
asoc/codecs - codec drivers,
ipc - APR IPC communication drivers,
dsp - DSP low level drivers/Audio ION/ADSP Loader,
dsp/codecs - Native encoders and decoders,
soc - SoC based drivers(pinctrl/regmap/soundwire)
Kernel audio drivers can be categorised into below folders. asoc - ALSA based drivers,
asoc/codecs - codec drivers,
ipc - APR IPC communication drivers,
dsp - DSP low level drivers/Audio ION/ADSP Loader,
dsp/codecs - Native encoders and decoders,
soc - SoC based drivers(pinctrl/regmap/soundwire)
So it could be probably error on dsp for our issue, isn't?
@nE0sIghT Audio already worked sir, after clean pick mido changes from sound/soc to asoc then revert adsp to use latest version
So far it's worked, but video issue still persist. I already tried to pick camera stack from 3.18 then compiled, but camera still can't connect
@Nicklas373
I see that changes guards CONFIG_MACH_XIAOMI_C6
.
Does it should be changed to CONFIG_MACH_XIAOMI_MIDO
?
Great work dude @Nicklas373
But you should change it to
CONFIG_MACH_XIAOMI_MIDO
Because that's what we are using to refer to mido treewide
@Nicklas373
I see that changes guards
CONFIG_MACH_XIAOMI_C6
. Does it should be changed toCONFIG_MACH_XIAOMI_MIDO
?
yes that's mido, sorry, i was using @krascgq changes for platform changes, that's actually same
Thanks for solution. I will check original commit by TheScarastic and @AryanKedare: https://github.com/nE0sIghT/android_kernel_xiaomi_msm8953/commit/9a06935c14502974dc4392b3aa9dbaf97d214475, compare it with @krasCGQ work and cherry-pick changes.
@Nicklas373
I see that changes guards
CONFIG_MACH_XIAOMI_C6
. Does it should be changed toCONFIG_MACH_XIAOMI_MIDO
?
And i need to revert changes for this function
if (jack->jack->type & WCD_MBHC_JACK_MASK) {
if (!status)
switch_set_state(&accdet_data, 0);
else
switch_set_state(&accdet_data, status);
}
due <linux/switch.h> doesn't exist on 4.9 header, so i partially revert that changes to bypass compilation issue for now
Finally I could hear mido speaking
@Nicklas373
1st commit [1] already merged as 2f046a3a excluding switch stuff which is superseeded by extcon. Flex1911 commented that switch stuff is not used. I will check it.
2nd commit should be partial revert of 49714a41
3rd commit should be partial revert of 8cb95fea
https://github.com/nE0sIghT/android_kernel_xiaomi_msm8953/commit/49714a418981d7a0867f64555907d0c0ab74c3ed https://github.com/nE0sIghT/android_kernel_xiaomi_msm8953/commit/8cb95feaec6db2e3714271cb65215dc87b28fedf These reverts were performed due to the fact the Tissot got a new firmware update! But we are not so lucky!!
These reverts were performed due to the fact the Tissot got a new firmware update!
Yep. I will revert reverts making them mido specific.
Something is missing here as sound still not works for me. WIP branch is here: https://github.com/nE0sIghT/android_kernel_xiaomi_msm8953/tree/lineage-16.0-mido-4.9-audio
I beleave the problem is in CONFIG_SND_SOC_MAX98927 that was added for tissot.
Ok, this was CONFIG_SND_SOC_MAX98927
issue.
Almost everything works except:
3rd one issue confirmed
Closing fixed in 670b6074e716bacc17018a552f62892a6e2058ac, ed6a1d2ed555b5ac7e8db8ee515c8e0b696bd590, 249749a08f82b29de4d387b1ca66aff26787e8a0.
Choppy crack is still issue: https://github.com/nE0sIghT/android_kernel_xiaomi_msm8953/issues/11
@nE0sIghT Tissot use that codec, but mido doesn't use it
https://gist.github.com/nE0sIghT/564a113ede63a4a9981a3e1811733543