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

Sound on Skylake #379

Open
simonheb opened this issue Aug 5, 2017 · 371 comments
Open

Sound on Skylake #379

simonheb opened this issue Aug 5, 2017 · 371 comments

Comments

@simonheb
Copy link

@simonheb simonheb commented Aug 5, 2017

This is to concentrate efforts and document progress on the sound issues related to skylake and GalliumOS. All other skylake users are asked to also contribute their logs and use this issue to document progress towards finding a solution.

I am runnning a plain GalliumOS 2.1 via chrx on a CAVE model (Asus C302CA).

Right after the install, the system looks as follows:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ lspci | grep  -P audio\|snd\|sound\|audio
00:1f.3 Multimedia audio controller: Intel Corporation Sunrise Point-LP HD Audio (rev 21)

$ dmesg | grep -P audio\|snd\|sound\|audio
[    4.433088] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    4.559255] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input7
[    4.559335] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input8
[    4.559421] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input9

My first step is trying out he solution @volfyd suggested for Caroline (#274 (comment)), I will post the result here.

@reynhout
Copy link
Member

@reynhout reynhout commented Aug 5, 2017

@simonheb You only have HDMI devices listed there, so the driver is not loaded properly.

If my notes are correct, CAVE should have a Maxim 98357A codec, driver skl_nau88l25_max98357a_i2s (the nau88l25 part is a headphone codec).

The first thing to check is which kernel you're running (uname -r). Unless you're on the testing repo, you'll probably have 4.8.17, which doesn't have the required modules.

To enable the testing repo:

sudo galliumos-repodist --enable testing
galliumos-update

You should get a 4.10.5 kernel package, which might be an improvement. But it'll be more interesting to test on a 4.11 or 4.12 kernel. Currently only 4.12.0 is available in the repo: sudo apt install linux-image-4.12.0-galliumos.

If you still have only HDMI devices in aplay -l, there might be something revealing in dmesg. Actually journalctl has most of the same info, with warnings and errors helpfully colorized...and apparently unhelpfully truncated, but you can use the left and right arrow keys to "scroll" the viewport. systemd, feh.

@simonheb
Copy link
Author

@simonheb simonheb commented Aug 5, 2017

@reynhout, thanks for your comments.

The output in the previous post was indeed produced on an 4.8.17 kernel. Now I followed your steps and booted into the 4.12.0 kernel.

Now aplay -l lists more, but apparently all still hdmi devices:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1

dmesg is rather quiet on sound/audio, giving more or less the same messages as on the other kernel (just one more hdmi line).
jounrnalctl gives no related highlighted errors. Only something about tpm_tis, bluetoothd, NetworkManager and ntpd.

Is there something I should look at via the shell in ChromeOS, e.g. to figure out which driver is needed?

In the post where volfyd got it working on Caroline, he mentioned some files he added to the system, which he seems to have gotten from ChromeOS. I assume the equivalent for CAVE would bet getting:

  • /usr/share/alsa/ucm/sklnau8825max/HiFi.conf
  • /usr/share/alsa/ucm/sklnau8825max/sklnau8825max.conf
  • /etc/modprobe.d/alsa-skl.conf
  • /etc/modprobe.d/alsa.conf
  • /lib/firmware/dfw_sst.bin

?

Other posts mentioning blackinsting snd-hda-intel. Anything to try there?

@reynhout
Copy link
Member

@reynhout reynhout commented Aug 5, 2017

@simonheb You can check the logs in ChromeOS, but the driver name might be different.

I'm not sure if copying files over will help -- I think you should see some noise in the logs well before those files become useful...though they might be needed for later stages of progress of course. Still, worth a try.

Re: blacklisting. It's possible there's a conflict, but I would expect to see some relevant log entries. Can't hurt to try either, although it will likely disable the HDMI devices, of course.

@simonheb
Copy link
Author

@simonheb simonheb commented Aug 5, 2017

Ok, thanks again @reynhout for the comments. Blacklisting snd-hda-intel seems to bring the issue to light:
w/o blacklisting it:

$ dmesg | grep snd -B 2 -A 2
[    3.172835] Bluetooth: L2CAP socket layer initialized
[    3.172842] Bluetooth: SCO socket layer initialized
[    3.188837] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.205698] media: Linux media interface: v0.10
[    3.209708] usbcore: registered new interface driver btusb

w/ blacklisting snd-hda-intel:

$ dmesg | grep snd -B 2 -A 2
[    3.311489] input: Elan Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-7/i2c-ELAN0000:00/input/input5
[    3.319982] iwlwifi 0000:01:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm
[    3.327879] snd_soc_skl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.332008] uvcvideo: Found UVC 1.00 device USB2.0 HD UVC WebCam (13d3:5679)
[    3.333514] uvcvideo 1-7:1.0: Entity type for entity Realtek Extended Controls Unit was not initialized!
--
[    3.677456] iwlwifi 0000:01:00.0 wlp1s0: renamed from wlan0
[    3.680975] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[    3.688197] snd_soc_skl 0000:00:1f.3: Direct firmware load for 9d70-CORE-COREBOOT-0-tplg.bin failed with error -2
[    3.688201] snd_soc_skl 0000:00:1f.3: tplg fw 9d70-CORE-COREBOOT-0-tplg.bin load failed with -2
[    3.688216] snd_soc_skl 0000:00:1f.3: Direct firmware load for dfw_sst.bin failed with error -2
[    3.688218] snd_soc_skl 0000:00:1f.3: Fallback tplg fw dfw_sst.bin load failed with -2
[    3.688219] snd_soc_skl 0000:00:1f.3: Failed to init topology!
[    3.688221] snd_soc_skl 0000:00:1f.3: ASoC: failed to probe component -2
[    3.688258] skl_n88l25_m98357a skl_n88l25_m98357a: ASoC: failed to instantiate card -2
[    3.696423] skl_n88l25_m98357a: probe of skl_n88l25_m98357a failed with error -2

