Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nougat x86 snd hda Intel mic fix Surface Pro 3 #1

Open
wants to merge 59 commits into
base: lollipop-x86
Choose a base branch
from

Conversation

joshuarobison
Copy link

@joshuarobison joshuarobison commented Sep 5, 2017

After a combination of this configuration in /system/etc/init.sh

for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do f=/system/etc/alsa/$(cat /proc/asound/card$c/id).state if [ -e $f ]; then alsa_ctl -f $f restore $c else alsa_ctl init $c alsa_amixer -c $c set Master on alsa_amixer -c $c set Master 100% alsa_amixer -c $c set Headphone on alsa_amixer -c $c set Headphone 100% alsa_amixer -c $c set Speaker 110% alsa_amixer -c $c set Capture 85% alsa_amixer -c $c set Capture 'Internal Mic' alsa_amixer -c $c set Capture cap alsa_amixer -c $c set PCM 100 unmute alsa_amixer -c $c set SPO unmute alsa_amixer -c $c set 'Mic Boost' 0 alsa_amixer -c $c set 'Internal Mic Boost' 0 fi done

And adding this to my grub/refined bootloader options

snd_usb_audio.index=0 snd_hda_intel.index=2,1

I now have nearly perfect mic recording.

cwhuang and others added 30 commits May 6, 2016 02:17
Originally android relies mount_all to trigger some actions.
But android-x86 doesn't use fstab before. So we trigger these
actions on fs stage directly. This works before lollipop.

However, lollipop changed the built-in class main to be
triggerred via init*.rc. So I triggerred it on fs as well.
But this is incorrect. It makes the actions in class main
run before on boot stage. That causes rlimit not being
set for services started in class main.

Fix the issue by adding a fstab and do mount_all on fs stage
like normal android system. It should correct other possible
timing issues.
If TARGET_ARCH or TARGET_KERNEL_ARCH is 64-bit,
TARGET_USES_64_BIT_BINDER should be true.
Add the library libnb and script to support the arm translator.
The property is set by the Settings app.
Add prebuilt AndroidTerm.apk from Google Play which
is licensed under the Apache License version 2.0.
Remove components that can't be built temporarily.
Now the source built v86d can work on both 32-bit and 64-bit system.
Now vold manages external storage in a much more dynamic fashion,
so we no longer need to define FUSE daemons or mount points.

Google internal bug: 19993667
The change enables egl trace on error by setting property debug.egl.trace error,
based on definition of any string in DEBUG variable.

Tested with marshmallow-x86 and applicable also to lollipop-x86.
The rild setting doesn't work now.
Disable it until we have a fix.
The patch enables 3D acceleration on QEMU.
These are defined in AOSP's init.rc now.
Change uvesafb to 32-bit which is required by the
software rendering.

Enable debug.egl.trace no matter what the GPU is.
We changed the uvesafb to 32-bit for llvmpipe software renderer.
However, it breaks the old AOSP software renderer.

Fix it by determining the bpp via the HWACCEL variable.
The current way depends on the target name which is too hacking.
Use the more standard way to handle it.
jide-wuzhen and others added 28 commits May 28, 2016 12:38
NO_REF_TASK
tested: local run

Change-Id: I1e0641870723cd087d79d0f10b07e17c4d542761
ref T7670
tested: local build and install, verify the /data/dalvik-cache after
first boot, there should not be dex patch for system binaries

Change-Id: Id38c6690812639da2a7aef0e27bacc36b91b6ecd
Now the camera app will be hidden if no camera device is found.
So remove the obsolete code.
Currently it only work with the tested virgl branch.
Make it easy for user to config whether use local time or utc for rtc.

NO_REF_TASK
Tested: local build and set persist.rtc_local_time with 0 and 1
when 0 is set, bios will use utc time
when 1 is set, bios will use local time

Change-Id: I38dbacf273fa8f1958b34aef479d8351d6a81a16
Now these are real executables instead of symbolic links.
A change suggested by Roman Petrovski.
Currently the software rendering works better with 1024x768.

Remove obsolete device specified modes because they are
supported by the native framebuffer driver.

Re-enable the Setup Wizard for the software rendering case.
It's possible that no sensors are available at first boot.
By default they will not be checked again, with this patch Android will check every boot.
…boot"

It should be fixed in sensors.hsb directly.

This reverts commit cc1a672.
Only enable IntelHDMI audio HAL if it's the only sound card.
It doesn't work on devices other than ASUS ViVoStick (TS10).
Enable the features from Intel.
NO_REF_TASK
Tested: pass all test cases of check_houdini.sh

Change-Id: I37ed20cec5354575671f3ea58c0b041774fa6dae
SELinux can't be disabled in Android 7.0. Before we completely
define our sepolicy, we can only run the permissive mode.
@joshuarobison joshuarobison changed the title Nougat x86 Nougat x86 and had Intel mic fix Surface Pro 3 Sep 5, 2017
@joshuarobison joshuarobison changed the title Nougat x86 and had Intel mic fix Surface Pro 3 Nougat x86 snd hda Intel mic fix Surface Pro 3 Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants