olm3ca / Galaxy-Chromebook

Mac OS, Linux and other systems on the Samsung Galaxy Chromebook
65 stars 4 forks source link

Getting audio to work properly #4

Closed mingming1222 closed 2 years ago

mingming1222 commented 2 years ago

Hi, @olm3ca @CabbageSong I modified the original alsa ucm config for chrome os and now the sof is displayed and works fine with the new HiFi.conf. Just need to Move this repository https://github.com/mingming1222/galaxy-chromebook-linux folder sof-cmlda7219ma to /usr/share/alsa/ucm2 directory.

Since I don't have a monitor at home, I didn't test the hdmi port, so I commented this part out. But I believe hdmi should work fine too.

olm3ca commented 2 years ago

This is great, thank you!

CabbageSong commented 2 years ago

@mingming1222 Great! The sound and mic work, but actually I don't figure out how the magic code does with sof.

nullterminated commented 2 years ago

I was so happy you fixed this @mingming1222 and it worked great for about 2 weeks. But after a pacman -Syu today, I'm back to broken audio with the default "Stereo Output" and "Pro Audio" profiles. I 'diff sof-cmlda7219ma/ /usr/share/alsa/ucm2/sof-cmlda7219ma/' and there are no changes, so it seems like it's not finding/loading the conf now.

mingming1222 commented 2 years ago

@nullterminated Hi, alsa-lib was recently upgraded to v1.2.6.1, this version modified the configuration directory of ucm, you need to migrate the sof-cmlda7219ma configuration file to /usr/share/alsa/ucm2/conf.d/ . it works in fedora, archlinux should also work

nullterminated commented 2 years ago

@mingming1222 that worked beautifully! Thank you for the tip.

nullterminated commented 2 years ago

Once again, an update appears to have moved where the conf files need to be located. I'm looking for the fix on my own, but any tips are certainly appreciated.

edit: If I downgrade to alsa-lib 1.2.6.1 the config is found again.

heywoodlh commented 2 years ago

For those of us who can't downgrade alsa-lib (on Arch, don't have the old version in my cache), what is the proper fix? Because placing the files in /usr/share/alsa/ucm2/conf.d/ does not work anymore.

nullterminated commented 2 years ago

@heywoodlh If/when I find a solution, I'll be sure to share it. In the meantime, you can find the downgrade here,

https://archive.archlinux.org/packages/a/alsa-lib/

Download it, verify sig, pacman -U the zst.

nullterminated commented 2 years ago

Looks related,

https://github.com/alsa-project/alsa-ucm-conf/issues/168

nullterminated commented 2 years ago

The problem seems resolved now. I updated to extra/alsa-lib 1.2.7.2-1 and the config is no longer broken. Yay!

olm3ca commented 2 years ago

Excellent, thanks @nullterminated for following up!