I also copied the aforementioned files from ChromeOS and ran called alsaucm

$ sudo alsaucm -c sklnau8825max set _verb HiFi
ALSA lib main.c:344:(execute_sequence) unable to open ctl device 'hw:sklnau8825max'
ALSA lib main.c:1546:(set_verb_user) error: failed to initialize new use case: HiFi
alsaucm: error failed to set _verb=HiFi: No such device

As you suspected earlier this didn't really yield anything new.

When booting after the files were copied into the system, dmesg contains:

[    3.636850] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[    3.639588] iwlwifi 0000:01:00.0 wlp1s0: renamed from wlan0
[    3.645834] snd_soc_skl 0000:00:1f.3: Direct firmware load for 9d70-CORE-COREBOOT-0-tplg.bin failed with error -2
[    3.645838] snd_soc_skl 0000:00:1f.3: tplg fw 9d70-CORE-COREBOOT-0-tplg.bin load failed with -2
[    3.649295] snd_soc_skl 0000:00:1f.3: ASoC: invalid manifest size
[    3.651591] snd_soc_skl 0000:00:1f.3: tplg component load failed-22
[    3.652948] snd_soc_skl 0000:00:1f.3: Failed to init topology!
[    3.652950] snd_soc_skl 0000:00:1f.3: ASoC: failed to probe component -22
[    3.653011] skl_n88l25_m98357a skl_n88l25_m98357a: ASoC: failed to instantiate card -22
[    3.660528] skl_n88l25_m98357a: probe of skl_n88l25_m98357a failed with error -22
@simonheb
Copy link
Author

@simonheb simonheb commented Aug 5, 2017

I made some very mild progress on this, not sure whether this is good though as what is described below only works on the 4.10.5 kernel, even though @reynhout suggested to try the 4.12.0.

After reading that the hardware is similar on SENTRY, I went ahead and used the topology binary provided in #274 (comment) and placed it in /lib/firmware/dfw_sst.bin. This got me a little further. More specifically, dmesg shows:

[ 1457.234035] snd_soc_skl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 1457.264801] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[ 1457.282043] nau8825 i2c-10508825:00: No 'mclk' clock found, assume MCLK is managed externally
[ 1457.296992] snd_soc_skl 0000:00:1f.3: Direct firmware load for 9d70-CORE-COREBOOT-0-tplg.bin failed with error -2
[ 1457.296998] snd_soc_skl 0000:00:1f.3: tplg fw 9d70-CORE-COREBOOT-0-tplg.bin load failed with -2
[ 1457.297118] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297122] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297125] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297139] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297142] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297145] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297160] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297163] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297166] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[ 1457.297376] snd_soc_skl 0000:00:1f.3: ASoC: Parent card not yet available,Do not add new widgets now
[ 1457.345873] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> System Pin mapping ok
[ 1457.345959] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> System Pin mapping ok
[ 1457.346023] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> Reference Pin mapping ok
[ 1457.346105] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> DMIC Pin mapping ok
[ 1457.346169] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> HDMI1 Pin mapping ok
[ 1457.346232] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> HDMI2 Pin mapping ok
[ 1457.346297] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> HDMI3 Pin mapping ok
[ 1457.346330] skl_n88l25_m98357a skl_n88l25_m98357a: HiFi <-> SSP0 Pin mapping ok
[ 1457.346955] skl_n88l25_m98357a skl_n88l25_m98357a: nau8825-hifi <-> SSP1 Pin mapping ok
[ 1457.347002] skl_n88l25_m98357a skl_n88l25_m98357a: dmic-hifi <-> DMIC01 Pin mapping ok
[ 1457.347054] skl_n88l25_m98357a skl_n88l25_m98357a: intel-hdmi-hifi1 <-> iDisp1 Pin mapping ok
[ 1457.347100] skl_n88l25_m98357a skl_n88l25_m98357a: intel-hdmi-hifi2 <-> iDisp2 Pin mapping ok
[ 1457.347142] skl_n88l25_m98357a skl_n88l25_m98357a: intel-hdmi-hifi3 <-> iDisp3 Pin mapping ok
[ 1457.349524] input: sklnau8825max Headset Jack as /devices/platform/skl_n88l25_m98357a/sound/card0/input7
[ 1457.349837] input: sklnau8825max HDMI/DP, pcm=4 Jack as /devices/platform/skl_n88l25_m98357a/sound/card0/input8
[ 1457.350032] input: sklnau8825max HDMI/DP, pcm=5 Jack as /devices/platform/skl_n88l25_m98357a/sound/card0/input9
[ 1457.350182] input: sklnau8825max HDMI/DP, pcm=6 Jack as /devices/platform/skl_n88l25_m98357a/sound/card0/input10

aplay -l now gives me these:

