WeirdTreeThing / chromebook-linux-audio

Script to enable audio support on many Chrome devices
BSD 3-Clause "New" or "Revised" License
215 stars 39 forks source link

Some issues with CB512 (Sparky) #119

Open LZeugirdor opened 3 months ago

LZeugirdor commented 3 months ago

*Describe the bug**

  1. Microphone shows up in applications such as discord, however gnome doesn't seem to recognize it and there are a few display audio devices that show up in discord that don't exist physically.
  2. Audio is blown out, it peaks pretty hard at a certain volume, but somehow is difficult to hear. Something worked in ubuntu in kernel 5 I believe, maybe if possible there's a profile for this board or something that works?

Boardname Sparky

Logs Pipewire card 0 log: UCM available for card hw:0 UCM _alibpref=_ucm0001. Set UCM verb to HiFi Got PlaybackPCM for device HDMI3: _ucm0001.hw:sofglkrt5682max,7 Got PlaybackCTL for device HDMI3: _ucm0001.hw:sofglkrt5682max Got PlaybackPriority for device HDMI3: 700 Got CaptureCTL for device HDMI3: _ucm0001.hw:sofglkrt5682max Got JackControl for device HDMI3: HDMI/DP,pcm=7 Jack UCM file does not specify 'PlaybackChannels' for device HDMI3, assuming stereo. No _conflictingdevs for device HDMI3 No _supporteddevs for device HDMI3 Got PlaybackPCM for device HDMI2: _ucm0001.hw:sofglkrt5682max,6 Got PlaybackCTL for device HDMI2: _ucm0001.hw:sofglkrt5682max Got PlaybackPriority for device HDMI2: 600 Got CaptureCTL for device HDMI2: _ucm0001.hw:sofglkrt5682max Got JackControl for device HDMI2: HDMI/DP,pcm=6 Jack UCM file does not specify 'PlaybackChannels' for device HDMI2, assuming stereo. No _conflictingdevs for device HDMI2 No _supporteddevs for device HDMI2 Got PlaybackPCM for device HDMI1: _ucm0001.hw:sofglkrt5682max,5 Got PlaybackCTL for device HDMI1: _ucm0001.hw:sofglkrt5682max Got PlaybackPriority for device HDMI1: 500 Got CaptureCTL for device HDMI1: _ucm0001.hw:sofglkrt5682max Got JackControl for device HDMI1: HDMI/DP,pcm=5 Jack UCM file does not specify 'PlaybackChannels' for device HDMI1, assuming stereo. No _conflictingdevs for device HDMI1 No _supporteddevs for device HDMI1 Got CapturePCM for device Headset: _ucm0001.hw:sofglkrt5682max,1 Got PlaybackCTL for device Headset: _ucm0001.hw:sofglkrt5682max Got CaptureCTL for device Headset: _ucm0001.hw:sofglkrt5682max Got CaptureMixerElem for device Headset: Headset Mic Got CapturePriority for device Headset: 200 Got JackControl for device Headset: Headset Mic Jack UCM file does not specify 'CaptureChannels' for device Headset, assuming stereo. No _conflictingdevs for device Headset No _supporteddevs for device Headset Got CapturePCM for device Mic: _ucm0001.glk_stereo_in:sofglkrt5682max,99,0,1 Got PlaybackCTL for device Mic: _ucm0001.hw:sofglkrt5682max Got CaptureCTL for device Mic: _ucm0001.hw:sofglkrt5682max Got CapturePriority for device Mic: 100 Got CaptureChannels for device Mic: 2 No _conflictingdevs for device Mic No _supporteddevs for device Mic Got PlaybackPCM for device Headphones: _ucm0001.hw:sofglkrt5682max,1 Got PlaybackCTL for device Headphones: _ucm0001.hw:sofglkrt5682max Got PlaybackMixerElem for device Headphones: DAC1 Got PlaybackPriority for device Headphones: 200 Got CaptureCTL for device Headphones: _ucm0001.hw:sofglkrt5682max Got JackControl for device Headphones: Headphone Jack UCM file does not specify 'PlaybackChannels' for device Headphones, assuming stereo. No _conflictingdevs for device Headphones No _supporteddevs for device Headphones Got PlaybackPCM for device Speaker: _ucm0001.hw:sofglkrt5682max,0 Got PlaybackCTL for device Speaker: _ucm0001.hw:sofglkrt5682max Got PlaybackPriority for device Speaker: 100 Got CaptureCTL for device Speaker: _ucm0001.hw:sofglkrt5682max UCM file does not specify 'PlaybackChannels' for device Speaker, assuming stereo. No _conflictingdevs for device Speaker No _supporteddevs for device Speaker Found UCM profiles UCM mapping: HiFi: hw:sofglkrt5682max,7: sink dev HDMI3 UCM mapping: HiFi: hw:sofglkrt5682max,6: sink dev HDMI2 UCM mapping: HiFi: hw:sofglkrt5682max,5: sink dev HDMI1 UCM mapping: HiFi: hw:sofglkrt5682max,1: source dev Headset UCM mapping: HiFi: glk_stereo_in:sofglkrt5682max,99,0,1: source dev Mic UCM mapping: HiFi: hw:sofglkrt5682max,1: sink dev Headphones UCM mapping: HiFi: hw:sofglkrt5682max,0: sink dev Speaker Profile HiFi (Default), input=null, output=null priority=8000, supported=yes n_input_mappings=2, n_output_mappings=5 Input HiFi: hw:sofglkrt5682max,1: source Input HiFi: glk_stereo_in:sofglkrt5682max,99,0,1: source Output HiFi: hw:sofglkrt5682max,7: sink Output HiFi: hw:sofglkrt5682max,6: sink Output HiFi: hw:sofglkrt5682max,5: sink Output HiFi: hw:sofglkrt5682max,1: sink Output HiFi: hw:sofglkrt5682max,0: sink Set ucm verb to HiFi Trying _ucm0001.hw:sofglkrt5682max,7 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open '_ucm0001.hw:sofglkrt5682max,7' playback: 0x579f17481070 Maximum hw buffer size is 341 ms Set buffer size first (to 4800 samples), period size second (to 1200 samples). Trying _ucm0001.hw:sofglkrt5682max,6 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open '_ucm0001.hw:sofglkrt5682max,6' playback: 0x579f1747f610 Maximum hw buffer size is 341 ms Set buffer size first (to 4800 samples), period size second (to 1200 samples). Trying _ucm0001.hw:sofglkrt5682max,5 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open '_ucm0001.hw:sofglkrt5682max,5' playback: 0x579f17470eb0 Maximum hw buffer size is 341 ms Set buffer size first (to 4800 samples), period size second (to 1200 samples). Trying _ucm0001.hw:sofglkrt5682max,1 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open '_ucm0001.hw:sofglkrt5682max,1' playback: 0x579f1746b490 Maximum hw buffer size is 341 ms Set buffer size first (to 4800 samples), period size second (to 1200 samples). Trying _ucm0001.hw:sofglkrt5682max,0 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open '_ucm0001.hw:sofglkrt5682max,0' playback: 0x579f1746fe30 Maximum hw buffer size is 341 ms Set buffer size first (to 4800 samples), period size second (to 1200 samples). Trying _ucm0001.hw:sofglkrt5682max,1 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open '_ucm0001.hw:sofglkrt5682max,1' capture: 0x579f174716a0 Maximum hw buffer size is 341 ms Set buffer size first (to 4800 samples), period size second (to 1200 samples). Trying _ucm0001.glk_stereo_in:sofglkrt5682max,99,0,1 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open '_ucm0001.glk_stereo_in:sofglkrt5682max,99,0,1' capture: 0x579f174809c0 Maximum hw buffer size is 170 ms Set buffer size first (to 4800 samples), period size second (to 1200 samples). Profile HiFi supported. Successfully attached to mixer '_ucm0001.hw:sofglkrt5682max' ALSA alias mixers: _ucm0001.hw:0 = _ucm0001.hw:sofglkrt5682max UCM jack HDMI/DP,pcm=7 has_control=1 UCM jack HDMI/DP,pcm=6 has_control=1 UCM jack HDMI/DP,pcm=5 has_control=1 UCM jack Headphone has_control=1 UCM jack Headset Mic has_control=1 ALSA device close 0x579f17481070 ALSA device close 0x579f1747f610 ALSA device close 0x579f17470eb0 ALSA device close 0x579f1746b490 ALSA device close 0x579f1746fe30 ALSA device close 0x579f174716a0 ALSA device close 0x579f174809c0 Trying hw:0,0 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open 'hw:0,0' playback: 0x579f17476280 Maximum hw buffer size is 170 ms Set buffer size first (to 65536 samples), period size second (to 1024 samples). Device hw:0,0 doesn't support 64 channels, changed to 2. ALSA device close 0x579f17476280 Trying hw:0,1 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open 'hw:0,1' playback: 0x579f174776e0 Maximum hw buffer size is 170 ms Set buffer size first (to 65536 samples), period size second (to 1024 samples). Device hw:0,1 doesn't support 64 channels, changed to 2. ALSA device close 0x579f174776e0 Trying hw:0,1 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open 'hw:0,1' capture: 0x579f17478b20 Maximum hw buffer size is 170 ms Set buffer size first (to 65536 samples), period size second (to 1024 samples). Device hw:0,1 doesn't support 64 channels, changed to 2. ALSA device close 0x579f17478b20 Trying hw:0,5 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open 'hw:0,5' playback: 0x579f174791d0 snd_pcm_hw_params_set_format(Signed 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Float 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Float 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Little Endian in 3bytes) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Big Endian in 3bytes) failed: Invalid argument Maximum hw buffer size is 341 ms Set buffer size first (to 65536 samples), period size second (to 1024 samples). Device hw:0,5 doesn't support 64 channels, changed to 2. Device hw:0,5 doesn't support sample format s32le, changed to s16le. ALSA device close 0x579f174791d0 Trying hw:0,6 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open 'hw:0,6' playback: 0x579f1749a050 snd_pcm_hw_params_set_format(Signed 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Float 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Float 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Little Endian in 3bytes) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Big Endian in 3bytes) failed: Invalid argument Maximum hw buffer size is 341 ms Set buffer size first (to 65536 samples), period size second (to 1024 samples). Device hw:0,6 doesn't support 64 channels, changed to 2. Device hw:0,6 doesn't support sample format s32le, changed to s16le. ALSA device close 0x579f1749a050 Trying hw:0,7 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open 'hw:0,7' playback: 0x579f1749b400 snd_pcm_hw_params_set_format(Signed 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Float 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Float 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Little Endian in 3bytes) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Big Endian in 3bytes) failed: Invalid argument Maximum hw buffer size is 341 ms Set buffer size first (to 65536 samples), period size second (to 1024 samples). Device hw:0,7 doesn't support 64 channels, changed to 2. Device hw:0,7 doesn't support sample format s32le, changed to s16le. ALSA device close 0x579f1749b400 Trying hw:0,99 with SND_PCM_NO_AUTO_FORMAT ... ALSA device open 'hw:0,99' capture: 0x579f1749c7d0 snd_pcm_hw_params_set_format(Signed 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Float 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Float 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 32 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Little Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Big Endian) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Little Endian in 3bytes) failed: Invalid argument snd_pcm_hw_params_set_format(Signed 24 bit Big Endian in 3bytes) failed: Invalid argument Maximum hw buffer size is 170 ms Set buffer size first (to 65536 samples), period size second (to 1024 samples). Device hw:0,99 doesn't support 64 channels, changed to 4. Device hw:0,99 doesn't support sample format s32le, changed to s16le. ALSA device close 0x579f1749c7d0 Check device HDMI3 conformance with 0 other devices First device in combination, number 1 Add port [Out] HDMI3: HDMI / DisplayPort 3 Output Port [Out] HDMI3 direction output, priority 700 Adding profile HiFi to port [Out] HDMI3. Check device HDMI3 conformance with 0 other devices First device in combination, number 1 Port [Out] HDMI3 direction output, priority 700 ALSA device (null) roles: null Check device HDMI2 conformance with 0 other devices First device in combination, number 1 Add port [Out] HDMI2: HDMI / DisplayPort 2 Output Port [Out] HDMI2 direction output, priority 600 Adding profile HiFi to port [Out] HDMI2. Check device HDMI2 conformance with 0 other devices First device in combination, number 1 Port [Out] HDMI2 direction output, priority 600 ALSA device (null) roles: null Check device HDMI1 conformance with 0 other devices First device in combination, number 1 Add port [Out] HDMI1: HDMI / DisplayPort 1 Output Port [Out] HDMI1 direction output, priority 500 Adding profile HiFi to port [Out] HDMI1. Check device HDMI1 conformance with 0 other devices First device in combination, number 1 Port [Out] HDMI1 direction output, priority 500 ALSA device (null) roles: null Check device Headphones conformance with 0 other devices First device in combination, number 1 Add port [Out] Headphones: Headphones Port [Out] Headphones direction output, priority 200 Adding profile HiFi to port [Out] Headphones. Check device Headphones conformance with 0 other devices First device in combination, number 1 Port [Out] Headphones direction output, priority 200 Probing path 'DAC1' Probe of element 'DAC1' succeeded (volume=1, switch=0, enumeration=0, has_dB=1). Set up h/w volume using 'DAC1' for HiFi:[Out] Headphones ALSA device (null) roles: null Check device Speaker conformance with 0 other devices First device in combination, number 1 Add port [Out] Speaker: Speaker Port [Out] Speaker direction output, priority 100 Adding profile HiFi to port [Out] Speaker. Check device Speaker conformance with 0 other devices First device in combination, number 1 Port [Out] Speaker direction output, priority 100 ALSA device (null) roles: null Check device Headset conformance with 0 other devices First device in combination, number 1 Add port [In] Headset: Headset Microphone Port [In] Headset direction input, priority 200 Adding profile HiFi to port [In] Headset. Check device Headset conformance with 0 other devices First device in combination, number 1 Port [In] Headset direction input, priority 200 Probing path 'Headset Mic' Probe of element 'Headset Mic' succeeded (volume=0, switch=0, enumeration=0, has_dB=0). Path Headset Mic is not a volume or mute control ALSA device (null) roles: null Check device Mic conformance with 0 other devices First device in combination, number 1 Add port [In] Mic: Internal Microphone Port [In] Mic direction input, priority 100 Adding profile HiFi to port [In] Mic. Check device Mic conformance with 0 other devices First device in combination, number 1 Port [In] Mic direction input, priority 100 ALSA device (null) roles: null Pruned singleton availability group HDMI/DP,pcm=7 from port [Out] HDMI3 Pruned singleton availability group HDMI/DP,pcm=6 from port [Out] HDMI2 Pruned singleton availability group HDMI/DP,pcm=5 from port [Out] HDMI1 Pruned singleton availability group Headphone from port [Out] Headphones Pruned singleton availability group Headset Mic from port [In] Headset Found 5 jacks. Jack 'Headphone Jack' is now unplugged Profile HiFi available unknown -> yes Profile pro-audio available yes -> unknown Jack 'Headset Mic Jack' is now unplugged Jack 'HDMI/DP,pcm=5 Jack' is now unplugged Jack 'HDMI/DP,pcm=6 Jack' is now unplugged Jack 'HDMI/DP,pcm=7 Jack' is now unplugged activate profile: HiFi (1) Set UCM verb to HiFi Updating mixer path for HiFi: [Out] HDMI3 Updating mixer path for HiFi: [Out] HDMI2 Updating mixer path for HiFi: [Out] HDMI1 Updating mixer path for HiFi: [Out] Headphones Updating mixer path for HiFi: [Out] Speaker Updating mixer path for HiFi: [In] Headset Updating mixer path for HiFi: [In] Mic Check device HDMI3 conformance with 0 other devices First device in combination, number 1 Port [Out] HDMI3 direction output, priority 700 Adding profile HiFi to port [Out] HDMI3. Device: HDMI / DisplayPort 3 Output mapping 'HDMI / DisplayPort 3 Output' (HiFi: hw:sofglkrt5682max,7: sink). Enable ucm device HDMI3 Check device HDMI2 conformance with 0 other devices First device in combination, number 1 Port [Out] HDMI2 direction output, priority 600 Adding profile HiFi to port [Out] HDMI2. Device: HDMI / DisplayPort 2 Output mapping 'HDMI / DisplayPort 2 Output' (HiFi: hw:sofglkrt5682max,6: sink). Enable ucm device HDMI2 Check device HDMI1 conformance with 0 other devices First device in combination, number 1 Port [Out] HDMI1 direction output, priority 500 Adding profile HiFi to port [Out] HDMI1. Device: HDMI / DisplayPort 1 Output mapping 'HDMI / DisplayPort 1 Output' (HiFi: hw:sofglkrt5682max,5: sink). Enable ucm device HDMI1 Check device Headphones conformance with 0 other devices First device in combination, number 1 Port [Out] Headphones direction output, priority 200 Adding profile HiFi to port [Out] Headphones. Device: Headphones mapping 'Headphones' (HiFi: hw:sofglkrt5682max,1: sink). Enable ucm device Headphones Activating path DAC1 Path DAC1 (null), direction=1, priority=0, probed=yes, supported=yes, has_mute=no, has_volume=yes, has_dB=yes, min_volume=0, max_volume=87, min_dB=-65.25, max_dB=0 Element 'DAC1', direction=1, switch=0, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x6, n_channels=2, override_map=00 Hardware volume ranges from -65.25 dB to 0.00 dB. Fixing base volume to 0.00 dB Using hardware volume control. Hardware dB scale supported. Driver does not support hardware mute control, falling back to software mute control. New hardware volume: min:65536 max:65536 0: 65536 1: 65536 Check device Speaker conformance with 0 other devices First device in combination, number 1 Port [Out] Speaker direction output, priority 100 Adding profile HiFi to port [Out] Speaker. Device: Speaker mapping 'Speaker' (HiFi: hw:sofglkrt5682max,0: sink). Enable ucm device Speaker Check device Headset conformance with 0 other devices First device in combination, number 1 Port [In] Headset direction input, priority 200 Adding profile HiFi to port [In] Headset. Device: Headset Microphone mapping 'Headset Microphone' (HiFi: hw:sofglkrt5682max,1: source). Enable ucm device Headset Driver does not support hardware volume control, falling back to software volume control. Driver does not support hardware mute control, falling back to software mute control. Check device Mic conformance with 0 other devices First device in combination, number 1 Port [In] Mic direction input, priority 100 Adding profile HiFi to port [In] Mic. Device: Internal Microphone mapping 'Internal Microphone' (HiFi: glk_stereo_in:sofglkrt5682max,99,0,1: source). Enable ucm device Mic ELD info empty (for device=7) ELD device found for port [Out] HDMI3 (7). ELD info empty (for device=6) ELD device found for port [Out] HDMI2 (6). ELD info empty (for device=5) ELD device found for port [Out] HDMI1 (5). No ELD device found for port [Out] Headphones (1). No ELD device found for port [Out] Speaker (0). No ELD device found for port [In] Headset (1). No ELD device found for port [In] Mic (99). card 0: profiles:3 devices:14 ports:7 properties: (8) use-ucm = "true" verbose = "true" alsa.card = "0" alsa.card_name = "sof-glkrt5682max" alsa.long_card_name = "Google-Sparky-rev5" alsa.driver_name = "snd_soc_sst_glk_rt5682_max98357a" device.string = "0" device.description = "sof-glkrt5682max"

WeirdTreeThing commented 3 months ago

1: It's a gnome bug, doesn't happen on any other DE. 2: I can try on my device with the same audio codec.

LZeugirdor commented 3 months ago

1: It's a gnome bug, doesn't happen on any other DE. 2: I can try on my device with the same audio codec.

I can try xfce then, I can't use kde because it doesn't show charging/discharging or plug status properly and xfce is the only other de that has worked in that regard iirc.

Is there any other logs or anything I can provide?

WeirdTreeThing commented 3 months ago

I can try xfce then, I can't use kde because it doesn't show charging/discharging or plug status properly and xfce is the only other de that has worked in that regard iirc.

FWIW, seems like plasma 6 fixed that issue

Is there any other logs or anything I can provide?

There shouldn't be anything, unless I am unable to reproduce the issue.