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

No audio on bytcr-rt5640 (Baytrail Tablet) #201

Open
intialonso opened this issue May 25, 2020 · 15 comments
Open

No audio on bytcr-rt5640 (Baytrail Tablet) #201

intialonso opened this issue May 25, 2020 · 15 comments

Comments

@intialonso
Copy link

intialonso commented May 25, 2020

I was able to install Chrome OS with Rammus and Brunch r81 k4.19 stable in this old Windows tablet (Lenovo Miix 2 8), everything seems to work except the audio. The chip is a "bytcr-rt5640".

Already tried booting with "options=baytrail_chromebook" and there was no change. The sound works ok in Android X86 9 with kernel 4.19.110, and in Ubuntu 20.04 with kernel 5.4.

This is my aplay -l output:
IMG_20200525_172346

@clacalderonc
Copy link

Hi, i'm running the same setup (miix 2 8), but using octopus recovery (i did find it works stable with this build) and sound is working ok, maybe you cant try it.

@intialonso
Copy link
Author

Hi, i'm running the same setup (miix 2 8), but using octopus recovery (i did find it works stable with this build) and sound is working ok, maybe you cant try it.

Ey thats great! Gonna try right now, thank you!

@intialonso
Copy link
Author

Hi, i'm running the same setup (miix 2 8), but using octopus recovery (i did find it works stable with this build) and sound is working ok, maybe you cant try it.

Just finished installing with Octopus and still no sound. What Brunch version did you usted? Did you make anything else?

@clacalderonc
Copy link

clacalderonc commented May 26, 2020

Hi, i'm running the same setup (miix 2 8), but using octopus recovery (i did find it works stable with this build) and sound is working ok, maybe you cant try it.

Just finished installing with Octopus and still no sound. What Brunch version did you usted? Did you make anything else?

No, just installed and worked without changes, I did some testing to have more details:

  • Tablet speaker output audio works OK.
  • Input audio jack detect earphones but i dont get output/input working.
  • Bluetooth Audio device (airpods) output works but i can't get the input mic audio working. Just audio output

@intialonso
Copy link
Author

intialonso commented May 27, 2020

I was able to fix it removing all the bytcr-rt5640 files and folders from /usr/share/alsa/ucm and using the ones from https://github.com/plbossart/, the UCM and asound.state, like this:

sudo cp -rf ~/UCM/bytcr-rt5640 /usr/share/alsa/ucm
sudo cp ~/UCM/bytcr-rt5651/asound.state /var/lib/alsa (needed to create that folder)

With this I have speaker sound, but no headphones.

@kbnhvn
Copy link

kbnhvn commented May 27, 2020

How it is running on BayTrail tablet?
I've got an old Miix 3 830 not used.

@intialonso
Copy link
Author

How it is running on BayTrail tablet?
I've got an old Miix 3 830 not used.

Well, it is stable, works much better than on Windows. Some things doesnt work as the audio headphones, autorotate and the cameras. Those things except the cameras work fine on Android X86, but is more unstable. For media consumption is a viable choice.

@kbnhvn
Copy link

kbnhvn commented May 27, 2020

Thanks, Android app work too?
For rotation, maybe this app will help :
https://github.com/azw413/ChromeOSRotate

@intialonso
Copy link
Author

Thanks, Android app work too?
For rotation, maybe this app will help :
https://github.com/azw413/ChromeOSRotate

Yeah, Android apps are working (I played some games), and you can rotate from the settings. no need for an app, its juts that it doesnt do it automatically.

@kbnhvn
Copy link

kbnhvn commented May 27, 2020

No issue with 32 bit uefi / 64 bit CPU of baytrail? For installation

@intialonso
Copy link
Author

No issue with 32 bit uefi / 64 bit CPU of baytrail? For installation

Not at all.

@kbnhvn
Copy link

kbnhvn commented Jun 9, 2020

How long is battery life?

@tornadox
Copy link

tornadox commented Jul 10, 2020

I have a TV box Wintel CX-8, it has the same baytrail CPU Z3735, audio is bytcr-rt5640.
HDMI - doesn't not work, only crackle
Headphone - output doesn't work
Mic - doesn't work
No internal speaker to test.
None of the fixes above helped, rammus & octopus, baytrail_chromebook, disable_intel_hda, replacing files from above link also.
Every sound output works fine on xubuntu 20 (hdmi, headphone and mic)
Bluetooth audio works, only output tested.
Selecting integrated audio options make the box seriously freeze.

@tornadox
Copy link

tornadox commented Jul 11, 2020

I tried to edit the baytrail_chromebook patch but it didn't help.

baytrail_chromebook=0
for i in $(echo "$1" | sed 's#,# #g')
do
        if [ "$i" == "baytrail_chromebook" ]; then baytrail_chromebook=1; fi
done

ret=0
if [ "$baytrail_chromebook" -eq 1 ]; then
        echo "blacklist snd_hda_intel" > /system/etc/modprobe.d/alsa-hda.conf
        if [ ! "$?" -eq 0 ]; then ret=$((ret + (2 ** 0))); fi
        cat >/system/etc/init/bytcr-rt5640.conf <<BYTCR-RT5640
start on stopped udev-trigger

script
        alsaucm -c bytcr-rt5640 set _verb HiFi set _enadev Headphone
        alsaucm -c bytcr-rt5640 set _verb HiFi set _enadev Speakers
        alsaucm -c bytcr-rt5640 set _verb HiFi set _enadev HeadsetMic
        alsaucm -c bytcr-rt5640 set _verb HiFi set _enadev InternalMic
        mkdir -p /var/lib/alsa
        cp /usr/share/alsa/ucm/bytcr-rt5651/asound.state /var/lib/alsa/
        alsactl restore
end script
BYTCR-RT5640
        if [ ! "$?" -eq 0 ]; then ret=$((ret + (2 ** 1))); fi
fi

@DevHamid
Copy link

DevHamid commented Sep 9, 2020

I was able to fix it removing all the bytcr-rt5640 files and folders from /usr/share/alsa/ucm and using the ones from https://github.com/plbossart/, the UCM and asound.state, like this:

sudo cp -rf ~/UCM/bytcr-rt5640 /usr/share/alsa/ucm
sudo cp ~/UCM/bytcr-rt5651/asound.state /var/lib/alsa (needed to create that folder)

With this I have speaker sound, but no headphones.

i try on my bytcr-rt5651 but still no sound, only on tws work

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

No branches or pull requests

5 participants