**** List of PLAYBACK Hardware Devices ****
card 0: sklnau8825max [sklnau8825max], device 0: Audio (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sklnau8825max [sklnau8825max], device 4: Hdmi1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sklnau8825max [sklnau8825max], device 5: Hdmi2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sklnau8825max [sklnau8825max], device 6: Hdmi3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

And I was able to hear a humming/beeping sound on my headphones when unmuting codec1_out in alsamixer (i hope i didn't break anything).

I'm not sure if i moved closer to or further from solving the issue for CAVE, any input on what to try next?

Update: I just booted into ChromeOS to confirm that I didn't break anything and it seems sound is still working fine from the hardware side.

Update 2: On the 4.9.4-galliumos-braswell kernel it works as on the 4.10.5 kernel, i.e. the drivers seems to get loaded, but other than humming/beeping on the headphones i get no sound. amixer lists the following items, in case anybody is able to learn from that what's going on:

amixer |grep -ivP Item\|mono\|channels\|front
Simple mixer control 'Headphone',0
  Capabilities: volume
  Limits: 0 - 63
Simple mixer control 'Headphone Bypass',0
  Capabilities: volume
  Limits: 0 - 15
Simple mixer control 'Headphone Crosstalk',0
  Capabilities: volume
  Limits: 0 - 255
Simple mixer control 'Headphone Jack',0
  Capabilities: pswitch pswitch-joined
  Capabilities: volume volume-joined
  Limits: 0 - 37
Simple mixer control 'Mic',0
  Capabilities: volume volume-joined
  Limits: 0 - 255
Simple mixer control 'ADC Decimation Rate',0
  Capabilities: enum
Simple mixer control 'BIQ Path Select',0
  Capabilities: enum
Simple mixer control 'DAC Oversampling Rate',0
  Capabilities: enum
Simple mixer control 'DACL Mux',0
  Capabilities: enum
Simple mixer control 'DACR Mux',0
  Capabilities: enum
Simple mixer control 'Headset Mic',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'Pin 5 Mux',0
  Capabilities: enum
Simple mixer control 'Pin 6 Mux',0
  Capabilities: enum
Simple mixer control 'Pin 7 Mux',0
  Capabilities: enum
Simple mixer control 'Spk',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec0_out mo codec0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec0_out mo dmic01_hifi_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec0_out mo media0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec1_out mo codec0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec1_out mo dmic01_hifi_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec1_out mo media0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'media0_out mo codec0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'media0_out mo dmic01_hifi_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'media0_out mo media0_in mi',0
  Capabilities: pswitch pswitch-joined

@PennRobotics
Copy link

@PennRobotics PennRobotics commented Aug 10, 2017

On a ThinkPad (SENTRY) with 2.1, I had messed around before trying to get sound to work (such as blacklisting snd_hda_intel) and implemented the steps @volfyd listed on #274, except trying to replace "adi" with "max", although I'm not even sure that would work or is the right chipset for this Chromebook. I admittedly don't know much of what I'm doing when it comes to kernel stuff. Here's my log:

~ > uname -r
4.12.0-galliumos

~ > galliumos-repodist
xenon-devel       (disabled)  GalliumOS "devel" packages
xenon-prerelease  (enabled)   GalliumOS "prerelease" packages
xenon-testing     (enabled)   GalliumOS "testing" packages

~ > aplay -l
aplay: device_list:268: no soundcards found...

~ > lspci | grep  -P audio\|snd\|sound\|audio
00:1f.3 Multimedia audio controller: Intel Corporation Sunrise Point-LP HD Audio (rev 21)

~ > dmesg | grep -P audio\|snd\|sound\|audio
[   14.792796] snd_soc_skl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   14.929469] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[   14.938491] snd_soc_skl 0000:00:1f.3: Direct firmware load for 9d70-CORE-COREBOOT-0-tplg.bin failed with error -2
[   14.938495] snd_soc_skl 0000:00:1f.3: tplg fw 9d70-CORE-COREBOOT-0-tplg.bin load failed with -2
[   14.940684] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940687] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940689] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940696] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940698] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940699] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940707] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940708] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940710] snd_soc_skl 0000:00:1f.3: Control load not supported 64:64:64
[   14.940772] snd_soc_skl 0000:00:1f.3: ASoC: Parent card not yet available,Do not add new widgets now
@LufyCZ
Copy link

@LufyCZ LufyCZ commented Aug 10, 2017

Got exactly the same output as @usfbrian on LARS

@simonheb simonheb mentioned this issue Aug 14, 2017
13 of 18 tasks complete
@azertyfun
Copy link

@azertyfun azertyfun commented Aug 16, 2017

I tried @volfyd's instructions to LARS running Arch, and things went very wrong. Please do not try to reproduce if you don't want to damage your hardware.

What I did:

  • I copied the caroline-audio files to my filesystem
    *Changed all references from sklnau8825adi to sklnau8825max in those file (including file names)
  • Ran sudo alsaucm -c sklnau8825max set _verb HiFi, which told me it couldn't find /usr/share/alsa/ucm/Acer-Lars-1.0-Lars
  • Copied sklnau8825max.conf to /usr/share/alsa/ucm/Acer-Lars-1.0-Lars/Acer-Lars-1.0-Lars.conf
  • Copied HiFi.conf to /usr/share/alsa/ucm/Acer-Lars-1.0-Lars/HiFi.conf
  • Re-ran alsaucm with success

I could now play audio, but it seems the hardware output was maxed out, regardless of my settings (in kde or alsa-mixer). Lowering software audio just made the sound very compressed, but still very loud.
I tried plugging in my headphones, but before I could get them to work, I smelled the unmistakable smell of something burning coming from my audio jack. The lower right corner of the laptop also became very hot.

As it turns out, it seems, on LARS at least, that the sound card was maxed out or something, and it was literally burning.

I don't have Chrome OS installed right now to assess whether or not the sound card still works.

I am baffled that it is possible to (potentially?) destroy hardware like that using software. The sound card should have shut down by the point I could smell it...

@RedTopSR20
Copy link

@RedTopSR20 RedTopSR20 commented Aug 21, 2017

I've got a CHELL, m7. If anyone needs me to do an experiment on my hardware, i'd be glad to help. Preferably not whatever @azertyfun did and literally burn my sound card.

I'm not knowledgeable enough to do any good on my own, but I can follow directions.

I'll be following this thread.

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Aug 21, 2017

@azertyfun how come that I am getting an error on Gallium when using your tut ? The output is on #274

@azertyfun
Copy link

@azertyfun azertyfun commented Aug 22, 2017

That's weird. Only thing I can think of is a missing HiFi.conf somewhere?

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Aug 22, 2017

@azertyfun: Could you please try to locate all HiFi.conf files on your system ?

@azertyfun
Copy link

