We use build android-x86-4.4-r3.img - this is the first stable build for our device. Thanks to developers.
We lack drivers for sound, screen rotation, gyroscope, bt, gps.
Wow wow wow !!! Super !!! Thanks.What is required of us? What are the timelines? How can we get this to trial?
see kernel source: /sound/soc/intel
As I suspected, just enabling WM5102 support isn't enough.You need a Intel SST machine driver for WM5102.Currently Intel SST Linux driver supports Realtek RT5640, RT5645, RT5672 chips and Maxim MAX98090.see kernel source: /sound/soc/intel
Hi Povilas,As I suspected, just enabling WM5102 support isn't enough.You need a Intel SST machine driver for WM5102.Currently Intel SST Linux driver supports Realtek RT5640, RT5645, RT5672 chips and Maxim MAX98090.see kernel source: /sound/soc/intelThanks for the info. Would you mind answering some questions?1) Arch Linux Wiki says their distro has sound working "out of box" on Lenovo Yoga 2 11''Could 11'' model be using a different audio device than 10.1''?
2) There's a codec for wm5102 under sound/soc/codecs/. As I could check, this is not compiled unless you select "CONFIG_COMPILE_TEST" and "CONFIG_SND_SOC_ALL_CODECS" (Using menuconfig). This enables CONFIG_SND_SOC_WM5102 as module (creates a module named snd-soc-wm5102.ko)Could this codec be used for supporting this card? Seems to me Wolfson has included it on kernel mainstream to support this soc (see http://opensource.wolfsonmicro.com/node/6).
Regards,Pstglia
2) There's a codec for wm5102 under sound/soc/codecs/. As I could check, this is not compiled unless you select "CONFIG_COMPILE_TEST" and "CONFIG_SND_SOC_ALL_CODECS" (Using menuconfig). This enables CONFIG_SND_SOC_WM5102 as module (creates a module named snd-soc-wm5102.ko)Could this codec be used for supporting this card? Seems to me Wolfson has included it on kernel mainstream to support this soc (see http://opensource.wolfsonmicro.com/node/6).Yes, the codec could and must be used, but you still need a machine driver.There's a machine driver for WM5102 in the kernel sources for Asus Zenfone 5 it in the kernel sources, but it's for kernel 3.10 and it's for Cloverview platform.
Hi Rbg,
> was checking the settings for config_mfd_xxxxx yesterday in kernel 4.2-r? and
> noticed they were different than the ones in our 4.0.8......so FWIW here are the settings I observed in 4.2-r? (think it was r3 would need
> to go back) but you may want to try these..
>
> CONFIG_MFD_ARIZONA=y
> CONFIG_MFD_ARIZONA_I2C=y
> CONFIG_MFD_ARIZONA_SPI=y
> CONFIG_MFD_WM5102=y
> CONFIG_MFD_WM5110=y
> CONFIG_MFD_WM8997=y
> CONFIG_MFD_WM8400=y
> CONFIG_MFD_WM831X=y
> CONFIG_MFD_WM831X_I2C=y
> CONFIG_MFD_WM831X_SPI=y
> CONFIG_MFD_WM8350=y
> CONFIG_MFD_WM8350_I2C=y
> CONFIG_MFD_WM8994=y
I have some of them enabled on my config file (some as a module):
$ grep ^CONFIG_MFD_[AW] $OUT/obj/kernel/.config
CONFIG_MFD_ARIZONA=y
CONFIG_MFD_ARIZONA_I2C=m
CONFIG_MFD_ARIZONA_SPI=m
CONFIG_MFD_WM5102=y
I also have these 2 (the second from the sst driver I ported):
CONFIG_SND_SOC_WM5102=m
CONFIG_SND_SOC_INTEL_BYT_RT5102_MACH=m
As far as I know, the only relevant ones for this hardware are Arizona and 5102 modules/drivers.
But some of these could be pre-requisites, not sure. I just wanted to check logcat and dmesg first
Anton,
When loading it, we had messages the sst driver was registered. I'd like to know what logcat/dmesg shows. Can you send these files (the entire content, not only screenshots)
1) Repeat the steps I pointed on last email (DEBUG mode, modprobe modules, etc)
2) After booting Android, switch to console (ALT+F1) and copy dmesg and logcat and other content:
#logcat
cp /data/log.txt /sdcard/Download/
#dmesg
dmesg > /sdcard/Download/dmesg.txt
# card list
cat /proc/asound/cards > /sdcard/Download/card_list.txt
# alsa config files
ls -l /system/etc/alsa/*state > /sdcard/Download/alsa_cfg_files.txt
3) Switch back to graphical (ALT+F7) and copy these files into a flashdriver or attach them into an e-mail. They will be available on Download directory
Regards
Pstglia
#logcat
#dmesg
# card list
# alsa config filesls -l /system/etc/alsa/*state > /sdcard/Download/alsa_cfg_files.txt
Another thing: Can you send a "lspci" output?
Another thing: Can you send a "lspci" output?I need more instructions.
Result - no sound, But there seems to be some changes in the logs
/sys/bus/acpi/devices
Anton, please DO NOT attach more screenshots.
It's almost useless and wastes bandwidths.
Just attach the text output we asked.
For example, in this case you could
save the output as
ls -l /sys/bus/acpi/devices > /data/acpi.txt
Then copy /data/acpi.txt to usb stick and attach the file.
static struct sst_acpi_mach baytrail_machines[] = {
{ "10EC5640", "byt-rt5640", "intel/fw_sst_0f28.bin-48kHz_i2s_master" },
{ "193C9890", "byt-max98090", "intel/fw_sst_0f28.bin-48kHz_i2s_master" },
{ "WM510204", "byt_wm5102", "intel/fw_sst_0f28.bin-48kHz_i2s_master" },{}};
<6>[ 300.874949] snd_soc_sst_byt_rt5102_mach: Entry snd_byt_mc_probe <3>[ 300.889635] memio map is not set <3>[ 300.904898] byt_wm5102 byt_wm5102: ASoC: CPU DAI Headset-cpu-dai not registered <3>[ 300.920049] snd_soc_sst_byt_rt5102_mach: snd_soc_register_card failed -517 <6>[ 300.935041] platform byt_wm5102: Driver byt_wm5102 requests probe deferral'cat /proc/asount/cards' returns '--- no soundcards ---'
Just booted an USB stick in Debug mode with the new image provided.I did modprobe for the following modules:modprobe snd-soc-sst-byt-rt5102-machmodprobe arizona-spimodprobe arizona-i2cmodprobe gpio-arizonamodprobe snd-soc-arizonamodprobe snd-soc-wm5102Last module returned the following error message:<6>[ 300.874949] snd_soc_sst_byt_rt5102_mach: Entry snd_byt_mc_probe <3>[ 300.889635] memio map is not set <3>[ 300.904898] byt_wm5102 byt_wm5102: ASoC: CPU DAI Headset-cpu-dai not registered <3>[ 300.920049] snd_soc_sst_byt_rt5102_mach: snd_soc_register_card failed -517 <6>[ 300.935041] platform byt_wm5102: Driver byt_wm5102 requests probe deferral'cat /proc/asount/cards' returns '--- no soundcards ---'
I attach here dmesg/logcat
<3>[ 300.889635] memio map is not set
<3>[ 300.904898] byt_wm5102 byt_wm5102: ASoC: CPU DAI Headset-cpu-dai not registered
<3>[ 160.179871] baytrail-pcm-audio baytrail-pcm-audio: error: invalid DMA engine 0 <4>[ 160.180253] baytrail-pcm-audio baytrail-pcm-audio: sst_dma_new failed -22 <3>[ 160.404641] baytrail-pcm-audio baytrail-pcm-audio: ipc: error DSP boot timeout
modprobe snd-soc-sst-byt-rt5102-mach
<6>[ 185.298670] snd_soc_sst_byt_rt5102_mach: Entry snd_byt_mc_probe <3>[ 185.298964] memio map is not set <3>[ 185.310663] byt_wm5102 byt_wm5102: ASoC: CPU DAI baytrail-pcm-audio not registered <3>[ 185.311074] snd_soc_sst_byt_rt5102_mach: snd_soc_register_card failed -517 <6>[ 185.311424] platform byt_wm5102: Driver byt_wm5102 requests probe deferral
Hi,
Just tried the new build unfortunately still 'no soundcards', attaching the logs.
modprobe snd-soc-sst-baytrail-pcm<3>[ 160.179871] baytrail-pcm-audio baytrail-pcm-audio: error: invalid DMA engine 0 <4>[ 160.180253] baytrail-pcm-audio baytrail-pcm-audio: sst_dma_new failed -22 <3>[ 160.404641] baytrail-pcm-audio baytrail-pcm-audio: ipc: error DSP boot timeout
modprobe snd-soc-sst-byt-rt5102-mach
<6>[ 185.298670] snd_soc_sst_byt_rt5102_mach: Entry snd_byt_mc_probe <3>[ 185.298964] memio map is not set <3>[ 185.310663] byt_wm5102 byt_wm5102: ASoC: CPU DAI baytrail-pcm-audio not registered <3>[ 185.311074] snd_soc_sst_byt_rt5102_mach: snd_soc_register_card failed -517 <6>[ 185.311424] platform byt_wm5102: Driver byt_wm5102 requests probe deferral
<6>[ 300.874949] snd_soc_sst_byt_rt5102_mach: Entry snd_byt_mc_probe <3>[ 300.889635] memio map is not set <3>[ 300.904898] byt_wm5102 byt_wm5102: ASoC: CPU DAI Headset-cpu-dai not registered <3>[ 300.920049] snd_soc_sst_byt_rt5102_mach: snd_soc_register_card failed -517 <6>[ 300.935041] platform byt_wm5102: Driver byt_wm5102 requests probe deferral
thank you for the interest and your mail.
I actually try to add ACPI support to the WM5102 audio codec hub,
which is built into the Lenovo Yoga 851 F.
Currently its a Baytrail system with 32Bit UEFI.
* The i915 video driver faults sometimes,
* BCM2E84 Broadcom Serial Bus Driver over UART Bus Enumerator ACPI id
was missing
* device BCM4752 / LNV4752 Broadcom GPS device fails to init GPIO pins
the SPI controller pxa2xx needs a fix to init correctly and to add the
WM510205 audio codec hub. As there is an error in the firmware, saying
that the SPI controller is no. 2 for the WM5102, but its no.1.
The one patch to select the right chipselect on pxa2xx does solve it
for all broken firmwares (I have mailed lenovo but not seen a new
firmware yet) for x86 where the pxa2xx reads out the wrong SPI
controller value from ACPI (UEFI/ DSDT.dsl)
After this patch I added the ACPI id in drivers/mfd/arizona-core.c
arizona-spi.c etc as it was done for other devices (I used rt5645 as
an example)
but adding only the acpi_id for this audio codec to get it initialized
and bootet correctly, was not all.
It needs more patches.
I have started a discussion on the alsa mailinglist about adding ACPI
support for the WM5102 (in the firmware it has
the non-standardconforme ACPI id of WM510205)
and as of now I am working with the gpiolib aka reading the GPIO pins,
lodena and reset.
These two pins are mandandory and all what I need to - as said by
other developer(s).
The audio codec should work fine now....
...but it does not yet.
I have tried yesterday and today to read out the GPIO pins via
gpiolib, as described it should be possible to map
the two pins in questions with labels etc. Currently the
arizona-spi/arizona-core driver does not find the correct GPIOs and
threrefore fails to init the codec.
IF IT DOES NOT fail anymore, all I have to do, is to add a new machine
driver , which you seems to have already.
I stashed the machine driver, it can also contains not tested bugs
yet. I want to do the machine driver after the audio codec is running
fine
we could or should talk over irc, or just write us. I am sometimes in
the channel alsa-soc on irc.freeenode.net
cheers
chris
Hi Anton / Alexandru,
Hi Pstgla! I'm on vacation. I'll be back soon. And immediately will look.
What exactly should be typed into the console for testing? (And in debug or in normal mode or both)?
only for purpose..(because I'm a noob and don't want distrub your work )
I tested the last iso file on my lenovo yoga tablet 2 851-F (WOLFSON device)
but it don't work.
with le official release 4.4.4 R3 of android X86 everything is working like a charm except bluetooth/rotation/sound (WOLFSON).
I think my device is the same but in 8"
would you like a start my slate with android in debug mode ? no risk to brick my device or overwrite my windows partition ?
Hi Pstglia,
Just recently discovered this thread so I'm trying to catch up with the current developments. I also have a yoga 2 1051f that I want to get working with android-x86.
So far I've checked out the current kitkat-x86 code and edited my build to pull in the kernel from your github account. After a bit of messing with it, I was able to build an image and attempted to the do the module loading you mentioned above.
Loading snd-soc-sst-byt-rt5102-mach failed with this error:
<6>[ 369.203148] snd_soc_sst_byt_rt5102_mach: Entry snd_byt_mc_probe
<3>[ 369.203229] memio map is not set
<3>[ 369.214705] byt_wm5102 byt_wm5102: ASoC: CPU DAI Headset-cpu-dai not registered
<3>[ 369.214826] snd_soc_sst_byt_rt5102_mach: snd_soc_register_card failed -517
<6>[ 369.214933] platform byt_wm5102: Driver byt_wm5102 requests probe deferral
The rest of the dmesg output is here: http://pastebin.com/058pGQLX
Is the code on your github the latest so far? I'd actually be pretty curious to help figure out what's going on if you can give me a few pointers as to the current state of what bits of code need to be worked on. Admittedly, I've never actually done any coding in the linux kernel or modules, so I'll probably be a bit slow.
ok..if it can help..
when I said than this version it not working, I gave you a bad explanation.
actually everything is working except WOLFSON/bluetooth/rotate.
before the GUI start, i receveive an error message : unable to start RTC device (I can provide you thevexact message if needed)
however android start.
I saw thant in the devellper I can active a debug mode.
but I don't know where i can find the .log file
--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/BMSMwG0s-fc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Hi Pstglia,Been inactive for a while but today I got the chance to test the latest build. dmesg output attached.
--
uid=10024(u0_a24) gid=10024(u0_a24)
groups=1015(sdcard_rw),1023(media_rw),1028(sdcard_r),3003(inet),50024(all_a24)@x86:/
$ lspci
00:00.0 Class 0600: 8086:0f00
00:02.0 Class 0300: 8086:0f31
00:14.0 Class 0c03: 8086:0f35
00:1a.0 Class 1080: 8086:0f18
00:1f.0 Class 0601: 8086:0f1c
uid=10024(u0_a24) gid=10024(u0_a24)
groups=1015(sdcard_rw),1023(media_rw),1028(sdcard_r),3003(inet),50024(all_a24)@x86:/
$
cat
/proc/asound/cards
<
--- no soundcards ---
uid=10024(u0_a24) gid=10024(u0_a24)
groups=1015(sdcard_rw),1023(media_rw),1028(sdcard_r),3003(inet),50024(all_a24)@x86:/
$
I would love to test if anyone has more fixes available.
Pstglia
Bad news - it isn't booting and doesnt even show the boot screen or anything beyond a "_" that stays on screen forever. Also tried DEBUG mode and same thing.
I am sorry to say that it has the same exact result. :( Thank you for your continued efforts.
CPU |
Intel® Bay Trail T-CR Atom™ Processor Z3735F (2M Cache, up to 1.83GHz) |
CPU Type |
Quad Core |
Memory |
2GB DDR3 |
Storage |
32GB eMMC (24.8GB Free Space) |
Bios |
Insyde 8MB UEFI |
Operating System |
Windows 8.1 |
Display |
Via HDMI |
Wifi; Bluetooth |
802.11bgn; 4.0 |
Button / Indicator |
Power, OS / Power |
Input / Output |
1 x Micro USB, 1 x USB 2.0, 1 x Micro SD card reader |
Dimensions |
110.9 * 38 * 9.8 mm |
Weight |
38 grams |
Accessories |
HDMI cable, QSG, Charger |
creative audio usb
uid=10023(u0_a23) gid=10023(u0_a23) groups=1015(sdcard_rw),1023(media_rw),1028(sdcard_r),3003(inet),50023(all_a23)@x86:/ $ su
uid=0(root) gid=0(root)@x86:/ # busybox lsmod | grep -i audio
snd_usb_audio 149617 0
snd_usbmidi_lib 20684 1 snd_usb_audio
snd_hwdep 5521 1 snd_usb_audio
snd_pcm 84177 4 snd_usb_audio,snd_soc_rt5640,snd_soc_core,snd_pcm_dmaengine
snd 64494 9 snd_usb_audio,snd_usbmidi_lib,snd_hwdep,snd_rawmidi,snd_seq_device,snd_soc_core,snd_compress,snd_pcm,snd_timer
uid=0(root) gid=0(root)@x86:/ # alsa_aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: External [SB Live! 24-bit External], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
uid=0(root) gid=0(root)@x86:/ #
++++++
now with both creative usb and integrated intel loaded
uid=10023(u0_a23) gid=10023(u0_a23) groups=1015(sdcard_rw),1023(media_rw),1028(sdcard_r),3003(inet),50023(all_a23)@x86:/ $ su
uid=0(root) gid=0(root)@x86:/ # busybox lsmod | grep -i audio
snd_usb_audio 149617 0
snd_usbmidi_lib 20684 1 snd_usb_audio
snd_hwdep 5521 1 snd_usb_audio
snd_pcm 84177 4 snd_usb_audio,snd_soc_rt5640,snd_soc_core,snd_pcm_dmaengine
snd 64494 9 snd_usb_audio,snd_usbmidi_lib,snd_hwdep,snd_rawmidi,snd_seq_device,snd_soc_core,snd_compress,snd_pcm,snd_timer
uid=0(root) gid=0(root)@x86:/ # alsa_aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: External [SB Live! 24-bit External], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
uid=0(root) gid=0(root)@x86:/ # busybox lsmod | grep -i snd_hda_intel
1|uid=0(root) gid=0(root)@x86:/ # busybox modprobe snd_hda_intel
uid=0(root) gid=0(root)@x86:/ # busybox lsmod | grep -i snd_hda_intel
snd_hda_intel 24292 0
snd_hda_controller 22904 1 snd_hda_intel
snd_hda_codec 110709 2 snd_hda_intel,snd_hda_controller
snd_pcm 84177 8 snd_hda_intel,snd_hda_controller,snd_hda_codec,snd_usb_audio,snd_soc_rt5640,snd_soc_core,snd_pcm_dmaengine
snd 64494 12 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_usbmidi_lib,snd_hwdep,snd_rawmidi,snd_seq_device,snd_soc_core,snd_compress,snd_pcm,snd_timer
uid=0(root) gid=0(root)@x86:/ #
So for some reason, Intel audio module gets loaded, but the Intel integrated sound card still does not get to load up :(
So for some reason, Intel audio module gets loaded, but the Intel integrated sound card still does not get to load up :(
Who can explain why having the source code, it is impossible to do the build for lenovo yoga 2?
http://support.lenovo.com/ru/ru/products/tablets/yoga-series/yoga-tablet-2-1050
We also have images of partitions from android version, obtained by DD.
It may be possible to substitute something in 4.4 P3 to get the result?