Gah0/android_kernel_xiaomi_libra

bug: wcd9330 dosen't work on miui

Gah0 opened this issue · 2 comments

Gah0 commented

branch of miui-n

miui-n base on cafest

all device was booted 29 days ago,but sound couldn't work...

logcat

11-22 04:23:56.701 W/WiredAccessoryManager( 1177): This kernel does not have usb audio support
11-22 04:23:56.701 W/WiredAccessoryManager( 1177): This kernel does not have HDMI audio support
11-22 04:33:38.644 D/AudioDaemon(  596): Opening sound card state : /proc/asound/card---/state
11-22 04:33:38.645 E/AudioDaemon(  596): Open /proc/asound/card---/state failed : No such file or directory
11-22 04:33:38.645 V/AudioDaemon(  596): bool android::AudioDaemon::getStateFDs(std::vector<std::pair<int, int> > &): 0 sound cards detected
11-22 04:33:38.645 E/AudioDaemon(  596): Sleeping for 100 ms

dmesg

[    7.818669] msm8994-asoc-snd fe034000.sound: ASoC: CODEC tomtom_codec not registered
[    7.818722] platform fe034000.sound: Driver msm8994-asoc-snd requests probe deferral

kmsg

[    5.299813] msm8994-asoc-snd fe034000.sound: ASoC: CODEC tomtom_codec not registered
[    5.323892]   No soundcards found.

defconfig

CONFIG_SND_SOC_MSM8992=y
CONFIG_SND_SOC_CPE=y
CONFIG_SND_SOC_MSM_HOSTLESS_PCM=y
CONFIG_SND_SOC_WCD9330=y
CONFIG_SND_SOC_WCD9XXX=y
CONFIG_SND_SOC_WCD_CPE=y
CONFIG_SND_SOC_MSM_STUB=y
CONFIG_SND_SOC_MSM_HDMI_CODEC_RX=y

NOT Related commit

I'm trying to bring up LA.BR.1.3.7.c25 added to xperia's so called unified kernel (z1 8974 to z5 8994) LA.BR.1.3.3, so far i've got the same issue, i also found that:
505510e 'clocksource: arch_timer: make virtual counter access configurable'
caused
<6>[ 10.479964] init[1]: undefined instruction: pc=0000007fa4d704c8' at least trying aosp 7.1
that f2fs patch doesn't apply to the revision currently though ;(

Gah0 commented

I'm trying to bring up LA.BR.1.3.7.c25 added to xperia's so called unified kernel (z1 8974 to z5 8994) LA.BR.1.3.3, so far i've got the same issue, i also found that: 505510e 'clocksource: arch_timer: make virtual counter access configurable' caused <6>[ 10.479964] init[1]: undefined instruction: pc=0000007fa4d704c8' at least trying aosp 7.1 that f2fs patch doesn't apply to the revision currently though ;(

According to your describe,kernel message early print

"undefined instruction: pc=%p\n"

may come from kernel arch timer startup phase.

As for f2fs, you‘d better watching the f2fs upstream history and modify your kernel side.
This repository is not a general backport. It has changed pick a lot from kernel upstream with my changes...