@azertyfun azertyfun commented Aug 22, 2017

Mhm, I deleted them after I (probably) fried my sound card, but I'm pretty sure I had two unmodified HiFi.conf files at /usr/share/alsa/ucm/Acer-Lars-1.0-Lars/HiFi.conf and /usr/share/asla/ucm/sklnau8825max/HiFi.conf.

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Aug 22, 2017

Well I tried that, didn't work

@RiverCambria
Copy link

@RiverCambria RiverCambria commented Aug 24, 2017

Anyone make progress? I tried updating to newest linux kernel since I saw some release notes citing skylake audio driver compatibility but no dice.

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Aug 24, 2017

@RiverCambria Nope, everybody that is / would be able to do something is silent. I can't do anything without somebody pointing me into the right direction.

@moookino
Copy link

@moookino moookino commented Sep 1, 2017

is it possible somehow to use audio settings from ChromeOS?

@MrChromebox
Copy link

@MrChromebox MrChromebox commented Sep 1, 2017

@LufyCZ it's on our to do list, chill. This isn't our FT job, nor our #1 priority even for GalliumOS.

@moookino unfortunately the (much older) ChromeOS kernel and mailline Linux kernel are sufficiently different to where we can't simply move the drivers/settings/etc directly from ChromeOS to GalliumOS. If we could, we would have done that a long time ago :)

@RedTopSR20
Copy link

@RedTopSR20 RedTopSR20 commented Sep 2, 2017

@mattdevo

What's the best way to support GalliumOS? I don't have the knowledge to do anything about the Skylake audio issue, but I love GalliumOS and the doors it opens for me on my Chromebook.

Should I buy GalliumOS stickers? Lol. TELL ME HOW TO BE USEFUL

@RedTopSR20
Copy link

@RedTopSR20 RedTopSR20 commented Sep 5, 2017

@LufyCZ I bought a Sabrent USB audio adapter from Amazon for $8. It was plug and play with GalliumOS. It's going to be very useful until a fix is developed.

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Sep 6, 2017

Just tried out @azertyfun 's instructions, ready to turn off my CB as soon as I heard something (to not get my speakers damaged). After the reboot, I ran a test "alsaucm -c sklnau8825max set _verb HiFi", and I got the same exact output as he did (that the conf file Acer-Lars.... wasn't found). When I was typing the command to make the Acer-Lars... directory, I (by mistake) pressed backspace on an empty line. That normally makes a sound. Howewer, I just heard a very loud static-like sound, and almost jumped up with my heartbeat at double the normal speed. The files seem to do something, but I wasn't brave enough to continue testing. The speakers work fine in ChromeOS. This was tested on arch.

@azertyfun
Copy link

@azertyfun azertyfun commented Sep 8, 2017

Yes, I used my chromebook recently, and I think some kernel update or other enabled the speakers — I didn't do anything since last time, but the speakers seem to "work" (emphasis on the quotes).

It looks like the sound would be fine on maximum volume (aside from bursting your eardrums), and reducing the volume only compresses the sound (acceptable volume is at 2%, at which point it is nearly unrecognizable).

The good news is that means my sound card wasn't damaged from last time, which is good. If I find the time, I'll investigate; my guess is that the Caroline soundcard and LARS soundcard differ slightly, and finding the right ones would make everything work.

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Sep 8, 2017

Well we could try the LARS files from ChromeOS. Here are the files. Could you please test them out @azertyfun ?

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Sep 9, 2017

I GOT AUDIO TO WORK!!!!! Just copy over the files, reboot, and voilá :)

Edit: Just found out that at 100% it is the high static noise @azertyfun talked about, and when it is low it is highly compressed. It looks like that 20% = 100% in ChromeOS. When going lower it gets compressed. When higher, the sound goes from not-understandeable to high static. I tested it by manually setting the % in terminal and then using Gnomes built-in "speaker test"

@moookino
Copy link

@moookino moookino commented Sep 9, 2017

@LufyCZ, can u provide details about distribution, kernel, etc?

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Sep 9, 2017

@moookino I tested it on Arch. Kernel version is 4.12.10-1.

@Crowesesse
Copy link

@Crowesesse Crowesesse commented Sep 10, 2017

This process works for CAVE as well, don't think I've seen anyone post a success for that yet. I have CAVE working with the same files from #274, renamed things to sklnau8825max as others have mentioned. There is definitely an issue with the audio gain that I still haven't figured out how to fix. Output is far too loud. Can't have volume up more than a couple notches.

@RiverCambria
Copy link

@RiverCambria RiverCambria commented Sep 13, 2017

@LufyCZ I copied the files you posted but I get the following when trying to initialize:

alsaucm -c sklnau8825max set _verb HiFi
ALSA lib main.c:344:(execute_sequence) unable to open ctl device 'hw:sklnau8825max'
ALSA lib main.c:1546:(set_verb_user) error: failed to initialize new use case: HiFi
alsaucm: error failed to set _verb=HiFi: No such device

I have no sound devices now listed under volume control. Any suggestions?

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Sep 13, 2017

@RiverCambria are you on Gallium or on Arch ?

@giacomo-c
Copy link

@giacomo-c giacomo-c commented Aug 25, 2020

I ended up taking apart the laptop and removing the WP firmware screw, installing mrchromebox's uefi and reinstalling GalliumOS 3.1 since the kernel is already compiled with everything to work. The sound works right. I don't understand why it didn't work with just the legacy boot, though.

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Aug 25, 2020

Compiled the kernel again, with snd_soc_skl, and I've got progress. Don't know what I've done wrong last time.

The output devices show up now, although they still don't work. When selecting Headphones, I can hear a pop in the headphones, but other sound comes out. With the speakers, I don't even get the pop.

alsa-info.txt

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Oct 5, 2020

bump

@nebulakl
Copy link

