z3735f Audio and brightness,https://github.com/burzumishi/linux-baytrail-flexx10

3,176 views
Skip to first unread message

youling 257

unread,
Apr 7, 2016, 12:21:04 AM4/7/16
to Android-x86
https://github.com/burzumishi/linux-baytrail-flexx10 ,may be can solve  z3735f Androidx86 audio and brightbess problem,how to do with Androidx86 kernel 4.4 ?

Chih-Wei Huang

unread,
Apr 7, 2016, 10:26:57 PM4/7/16
to Android-x86
Are you sure? The project status said:

* Screen backlight /!\
* Sound {i} X-(

/!\ = Error (Couldn't get it working);
{i} = Configuration Required;
X-( = Only works with a non-free driver and or firmware

If it has workable drivers, we can cherry-pick them.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

youling 257

unread,
Apr 8, 2016, 12:42:16 AM4/8/16
to Android-x86
# apt-get install firmware-intel-sound
# cp asound.state /var/lib/alsa/
# alsactl restore
# sh set-alsa-bytcr-rt5640.sh
This will enable your sound card
Please be aware that there are reports indicating that in some cases the sound can be distorted and the speakers can be even damaged if the volume is high
Headphones work too but switching from the speaker is not automatic, it can be done using the audio manager of the DE or a dedicated application like pavucontrol.

As long as it can enable the sound card,“distorted、not automatic” isn't problem.


在 2016年4月8日星期五 UTC+8上午10:26:57,Chih-Wei Huang写道:

youling 257

unread,
Apr 8, 2016, 12:45:25 AM4/8/16
to Android-x86
Because the Crystal Cove PMIC is not yet fully supported the brightness level of the screen cannot be adjusted and it is locked at the maximum value. 
The script brightness_ctl.Stretch_flexx10.sh makes use of the command above to progressively reduce the screen brightness.

use script,control brightness
Message has been deleted

JJ Meijer

unread,
Apr 14, 2016, 7:30:15 AM4/14/16
to Android-x86
Op vrijdag 8 april 2016 06:45:25 UTC+2 schreef youling 257:
Because the Crystal Cove PMIC is not yet fully supported the brightness level of the screen cannot be adjusted and it is locked at the maximum value. 
The script brightness_ctl.Stretch_flexx10.sh makes use of the command above to progressively reduce the screen brightness.

use script,control brightness

It's just a software solution, it does not actually adjust the back-light, but it's better than nothing of course. Maybe you can use the LiveDisplay option in Android to get the same result?

zefie altimitmine

unread,
May 6, 2016, 12:41:16 PM5/6/16
to Android-x86
Sound works with clear quality, with the bytcr-rt5640 driver from kernel 4.5. This can be backported to the Android X86 kernel 4.4 by overwriting some files, thought I forget which ones specifically. I started by overwriting sound/soc/intel and just continued by overwriting files that caused errors (such as includes, etc). Very dirty hack.

You could also just try my kernel, which is based off of the Android X86 4.4 kernel, but been modified for baytrail, or specifically, my Nextbook NXW101QC232 (which i believe is the Flexx 10).(https://github.com/zefie/nxt_andx86_kernel)

Once the newer driver is implemented, you need a firmware. Some devices (like my tablet) may need ssp0 firmware. (https://git.kernel.org/cgit/linux/kernel/git/vkoul/firmware.git/tree/intel?h=byt_new)
 
Headphone jack detection does not work. A lot of cli commands are required to set up the audio path. I made a custom app to manually run the shell scripts, so that I can toggle headphones and speakers. Attached is a zip containing the alsa commands needed for my specific tablet. These were modified from https://github.com/plbossart/UCM/tree/master/bytcr-rt5640

I've yet to find a solution for the backlight.
alsa_bytcr_andx86.zip
Message has been deleted

zefie altimitmine

unread,
May 6, 2016, 8:14:57 PM5/6/16
to Android-x86
I have not tested with 64-bit mode, nor android-x86_64_defconfig, but I will look into it. If you are compiling for baytrail, try nextbook_defconfig, but go into the config and disable embedded DSDT, since that is not included with the kernel source. Simply toggling 64-bit kernel with that config SHOULD work, but I will test these different options now.

On Friday, May 6, 2016 at 3:47:10 PM UTC-4, youling 257 wrote:
make android-x86_64_defconfig ,time make -j4,time make -j4 targz-pkg -i, I can build kernel and modules with https://sourceforge.net/p/android-x86/kernel/ci/kernel-4.4/tree/https://github.com/zefie/nxt_andx86_kernel ,I can't build kernel and modules.

在 2016年5月7日星期六 UTC+8上午12:41:16,zefie altimitmine写道:

zefie altimitmine

unread,
May 6, 2016, 9:10:28 PM5/6/16
to Android-x86
I've made the necessary modifications to the code to allow compiling from android-x86_defconfig and android-x86_64_defconfig. I have also added a baytrail_defconfig, which is the same as nextbook_defconfig, but with DSDT embedding disabled. Please pull my latest commit from my git.

Keep in mind, certain tablets, especially the Nextbook Flexx 10, have an out-of-order IRQ mapping in the DSDT for the sound chip, so if the sound is not initialized once you boot the kernel, you may need to either modify your DSDT to place the last IRQ first, or simply apply the attached patch to tell the driver to look at index 0, rather than index 5.

Also, be sure to blacklist or remove the snd-soc-sst-acpi.ko module, as this module will load the old byt driver and not bytcr.
The module you need is snd-intel-sst-acpi.ko. This should automatically load snd-soc-sst-bytcr-rt5640, which is the driver that works.

Once dmesg reports that the card is initialized, and you can see it in /proc/asound/cards, you will need to run two of the scripts that I previously attached. 
"alsa_cr.sh" does the main initialization of the codec mapping. Then you can choose either "alsa_cr_spk.sh" for Speaker output, or "alsa_cr_hp.sh" for Headphone output.

One more word of warning, with the existing 'distorted' hacks, be careful. When I was working on getting sound to work, I managed to initially get scratchy distorted audio in the right speaker only. As a result, the 'distorted' audio actually psychically damaged my right speaker. Therefore, if your audio with this kernel still sounds distorted, try with headphones, because your speakers may have been damaged from previous tests.

On Friday, May 6, 2016 at 3:47:10 PM UTC-4, youling 257 wrote:
make android-x86_64_defconfig ,time make -j4,time make -j4 targz-pkg -i, I can build kernel and modules with https://sourceforge.net/p/android-x86/kernel/ci/kernel-4.4/tree/https://github.com/zefie/nxt_andx86_kernel ,I can't build kernel and modules.

在 2016年5月7日星期六 UTC+8上午12:41:16,zefie altimitmine写道:
Sound works with clear quality, with the bytcr-rt5640 driver from kernel 4.5. This can be backported to the Android X86 kernel 4.4 by overwriting some files, thought I forget which ones specifically. I started by overwriting sound/soc/intel and just continued by overwriting files that caused errors (such as includes, etc). Very dirty hack.
byt_audio_irq.patch
Message has been deleted
Message has been deleted
Message has been deleted

zefie altimitmine

unread,
May 7, 2016, 2:58:17 AM5/7/16
to Android-x86
Looks okay so far.
You need to rename the appropriate firmware.

Remove the existing "fw_sst_0f28.bin". Then rename the ssp0 or ssp2 to the original filename.
fw_sst_0f28_ssp0.bin -> fw_sst_0f28.bin
or
fw_sst_0f28_ssp2.bin -> fw_sst_0f28.bin

After renaming the firmware, reboot.

Once it is booted, check dmesg to make sure the firmware loaded.something like:

# dmesg | grep bytcr | grep ssp2
bytcr_rt5640 bytcr_rt5640 rt5640-aif1 <-> ssp2-port mapping ok

It will say ssp2 even if you use the ssp0 firmware, since this is hard coded in the driver.

Then run the scripts.

Try ssp2 first, if no sound, try ssp0.

On Saturday, May 7, 2016 at 1:29:22 AM UTC-4, youling 257 wrote:
you mean is,modprobe -r snd-soc-sst-acpi ,modprobe snd-intel-sst-acpi.ko ?

u0_a26@android_x86:/ $ su
root@android_x86:/ # modprobe -r snd-soc-sst-acpi
modprobe: remove 'snd_soc_sst_acpi': No such file or directory
root@android_x86:/ # lsmod
Module                  Size  Used by
i2c_dev                 6747  0
binfmt_misc             9035  1
btusb                  31273  0
btrtl                   4570  1 btusb
snd_soc_sst_bytcr_rt5640    26250  1
bmc150_accel_i2c        2538  0
gpio_keys               8021  0
mac_hid                 3843  0
r8723bs               550974  0
cfg80211              478396  1 r8723bs
pcspkr                  2158  0
efivars                 7558  0
i915                 1008587  21
drm_kms_helper        103985  1 i915
drm                   304233  23 i915,drm_kms_helper
fb_sys_fops             1759  1 drm_kms_helper
syscopyarea             3185  1 drm_kms_helper
sysfillrect             3357  1 drm_kms_helper
sysimgblt               2400  1 drm_kms_helper
i2c_algo_bit            5350  1 i915
lpc_ich                14354  0
aesni_intel           158765  0
aes_x86_64              7979  1 aesni_intel
8250_fintek             2939  0
gslx680_ts_acpi         9881  0
jsa1212                 4439  0
dw_dmac                 4088  0
dw_dmac_core           17102  1 dw_dmac
soc_button_array        2418  0
goodix                  7218  0
bmc150_accel_spi        2538  0
bmc150_accel_core      16195  2 bmc150_accel_i2c,bmc150_accel_spi
industrialio_triggered_buffer     1874  1 bmc150_accel_core
kfifo_buf               3310  1 industrialio_triggered_buffer
industrialio           44986  4 jsa1212,bmc150_accel_core,industrialio_triggered_buffer,kfifo_buf
regmap_spi              2381  1 bmc150_accel_spi
hci_uart               65868  0
btbcm                   6872  2 btusb,hci_uart
btqca                   6975  1 hci_uart
btintel                 8259  2 btusb,hci_uart
bluetooth             435246  6 btusb,btrtl,hci_uart,btbcm,btqca,btintel
i2c_designware_platform     6662  0
i2c_designware_core     7540  1 i2c_designware_platform
snd_intel_sst_acpi      4907  2
snd_intel_sst_core     58982  1 snd_intel_sst_acpi
snd_soc_sst_mfld_platform    76769  3 snd_intel_sst_core
snd_soc_sst_match       1345  1 snd_intel_sst_acpi
8250_dw                 6857  0
pwm_lpss_platform       1823  0
pwm_lpss                2919  1 pwm_lpss_platform
snd_soc_rt5640        108235  2 snd_soc_sst_bytcr_rt5640
snd_soc_rl6231          3040  1 snd_soc_rt5640
snd_soc_core          183624  3 snd_soc_sst_bytcr_rt5640,snd_soc_sst_mfld_platform,snd_soc_rt5640
snd_compress           11687  1 snd_soc_core
snd_pcm_dmaengine       5444  1 snd_soc_core
snd_pcm                86333  6 snd_soc_sst_bytcr_rt5640,snd_soc_sst_mfld_platform,snd_soc_rt5640,snd_soc_core,snd_pcm_dmaengine
snd_timer              20117  1 snd_pcm
snd                    64510  7 snd_soc_sst_bytcr_rt5640,snd_soc_sst_mfld_platform,snd_soc_core,snd_compress,snd_pcm,snd_timer
soundcore               6580  1 snd
ac97_bus                1997  1 snd_soc_core
root@android_x86:/ # modprobe -r snd-soc-sst-acpi
modprobe: remove 'snd_soc_sst_acpi': No such file or directory
root@android_x86:/ # modprobe -r snd-intel-sst-acpi
modprobe: remove 'snd_intel_sst_acpi': Resource temporarily unavailable
root@android_x86:/ # modprobe snd-intel-sst-acpi
root@android_x86:/ # lsmod
Module                  Size  Used by
i2c_dev                 6747  0
binfmt_misc             9035  1
btusb                  31273  0
btrtl                   4570  1 btusb
snd_soc_sst_bytcr_rt5640    26250  1
bmc150_accel_i2c        2538  0
gpio_keys               8021  0
mac_hid                 3843  0
r8723bs               550974  0
cfg80211              478396  1 r8723bs
pcspkr                  2158  0
efivars                 7558  0
i915                 1008587  21
drm_kms_helper        103985  1 i915
drm                   304233  23 i915,drm_kms_helper
fb_sys_fops             1759  1 drm_kms_helper
syscopyarea             3185  1 drm_kms_helper
sysfillrect             3357  1 drm_kms_helper
sysimgblt               2400  1 drm_kms_helper
i2c_algo_bit            5350  1 i915
lpc_ich                14354  0
aesni_intel           158765  0
aes_x86_64              7979  1 aesni_intel
8250_fintek             2939  0
gslx680_ts_acpi         9881  0
jsa1212                 4439  0
dw_dmac                 4088  0
dw_dmac_core           17102  1 dw_dmac
soc_button_array        2418  0
goodix                  7218  0
bmc150_accel_spi        2538  0
bmc150_accel_core      16195  2 bmc150_accel_i2c,bmc150_accel_spi
industrialio_triggered_buffer     1874  1 bmc150_accel_core
kfifo_buf               3310  1 industrialio_triggered_buffer
industrialio           44986  4 jsa1212,bmc150_accel_core,industrialio_triggered_buffer,kfifo_buf
regmap_spi              2381  1 bmc150_accel_spi
hci_uart               65868  0
btbcm                   6872  2 btusb,hci_uart
btqca                   6975  1 hci_uart
btintel                 8259  2 btusb,hci_uart
bluetooth             435246  6 btusb,btrtl,hci_uart,btbcm,btqca,btintel
i2c_designware_platform     6662  0
i2c_designware_core     7540  1 i2c_designware_platform
snd_intel_sst_acpi      4907  2
snd_intel_sst_core     58982  1 snd_intel_sst_acpi
snd_soc_sst_mfld_platform    76769  3 snd_intel_sst_core
snd_soc_sst_match       1345  1 snd_intel_sst_acpi
8250_dw                 6857  0
pwm_lpss_platform       1823  0
pwm_lpss                2919  1 pwm_lpss_platform
snd_soc_rt5640        108235  2 snd_soc_sst_bytcr_rt5640
snd_soc_rl6231          3040  1 snd_soc_rt5640
snd_soc_core          183624  3 snd_soc_sst_bytcr_rt5640,snd_soc_sst_mfld_platform,snd_soc_rt5640
snd_compress           11687  1 snd_soc_core
snd_pcm_dmaengine       5444  1 snd_soc_core
snd_pcm                86333  6 snd_soc_sst_bytcr_rt5640,snd_soc_sst_mfld_platform,snd_soc_rt5640,snd_soc_core,snd_pcm_dmaengine
snd_timer              20117  1 snd_pcm
snd                    64510  7 snd_soc_sst_bytcr_rt5640,snd_soc_sst_mfld_platform,snd_soc_core,snd_compress,snd_pcm,snd_timer
soundcore               6580  1 snd
ac97_bus                1997  1 snd_soc_core
root@android_x86:/ #

I Compiled your kernel and modules,and copy https://git.kernel.org/cgit/linux/kernel/git/vkoul/firmware.git/tree/intel?h=byt_new these to /system/lib/firmware/intel,still no sound
Message has been deleted
Message has been deleted
Message has been deleted

zefie altimitmine

unread,
May 7, 2016, 11:14:18 AM5/7/16
to Android-x86
Thats the initialization, now run alsa_cr_spk.sh afterwards.

On Saturday, May 7, 2016 at 10:03:34 AM UTC-4, youling 257 wrote:
I use root explorer ,execute alsa_cr.sh,/storage/emulated/0/alsa_cr.sh,no sound

youling 257

unread,
May 7, 2016, 11:47:56 AM5/7/16
to Android-x86
dmesg,Baytrail Audio Port: ASoC: no backend DAIs enabled for Baytrail Audio Port

在 2016年5月7日星期六 UTC+8下午11:14:18,zefie altimitmine写道:
Message has been deleted

zefie altimitmine

unread,
May 7, 2016, 12:29:09 PM5/7/16
to Android-x86
Be sure you are running both alsa_cr.sh, and then alsa_cr_spk.sh.

youling 257

unread,
May 7, 2016, 12:34:46 PM5/7/16
to Android-x86
dmesg,Terminal command

在 2016年5月8日星期日 UTC+8上午12:29:09,zefie altimitmine写道:
18u0_a26@android_x86.txt
4dmesg.txt

youling 257

unread,
May 7, 2016, 12:47:33 PM5/7/16
to Android-x86
  Baytrail Audio Port: sst: error code = -22
Message has been deleted

zefie altimitmine

unread,
May 7, 2016, 1:40:40 PM5/7/16
to Android-x86
Looks like you need the IRQ patch I mentioned eariler.

On Saturday, May 7, 2016 at 12:53:57 PM UTC-4, youling 257 wrote:
Message has been deleted

zefie altimitmine

unread,
May 7, 2016, 2:10:11 PM5/7/16
to Android-x86
I posted the patch as an attachment earlier. I won't be applying it to the kernel because I use a DSDT edit.

On Saturday, May 7, 2016 at 1:56:47 PM UTC-4, youling 257 wrote:
Waiting for your kernel tree is updated,I will re-download and compile

在 2016年5月8日星期日 UTC+8上午1:40:40,zefie altimitmine写道:
Message has been deleted
Message has been deleted

pstglia

unread,
May 7, 2016, 7:06:35 PM5/7/16
to Android-x86


I only can make ready-made kernel tree;More complex I do not understand

It's not difficult:

1) Copy byt_audio_irq.patch to kernel directory

2) cd to kernel directory and execute this:

patch -p1 < byt_audio_irq.patch

3) Then rebuild your kernel

pstglia

unread,
May 7, 2016, 7:18:12 PM5/7/16
to Android-x86

Hi Zefie,


I posted the patch as an attachment earlier. I won't be applying it to the kernel because I use a DSDT edit.

If using bytcr_rt5640, them sound/soc/intel/atom/sst/sst_acpi.c should be patched:

static const struct sst_res_info byt_rvp_res_info = {
        .shim_offset = 0x140000,
        .shim_size = 0x000100,
        .shim_phy_addr = SST_BYT_SHIM_PHY_ADDR,
        .ssp0_offset = 0xa0000,
        .ssp0_size = 0x1000,
        .dma0_offset = 0x98000,
        .dma0_size = 0x4000,
        .dma1_offset = 0x9c000,
        .dma1_size = 0x4000,
        .iram_offset = 0x0c0000,
        .iram_size = 0x14000,
        .dram_offset = 0x100000,
        .dram_size = 0x28000,
        .mbox_offset = 0x144000,
        .mbox_size = 0x1000,
        .acpi_lpe_res_index = 0,
        .acpi_ddr_index = 2,
        .acpi_ipc_irq_index = 5, << change this to 0
};
 

Regards,
Pstglia

Message has been deleted

zefie altimitmine

unread,
May 8, 2016, 10:04:38 AM5/8/16
to Android-x86
just run 
make menuconfig

its the very top option to enable a 64-bit kernel.

Good luck with bluetooth. I haven't had any luck, its back to timing out.

zefie altimitmine

unread,
May 8, 2016, 10:08:03 AM5/8/16
to Android-x86
btw, where did you get CM13 x86?

On Sunday, May 8, 2016 at 9:57:45 AM UTC-4, youling 257 wrote:
your nextbook_defconfig or baytrail_defconfig is 32bit kernel,I use 64bit kernel 、32bit user space cm13 ;use baytrail_defconfig build kernel can't run on 64k32u cm13;now,your baytrail_defconfig,working on bluetooth,2 hours ago
Message has been deleted

youling 257

unread,
May 8, 2016, 11:21:33 AM5/8/16
to Android-x86
patch -p1 < byt_audio_irq.patch ,then,make android-x86_64_defconfig ,time make -j4,time make -j4 targz-pkg -i,build kernel and modules. still no sound ,Baytrail Audio Port: ASoC: no backend DAIs enabled for Baytrail Audio Port,Baytrail Audio Port: sst: error code = -22,not solve

在 2016年5月8日星期日 UTC+8上午7:06:35,pstglia写道:

pstglia

unread,
May 8, 2016, 11:38:42 AM5/8/16
to Android-x86


patch -p1 < byt_audio_irq.patch ,then,make android-x86_64_defconfig ,time make -j4,time make -j4 targz-pkg -i,build kernel and modules. still no sound ,Baytrail Audio Port: ASoC: no backend DAIs enabled for Baytrail Audio Port,Baytrail Audio Port: sst: error code = -22,not solve

Try editing the  other file:

1) Go to your kernel directory and execute this cmd (it will patch sound/soc/intel/atom/sst/sst_acpi.c)

sed -i "s/.acpi_ipc_irq_index = 5/.acpi_ipc_irq_index = 0/g" sound/soc/intel/atom/sst/sst_acpi.c

2) Rebuild your kernel