@nebulakl nebulakl commented Oct 5, 2020

make sure you are using the correct firmware (/lib/firmware/intel/dsp_fw_release.bin). it should have a md5 of ec8d14d090393c6b0ca5257df222b243
alternatively you download the file here: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/intel/dsp_fw_release_v969.bin

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Oct 5, 2020

Done that, still no sound output.

@metaquanta
Copy link

@metaquanta metaquanta commented Oct 5, 2020

@LufyCZ

It sure looks like you're using the wrong topology file.

All this crap should not be happening:

snd_soc_skl 0000:00:1f.3: module 9BA00C83-CA12-4A83-943C-1FA2E82F9DDA id not populated
snd_soc_skl 0000:00:1f.3: ASoC: PRE_PMU: media0_in cpr 0 event failed: -5
snd_soc_skl 0000:00:1f.3: module 3C56505A-24D7-418F-BDDC-C1F5A3AC2AE0 id not populated
snd_soc_skl 0000:00:1f.3: ASoC: PRE_PMU: codec0_out mo event failed: -5
snd_soc_skl 0000:00:1f.3: module 9BA00C83-CA12-4A83-943C-1FA2E82F9DDA id not populated
snd_soc_skl 0000:00:1f.3: ASoC: PRE_PMU: dmic01_hifi_in cpr 3 event failed: -5
snd_soc_skl 0000:00:1f.3: module 3C56505A-24D7-418F-BDDC-C1F5A3AC2AE0 id not populated
snd_soc_skl 0000:00:1f.3: ASoC: PRE_PMU: media0_out mo event failed: -5
@LufyCZ
Copy link

@LufyCZ LufyCZ commented Oct 5, 2020

image

@giacomo-c
Copy link

@giacomo-c giacomo-c commented Oct 6, 2020

I get pretty similar errors and yet, somehow I have working sound: https://pastebin.com/SeEapt3a
What does your ucm setup look like?

@metaquanta
Copy link

@metaquanta metaquanta commented Oct 6, 2020

I guess it could also be ucm stuff. @giacomo-c, your timestamps definitely point at ucm or pulse stuff.
It was the <UUID> id not populated stuff that looked particularly suspicious which are now gone.

@LufyCZ could you try and make a habit of attaching an updated dmesg or alsa-info every time?

my ucm

which produce:

[    7.109709] snd_soc_skl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    7.112316] snd_soc_skl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    7.172450] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[    7.177145] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[    7.211101] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[    7.318845] Intel(R) Wireless WiFi driver for Linux
[    7.351893] snd_soc_skl 0000:00:1f.3: firmware: direct-loading firmware 9d70-COREv4-COREBOOT-0-tplg.bin
[    7.356221] snd_soc_skl 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred
[    7.382022] snd_soc_skl 0000:00:1f.3: firmware: direct-loading firmware intel/dsp_fw_release.bin
[    7.383086] iwlwifi 0000:01:00.0: firmware: direct-loading firmware iwlwifi-7265D-29.ucode
[    7.383096] iwlwifi 0000:01:00.0: Found debug destination: EXTERNAL_DRAM
[    7.383097] iwlwifi 0000:01:00.0: Found debug configuration: 0
[    7.383315] iwlwifi 0000:01:00.0: loaded firmware version 29.163394017.0 7265D-29.ucode op_mode iwlmvm
[    7.383332] iwlwifi 0000:01:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2)
[    7.383333] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[    7.403757] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 5:0
[    7.415138] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
[    7.415537] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 7:0
[    7.416063] skl_n88l25_s4567 skl_n88l25_s4567: snd-soc-dummy-dai <-> System Pin mapping ok
[    7.416339] skl_n88l25_s4567 skl_n88l25_s4567: snd-soc-dummy-dai <-> System Pin mapping ok
[    7.416602] skl_n88l25_s4567 skl_n88l25_s4567: snd-soc-dummy-dai <-> Reference Pin mapping ok
[    7.416916] skl_n88l25_s4567 skl_n88l25_s4567: snd-soc-dummy-dai <-> DMIC Pin mapping ok
[    7.417155] skl_n88l25_s4567 skl_n88l25_s4567: snd-soc-dummy-dai <-> HDMI1 Pin mapping ok
[    7.417403] skl_n88l25_s4567 skl_n88l25_s4567: snd-soc-dummy-dai <-> HDMI2 Pin mapping ok
[    7.417689] skl_n88l25_s4567 skl_n88l25_s4567: snd-soc-dummy-dai <-> HDMI3 Pin mapping ok
[    7.417702] skl_n88l25_s4567 skl_n88l25_s4567: multicodec <-> SSP0 Pin mapping ok
[    7.418158] skl_n88l25_s4567 skl_n88l25_s4567: nau8825-hifi <-> SSP1 Pin mapping ok
[    7.418161] skl_n88l25_s4567 skl_n88l25_s4567: dmic-hifi <-> DMIC01 Pin mapping ok
[    7.418165] skl_n88l25_s4567 skl_n88l25_s4567: intel-hdmi-hifi1 <-> iDisp1 Pin mapping ok
[    7.418168] skl_n88l25_s4567 skl_n88l25_s4567: intel-hdmi-hifi2 <-> iDisp2 Pin mapping ok
[    7.418171] skl_n88l25_s4567 skl_n88l25_s4567: intel-hdmi-hifi3 <-> iDisp3 Pin mapping ok
[    7.418296] skl_n88l25_s4567 skl_n88l25_s4567: ASoC: no sink widget found for codec0_lp_in
[    7.418297] skl_n88l25_s4567 skl_n88l25_s4567: ASoC: Failed to add route ssp0 Rx -> direct -> codec0_lp_in
[    7.418311] skl_n88l25_s4567 skl_n88l25_s4567: ASoC: source widget Capture overwritten
[    7.418320] skl_n88l25_s4567 skl_n88l25_s4567: ASoC: no source widget found for iDisp3_out
[    7.418321] skl_n88l25_s4567 skl_n88l25_s4567: ASoC: Failed to add route iDisp3_out -> direct -> iDisp3 Tx
[    7.418330] skl_n88l25_s4567 skl_n88l25_s4567: snd_soc_bind_card: disable_route_checks set, ignoring errors on add_routes
[    7.419485] input: sklnau8825adi Headset Jack as /devices/platform/skl_n88l25_s4567/sound/card0/input6
[    7.419579] input: sklnau8825adi HDMI/DP, pcm=4 Jack as /devices/platform/skl_n88l25_s4567/sound/card0/input7
[    7.419653] input: sklnau8825adi HDMI/DP, pcm=5 Jack as /devices/platform/skl_n88l25_s4567/sound/card0/input8
[    7.419893] input: sklnau8825adi HDMI/DP, pcm=6 Jack as /devices/platform/skl_n88l25_s4567/sound/card0/input9
@metaquanta
Copy link

@metaquanta metaquanta commented Oct 6, 2020

@LufyCZ @giacomo-c we think LARS and CAVE are the same wrt audio? @LufyCZ are you using seabios or tianocore?

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Oct 6, 2020

I'm using MrChromebox's UEFI firmware.

alsa-info.txt
dmesg.txt

@metaquanta
Copy link

@metaquanta metaquanta commented Oct 8, 2020

@LufyCZ have you tried disabling intel_iommu? MrChromebox says it shouldn't be a problem but I need to set intel_iommu=off in kernel command line to get sound on both CHELL and CAVE now.

@dzatenatskiy
Copy link

@dzatenatskiy dzatenatskiy commented Oct 8, 2020

@metaquanta Wow. Found your GitHub repository for Chell. I used them to fix the sound. Now it works. Thanks. Using Fedora 33 beta on an HP 13G1. But after the standby mode, the sound disappeared.

@metaquanta
Copy link

@metaquanta metaquanta commented Oct 9, 2020

@dzatenatskiy I'm glad you got it to work. That repo's a bit of an undocumented mess, not really ready for public consumption. I haven't had any problems wrt suspend. It could be a lot of things. Do all the controls still show up in alsamixer?

@LufyCZ
Copy link

@LufyCZ LufyCZ commented Oct 9, 2020

Looks like replacing the topology file actually worked, just had the headphone profile selected.

Sorry for that and thanks for helping!

@dzatenatskiy
Copy link

@dzatenatskiy dzatenatskiy commented Oct 9, 2020

@metaquanta
It happened once. Now the sound works after suspend. I have checked several times.

Fedora 33 with Gnome is very fast, faster than ChromeOS. I have six hours of battery life almost like ChromeOS. I configured the chromebook keyboard layout and now all the keys work correctly but only in Xorg. This does not work with Gnome Wayland.

@metaquanta
Copy link

@metaquanta metaquanta commented Oct 9, 2020

@dzatenatskiy , I do have a fix for that. https://github.com/metaquanta/soft_fn
deb here: https://github.com/metaquanta/soft_fn/releases/tag/v0.5

I've been using daily for months without issue. Works great in Wayland.

@metaquanta
Copy link

@metaquanta metaquanta commented Oct 9, 2020

Oh crap, Fedora... I don't have debs for that.

@iofq
Copy link

@iofq iofq commented Oct 26, 2020

@metaquanta Took the liberty of documenting the steps I took following your repo. Hope this can help someone, has only been tested a few times thus far.

FWIW whatever i had working broke for me as of Arch Linux 5.9.1 kernel. Audio seems to switch volumes but still comes out of speaker when inserting headphone jack.

Anyway:

https://github.com/iofq/chell_audio

@metaquanta
Copy link

@metaquanta metaquanta commented Oct 26, 2020

@iofq I have tested ucm switching with headphone jack insertion very little. I don't know how that was working for you, but Gallium's acpi scripts should work. (Depending on your UCM config).

I would try to set the ucm verb manually and/or look at pulseaudio's log.

alsaucm set _verb Headphones

and/or

Uncomment log-level = debug in /etc/pulse/daemon.conf
then run pulseaudio -k and finally journalctl --user -e to view the output.

@bhrich902
Copy link

@bhrich902 bhrich902 commented Nov 2, 2020

@metaquanta Took the liberty of documenting the steps I took following your repo. Hope this can help someone, has only been tested a few times thus far.

FWIW whatever i had working broke for me as of Arch Linux 5.9.1 kernel. Audio seems to switch volumes but still comes out of speaker when inserting headphone jack.

Anyway:

https://github.com/iofq/chell_audio

Thank you for these steps. I read through out this thread and couldn't put the steps together from the different posts and was almost about to ask someone if they could do what you did.

Anyway, just created this account to say thanks for the steps and everyone else for making it work. I now have sound working on a Fedora 33 install under Gnome 3.38.1 and the 5.8.16 kernel using an HP Chromebook 13 G1 (Chell).

@hammadfahim
Copy link

@hammadfahim hammadfahim commented Jan 22, 2021

@metaquanta Took the liberty of documenting the steps I took following your repo. Hope this can help someone, has only been tested a few times thus far.

FWIW whatever i had working broke for me as of Arch Linux 5.9.1 kernel. Audio seems to switch volumes but still comes out of speaker when inserting headphone jack.

Anyway:

https://github.com/iofq/chell_audio

Hi
for some reason i am unable to get any output on - lsmod | grep snd_soc_skl -
Tried Linux Mint and Ubuntu Latest , also tried latest kernals till 5.10.9 but still taht modules is missing .
any way to get it working ?

@metaquanta
Copy link

@metaquanta metaquanta commented Jan 22, 2021