Regards
Pstglia
Message has been deleted

pstglia

unread,
May 8, 2016, 12:00:12 PM5/8/16
to Android-x86

Edit the baytrail structure:

static struct sst_acpi_desc sst_acpi_baytrail_desc = {
.drv_name = "baytrail-pcm-audio",
.machines = baytrail_machines,
.resindex_lpe_base = 0,
.resindex_pcicfg_base = 1,
.resindex_fw_base = 2,
.irqindex_host_ipc = 5,
.sst_id = SST_DEV_ID_BYT,
.resindex_dma_base = -1,
};

From 5 to 0
 

pstglia

unread,
May 8, 2016, 12:05:33 PM5/8/16
to Android-x86
In fact you should edit  sound/soc/intel/atom/sst/sst_acpi.c (https://github.com/zefie/nxt_andx86_kernel/blob/master/sound/soc/intel/atom/sst/sst_acpi.c) like I pointed before:

static const struct sst_res_info byt_rvp_res_info = {
        .shim_offset = 0x140000,
        .shim_size = 0x000100,
        .shim_phy_addr = SST_BYT_SHIM_PHY_ADDR,
        .ssp0_offset = 0xa0000,
        .ssp0_size = 0x1000,
        .dma0_offset = 0x98000,
        .dma0_size = 0x4000,
        .dma1_offset = 0x9c000,
        .dma1_size = 0x4000,
        .iram_offset = 0x0c0000,
        .iram_size = 0x14000,
        .dram_offset = 0x100000,
        .dram_size = 0x28000,
        .mbox_offset = 0x144000,
        .mbox_size = 0x1000,
        .acpi_lpe_res_index = 5,
        .acpi_ddr_index = 2,
        .acpi_ipc_irq_index = 0,
};

From 5 to 0

Use the sed cmd I posted

Regards
Pstglia
Message has been deleted
Message has been deleted
Message has been deleted

DDS Central

unread,
May 8, 2016, 1:42:43 PM5/8/16
to andro...@googlegroups.com

Open the file in a text editor and search for: byt_rvp_res_info
Then copy-paste text in bold.

On May 8, 2016 8:33 PM, "youling 257" <youli...@gmail.com> wrote:
static const struct sst_res_info byt_rvp_res_info = {
        .shim_offset = 0x140000,
        .shim_size = 0x000100,
        .shim_phy_addr = SST_BYT_SHIM_PHY_ADDR,
        .ssp0_offset = 0xa0000,
        .ssp0_size = 0x1000,
        .dma0_offset = 0x98000,
        .dma0_size = 0x4000,
        .dma1_offset = 0x9c000,
        .dma1_size = 0x4000,
        .iram_offset = 0x0c0000,
        .iram_size = 0x14000,
        .dram_offset = 0x100000,
        .dram_size = 0x28000,
        .mbox_offset = 0x144000,
        .mbox_size = 0x1000,
        .acpi_lpe_res_index = 0,
        .acpi_ddr_index = 2,
        .acpi_ipc_irq_index = 0,
};

paste these at sst-acpi.c what position ? i don't know


在 2016年5月9日星期一 UTC+8上午12:05:33,pstglia写道:

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted
Message has been deleted

youling 257

unread,
May 8, 2016, 3:08:16 PM5/8/16
to Android-x86
no use,irq isn't problem reason

在 2016年5月9日星期一 UTC+8上午12:00:12,pstglia写道:

pstglia

unread,
May 8, 2016, 3:14:53 PM5/8/16
to Android-x86


static const struct sst_res_info byt_rvp_res_info = {
        .shim_offset = 0x140000,
        .shim_size = 0x000100,
        .shim_phy_addr = SST_BYT_SHIM_PHY_ADDR,
        .ssp0_offset = 0xa0000,
        .ssp0_size = 0x1000,
        .dma0_offset = 0x98000,
        .dma0_size = 0x4000,
        .dma1_offset = 0x9c000,
        .dma1_size = 0x4000,
        .iram_offset = 0x0c0000,
        .iram_size = 0x14000,
        .dram_offset = 0x100000,
        .dram_size = 0x28000,
        .mbox_offset = 0x144000,
        .mbox_size = 0x1000,
        .acpi_lpe_res_index = 0,
        .acpi_ddr_index = 2,
        .acpi_ipc_irq_index = 0,
};



I made a mistake... the param that should be changed is  acpi_ipc_irq_index, not acpi_lpe_res_index (which is already 0 value)



static const struct sst_res_info byt_rvp_res_info = {
.shim_offset = 0x140000,
.shim_size = 0x000100,
.shim_phy_addr = SST_BYT_SHIM_PHY_ADDR,
.ssp0_offset = 0xa0000,
.ssp0_size = 0x1000,
.dma0_offset = 0x98000,
.dma0_size = 0x4000,
.dma1_offset = 0x9c000,
.dma1_size = 0x4000,
.iram_offset = 0x0c0000,
.iram_size = 0x14000,
.dram_offset = 0x100000,
.dram_size = 0x28000,
.mbox_offset = 0x144000,
.mbox_size = 0x1000,
.acpi_lpe_res_index = 0,
.acpi_ddr_index = 2,
.acpi_ipc_irq_index = 5,
};

And it has to be replaced on kernel/sound/soc/intel/atom/sst/sst_acpi.c

To avoid confusion: There's 2 ACPI codes available. The old one ( which uses common/sst-acpi.c ) and the new one (which uses atom/sst/sst_acpi.c)

bytcr_rt5640 machine driver (which seems the one being used here) uses the new ACPI detection/platform driver

Sorry for the confusion

zefie altimitmine

unread,
May 8, 2016, 5:47:35 PM5/8/16
to Android-x86
Can someone else with a baytrail device test to see if this thread is of use?
All I know is it works on my Nextbook. I thought it would help on all rt5640 SoCs but, I should have known given the nature of Baytrail.
Message has been deleted
Message has been deleted

zefie altimitmine

unread,
May 8, 2016, 11:29:14 PM5/8/16
to Android-x86
You are checking dmesg? You are trying both firmwares after each kernel modification?
It should work with irq 0 and ssp0.

On Sunday, May 8, 2016 at 10:53:29 PM UTC-4, youling 257 wrote:
no use,sound/soc/intel/atom/sst/sst_acpi.c,acpi_ipc_irq_index = 0,

在 2016年5月9日星期一 UTC+8上午3:14:53,pstglia写道:

youling 257

unread,
May 8, 2016, 11:46:50 PM5/8/16
to Android-x86
it still Baytrail Audio Port: ASoC: no backend DAIs enabled for Baytrail Audio Port 
really can load fw_sst_0f28_ssp0.bin ? how to load ? what Loading process ? 
please you upload your dmesg.txt

在 2016年5月9日星期一 UTC+8上午11:29:14,zefie altimitmine写道:

zefie altimitmine

unread,
May 8, 2016, 11:59:27 PM5/8/16
to Android-x86
copy fw_sst_0f28_ssp0.bin to /lib/firmware/intel/fw_sst_0f28.bin

I've attached my dmesg for reference.
dmesg_rt5640.txt
dmesg.txt
Message has been deleted

zefie altimitmine

unread,
May 9, 2016, 3:48:39 AM5/9/16
to Android-x86
Seems like a warning regarding the button array (power, volume up, volume down, windows key). Not surely specifically what about. Not enough information.

On Monday, May 9, 2016 at 1:35:29 AM UTC-4, youling 257 wrote:
WARNING: CPU: 3 PID: 1289 at drivers/pinctrl/intel/pinctrl-baytrail.c:214 byt_gpio_request+0x5c/0xb4()

Modules linked in: soc_button_array(+) goodix bmc150_accel_spi bmc150_accel_core industrialio_triggered_buffer kfifo_buf industrialio regmap_spi hci_uart btbcm btqca btintel bluetooth i2c_designware_platform i2c_designware_core snd_intel_sst_acpi snd_intel_sst_core snd_soc_sst_mfld_platform snd_soc_sst_match 8250_dw pwm_lpss_platform pwm_lpss snd_soc_rt5640 snd_soc_rl6231 snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm snd_timer snd soundcore ac97_bus atkbd ,what means? 

在 2016年5月8日星期日 UTC+8上午12:34:46,youling 257写道:
dmesg,Terminal command

在 2016年5月8日星期日 UTC+8上午12:29:09,zefie altimitmine写道:
Be sure you are running both alsa_cr.sh, and then alsa_cr_spk.sh.

On Saturday, May 7, 2016 at 11:47:56 AM UTC-4, youling 257 wrote:
dmesg,Baytrail Audio Port: ASoC: no backend DAIs enabled for Baytrail Audio Port

在 2016年5月7日星期六 UTC+8下午11:14:18,zefie altimitmine写道:
Thats the initialization, now run alsa_cr_spk.sh afterwards.

On Saturday, May 7, 2016 at 10:03:34 AM UTC-4, youling 257 wrote:
I use root explorer ,execute alsa_cr.sh,/storage/emulated/0/alsa_cr.sh,no sound
Message has been deleted

zefie altimitmine

unread,
May 9, 2016, 6:35:08 PM5/9/16
to Android-x86
baytrail_defconfig may be too tailored towards my tablet. It is the same config but without the embedded DSDT, which definitely would not work. You can go ahead and use android-x86-64_defconfig, sound should still work. I'm not sure why it does not work for you. Could you post your DSDT? From command line on the tablet, run:
cat /sys/firmware/acpi/tables/DSDT > dsdt.dat
Then attach the dsdt.dat file.

On Monday, May 9, 2016 at 12:41:09 PM UTC-4, youling 257 wrote:
make menuconfig,enable 64-bit kernel,save new config,rename 1baytrail_defconfig,copy to /arch/x86/configs folder ;make 1baytrail_defconfig,time make -j8,time make -j8 targz-pkg -i ,rebuild kernel and modules ; but use these modules and kernel,64K32U cm13 can't boot ; use android-x86_64_defconfig rebuild kernel and modules,64k32u can boot

在 2016年5月8日星期日 UTC+8下午10:04:38,zefie altimitmine写道:
Message has been deleted

zefie altimitmine

unread,
May 9, 2016, 7:52:52 PM5/9/16
to Android-x86
There is really no advantage to using a 64-bit kernel as far as I know, unless you happen to have over 3gb ram. But the Z3735F only supports up to 2gb RAM. That is why I use 32k32u.

On Monday, May 9, 2016 at 7:06:08 PM UTC-4, youling 257 wrote:
you use 32 bit kernel and 32 bit userspace ,isn't  tailored towards ; 
I use baytrail_defconfig make 32 bit kernel and modules,can boot Androidx86 5.1.1,it's 32K32U;i use 64K32U cm13,64K32U 6.0.1,32K32U 5.1.1

在 2016年5月10日星期二 UTC+8上午6:35:08,zefie altimitmine写道:
Message has been deleted

youling 257

unread,
May 10, 2016, 1:24:21 PM5/10/16
to Android-x86


在 2016年5月10日星期二 UTC+8上午6:35:08,zefie altimitmine写道:
baytrail_defconfig may be too tailored towards my tablet. It is the same config but without the embedded DSDT, which definitely would not work. You can go ahead and use android-x86-64_defconfig, sound should still work. I'm not sure why it does not work for you. Could you post your DSDT? From command line on the tablet, run:
dsdt.dat

zefie altimitmine

unread,
May 10, 2016, 1:57:41 PM5/10/16
to Android-x86
Yeah you need to patch for index 0 as we assumed above. then use ssp0 firmware.

youling 257

unread,
May 10, 2016, 2:24:45 PM5/10/16
to Android-x86
hope you find someone else. I give up


在 2016年5月9日星期一 UTC+8上午5:47:35,zefie altimitmine写道:

youling 257

unread,
Aug 30, 2016, 3:40:43 PM8/30/16
to Android-x86
https://github.com/burzumishi/linux-baytrail-flexx10 ,update ;https://github.com/burzumishi/linux-baytrail-flexx10/tree/master/kernel/patches/v4.8

在 2016年4月7日星期四 UTC+8下午12:21:04,youling 257写道:
https://github.com/burzumishi/linux-baytrail-flexx10 ,may be can solve  z3735f Androidx86 audio and brightbess problem,how to do with Androidx86 kernel 4.4 ?
Reply all
Reply to author
Forward
0 new messages