There are two possibilities:
1- you don't have the module. If that's the case, just install a kernel that does.
2- you don't have snd_hda_intel blacklisted. If that's the case. put blacklist snd_hda_intel in a file in /etc/modprobe.d

@carchrae
Copy link

@carchrae carchrae commented Feb 14, 2021

specific fixes for the asus c302ca (CAVE), including sound: https://github.com/devendor/c302ca

quite pleased this worked and the sound seemed perfect in ubuntu 20.04 (fingers crossed)

@SparkyBoy006
Copy link

@SparkyBoy006 SparkyBoy006 commented Feb 21, 2021

Does anyone have stylus/S Pen support on Samsung Chromebook Pro (Caroline) running on Fedora? I recall it working before on Ubuntu or Fedora, but running with Fedora now, and it isn't working. Any help is appreciated.

@waitlamp
Copy link

@waitlamp waitlamp commented Mar 13, 2021

Does anyone have stylus/S Pen support on Samsung Chromebook Pro (Caroline) running on Fedora? I recall it working before on Ubuntu or Fedora, but running with Fedora now, and it isn't working. Any help is appreciated.

@SparkyBoy006 that's may due to you upgraded the UEFI firmware
see MrChromebox/firmware#216
make sure you firmware version is (or under than) 20200317 (4.11.2)

by the way, my Caroline audio devices not work on ubuntu 20.10.
I tried to copy some GalliumOS config files but not work.

Did you solve it on ubuntu?

thanks!

@dieseltravis
Copy link

@dieseltravis dieseltravis commented Apr 30, 2021

My sound was working great. Even to the point where I muted this issue. But after some updates and a reboot it isn't working again.

$ uname -r
4.16.18-galliumos5-pre1

$ galliumos-repodist
bismuth-devel               (disabled)  GalliumOS "devel" packages
bismuth-prerelease          (disabled)  GalliumOS "prerelease" packages
bismuth-testing             (disabled)  GalliumOS "testing" packages

$ aplay -l
aplay: device_list:270: no soundcards found...

$ lspci | grep  -P audio\|snd\|sound\|audio
00:1f.3 Multimedia audio controller: Intel Corporation Sunrise Point-LP HD Audio (rev 21)

$ dmesg | grep -P audio\|snd\|sound\|audio
[    6.357169] snd_soc_skl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    6.557642] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[    6.625135] snd_soc_skl 0000:00:1f.3: Direct firmware load for 9d70-CORE-COREBOOT-0-tplg.bin failed with error -2
[    6.625139] snd_soc_skl 0000:00:1f.3: tplg fw 9d70-CORE-COREBOOT-0-tplg.bin load failed with -2, falling back to dfw_sst.bin
[    6.625151] snd_soc_skl 0000:00:1f.3: loading /lib/firmware/dfw_sst.bin failed with error -22
[    6.625153] snd_soc_skl 0000:00:1f.3: Direct firmware load for dfw_sst.bin failed with error -22
[    6.625156] snd_soc_skl 0000:00:1f.3: Fallback tplg fw dfw_sst.bin load failed with -22
[    6.625160] snd_soc_skl 0000:00:1f.3: Failed to init topology!
[    6.625164] snd_soc_skl 0000:00:1f.3: ASoC: failed to probe component -22
[  186.905101] Modules linked in: cmac rfcomm ccm bnep lz4 lz4_compress zram intel_rapl x86_pkg_temp_thermal intel_powerclamp kvm_intel snd_skl_nau88l25_max98357a arc4 kvm snd_soc_dmic snd_soc_hdac_hdmi snd_soc_skl_ssp_clk joydev irqbypass crct10dif_pclmul crc32_pclmul iwlmvm ghash_clmulni_intel 8250_dw pcbc snd_soc_skl mac80211 snd_soc_skl_ipc snd_hda_ext_core snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_nau8825 snd_soc_max98357a snd_soc_acpi aesni_intel aes_x86_64 crypto_simd glue_helper cryptd snd_soc_core uvcvideo snd_hda_core videobuf2_vmalloc videobuf2_memops snd_compress videobuf2_v4l2 snd_pcm_dmaengine videobuf2_common snd_pcm_oss snd_mixer_oss iwlwifi videodev btusb snd_pcm btrtl btbcm btintel media bluetooth cfg80211 snd_seq_midi snd_seq_midi_event ecdh_generic snd_rawmidi snd_seq shpchp snd_seq_device
[  186.905187]  processor_thermal_device intel_lpss_pci intel_soc_dts_iosf intel_lpss snd_timer elan_i2c cros_ec_core snd mfd_core elants_i2c melfas_mip4 squashfs mac_hid int3403_thermal cros_kbd_led_backlight int340x_thermal_zone soundcore int3400_thermal chromeos_pstore acpi_thermal_rel sch_fq_codel coretemp ip_tables x_tables autofs4 btrfs xor zstd_decompress zstd_compress xxhash raid6_pq dm_mirror dm_region_hash dm_log uas usb_storage mmc_block i915 video i2c_algo_bit drm_kms_helper sdhci_pci cqhci syscopyarea sysfillrect sdhci sysimgblt fb_sys_fops pinctrl_sunrisepoint drm pinctrl_intel drm_panel_orientation_quirks
[  190.106355] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 5:0
[  190.106361] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
[  190.106365] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 7:0

$ amixer |grep -ivP Item\|mono\|channels\|front
amixer: Mixer attach default error: No such file or directory

$ inxi -Axx
Audio:     Card Intel Sunrise Point-LP HD Audio
           driver: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d70
           Sound: ALSA v: k4.16.18-galliumos5-pre1

This output doesn't look promising either:

$ sudo skylake-audio-helper reset
ALSA lib parser.c:1355:(get_card_long_name) no soundcards found...
ALSA lib main.c:432:(execute_sequence) unable to open ctl device 'hw:0'
ALSA lib main.c:536:(import_master_config) Unable to execute default sequence
ALSA lib main.c:946:(snd_use_case_mgr_open) error: failed to import Google-Lars-1.0-Lars use case configuration -2
alsaucm: error failed to open sound card Google-Lars-1.0-Lars: No such file or directory

My alsa-info.txt.

This is pretty different outputs from when I ran those commands previously:

Acer Chromebook 14 for Work (CP5-471) LARS with GalliumOS 3.1 also has popping when audio starts/stops, lots of distortion. I have the audio turned down to the first setting above mute. I'm a bit lost in this thread on what to try, but here is my system's info if that helps.

$ uname -r
4.16.18-galliumos

$ galliumos-repodist
bismuth-devel               (disabled)  GalliumOS "devel" packages
bismuth-prerelease          (disabled)  GalliumOS "prerelease" packages
bismuth-testing             (disabled)  GalliumOS "testing" packages

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sklnau8825max [sklnau8825max], device 0: Audio (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sklnau8825max [sklnau8825max], device 4: Hdmi1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sklnau8825max [sklnau8825max], device 5: Hdmi2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sklnau8825max [sklnau8825max], device 6: Hdmi3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ lspci | grep  -P audio\|snd\|sound\|audio
00:1f.3 Multimedia audio controller: Intel Corporation Sunrise Point-LP HD Audio (rev 21)

$ dmesg | grep -P audio\|snd\|sound\|audio
[    5.662620] snd_soc_skl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    6.235769] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[    6.309574] snd_soc_skl 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred
[    6.325068] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 5:0
[    6.325172] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
[    6.325275] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 7:0
[    6.325525] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> System Pin mapping ok
[    6.325557] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> System Pin mapping ok
[    6.325657] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> Reference Pin mapping ok
[    6.325692] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> DMIC Pin mapping ok
[    6.325719] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> HDMI1 Pin mapping ok
[    6.325747] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> HDMI2 Pin mapping ok
[    6.325785] skl_n88l25_m98357a skl_n88l25_m98357a: snd-soc-dummy-dai <-> HDMI3 Pin mapping ok
[    6.332513] input: sklnau8825max Headset Jack as /devices/platform/skl_n88l25_m98357a/sound/card0/input7
[    6.332845] input: sklnau8825max HDMI/DP, pcm=4 Jack as /devices/platform/skl_n88l25_m98357a/sound/card0/input8
[    6.333284] input: sklnau8825max HDMI/DP, pcm=5 Jack as /devices/platform/skl_n88l25_m98357a/sound/card0/input9
[    6.333606] input: sklnau8825max HDMI/DP, pcm=6 Jack as /devices/platform/skl_n88l25_m98357a/sound/card0/input10

$ amixer |grep -ivP Item\|mono\|channels\|front
Simple mixer control 'Headphone',0
  Capabilities: volume
  Limits: 0 - 63
Simple mixer control 'Headphone Bypass',0
  Capabilities: volume
  Limits: 0 - 15
Simple mixer control 'Headphone Crosstalk',0
  Capabilities: volume
  Limits: 0 - 255
Simple mixer control 'Headphone Jack',0
  Capabilities: pswitch pswitch-joined
  Capabilities: volume volume-joined
  Limits: 0 - 37
Simple mixer control 'Mic',0
  Capabilities: volume volume-joined
  Limits: 0 - 255
Simple mixer control 'ADC Decimation Rate',0
  Capabilities: enum
Simple mixer control 'BIQ Path Select',0
  Capabilities: enum
Simple mixer control 'DAC Oversampling Rate',0
  Capabilities: enum
Simple mixer control 'DACL Mux',0
  Capabilities: enum
Simple mixer control 'DACR Mux',0
  Capabilities: enum
Simple mixer control 'Headset Mic',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'Pin5-Port0 Mux',0
  Capabilities: enum
Simple mixer control 'Pin5-Port1 Mux',0
  Capabilities: enum
Simple mixer control 'Pin5-Port2 Mux',0
  Capabilities: enum
Simple mixer control 'Pin6-Port0 Mux',0
  Capabilities: enum
Simple mixer control 'Pin6-Port1 Mux',0
  Capabilities: enum
Simple mixer control 'Pin6-Port2 Mux',0
  Capabilities: enum
Simple mixer control 'Pin7-Port0 Mux',0
  Capabilities: enum
Simple mixer control 'Pin7-Port1 Mux',0
  Capabilities: enum
Simple mixer control 'Pin7-Port2 Mux',0
  Capabilities: enum
Simple mixer control 'Spk',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec0_out mo codec0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec0_out mo dmic01_hifi_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec0_out mo media0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec1_out mo codec0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec1_out mo dmic01_hifi_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'codec1_out mo media0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif5-0 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif5-1 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif5-2 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif6-0 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif6-1 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif6-2 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif7-0 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif7-1 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'hif7-2 Jack',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'media0_out mo codec0_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'media0_out mo dmic01_hifi_in mi',0
  Capabilities: pswitch pswitch-joined
Simple mixer control 'media0_out mo media0_in mi',0
  Capabilities: pswitch pswitch-joined

$ inxi -Axx
Audio:     Card Intel Sunrise Point-LP HD Audio
           driver: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d70
           Sound: Advanced Linux Sound Architecture v: k4.16.18-galliumos
@dieseltravis
Copy link

@dieseltravis dieseltravis commented Apr 30, 2021

And a reboot appears to have fixed the sound. 😩

@iofq
Copy link

@iofq iofq commented May 1, 2021

If you're having issues with reboots breaking audio, check the configuration tab in pavucontrol and make sure the correct working Profile is selected. Sometimes a kernel update, etc. will change the selection back to the default.

@loganlll
Copy link

@loganlll loganlll commented May 3, 2021

Has anyone gotten sound to work on Manjaro (uefi)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet