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

Internal speakers randomly crashes on Voxel (Acer Chromebook Spin 713-3W Tiger Lake) #2

Closed
nhanb opened this issue Jun 6, 2023 · 9 comments

Comments

@nhanb
Copy link

nhanb commented Jun 6, 2023

I'm on Arch Linux kernel 6.3.6, using pipewire-pulse and KDE. After running this script, the audio devices show up, but if I choose the internal speakers as output then it usually plays sound normally for a while then randomly crashes: sometimes it repeats the last sound indefinitely, sometimes it just stops playing sound at all. Running systemctl --user restart wireplumber makes it work again but it'll eventually bug out the same way. Plugged in headphones and HDMI out seem to work just fine though.

Error messages during startup:

$ journalctl -b -p3 -f
Jun 06 21:30:06 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
Jun 06 21:30:06 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
Jun 06 21:30:06 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
Jun 06 21:30:06 tiger kernel:  DMIC16kHz: ASoC: error at __soc_pcm_hw_params on DMIC16kHz: -22
Jun 06 21:30:06 tiger kernel:  DMIC16kHz: ASoC: error at dpcm_fe_dai_hw_params on DMIC16kHz: -22
Jun 06 21:30:06 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
Jun 06 21:30:06 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
Jun 06 21:30:06 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
Jun 06 21:30:06 tiger kernel:  DMIC16kHz: ASoC: error at __soc_pcm_hw_params on DMIC16kHz: -22
Jun 06 21:30:06 tiger kernel:  DMIC16kHz: ASoC: error at dpcm_fe_dai_hw_params on DMIC16kHz: -22

Log messages when the crash happens:

Jun 06 21:35:37 tiger pipewire[992]: spa.alsa: hw:sofrt5682: (0 missed) snd_pcm_avail after recover: Broken pipe
Jun 06 21:35:38 tiger pipewire[992]: pw.link: 0x55b7df2fd8e0: port 0x55b7df2d93d0 can't set io:1 (Spa:Enum:IO:Buffers): Input/output error
Jun 06 21:35:43 tiger pipewire[992]: spa.alsa: hw:sofrt5682: (46 missed) snd_pcm_avail after recover: Broken pipe

More info of my system:

$ lspci -k | grep -A1 audio
00:1f.3 Multimedia audio controller: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 20)
	DeviceName: Multimedia audio controller
	Kernel driver in use: sof-audio-pci-intel-tgl
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofrt5682 [sof-rt5682], device 0: smart373-spk (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofrt5682 [sof-rt5682], device 1: Headset (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofrt5682 [sof-rt5682], device 2: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofrt5682 [sof-rt5682], device 3: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofrt5682 [sof-rt5682], device 4: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofrt5682 [sof-rt5682], device 5: HDMI4 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
@WeirdTreeThing
Copy link
Owner

WeirdTreeThing commented Jun 6, 2023

This is a known issue that affects a small amount of tgl devices. The only known workaround is to use pulseaudio instead of pipewire. pipewire-media-session instead of pipewire might also work but no one has tested that yet.

@nhanb
Copy link
Author

nhanb commented Jun 6, 2023

pipewire-media-session instead of pipewire might also work but no one has tested that yet.

Consider it tested then: I still get the same problem after replacing wireplumber with pipewire-media-session :(

The only known workaround is to use pulseaudio instead of pipewire.

I've tried to do that but seems impossible for my use case (Arch's kwin package requires pipewire). Guess I'll have to live with it for now. Thanks for letting me know the state of things anyway.

Is there a relevant upstream bug ticket that I can follow?

@WeirdTreeThing
Copy link
Owner

WeirdTreeThing commented Jun 6, 2023

I've tried to do that but seems impossible for my use case (Arch's kwin package requires pipewire).

Just remove pipewire-pulse and install pulseaudio.

Is there a relevant upstream bug ticket that I can follow?

Not that I know of.

@nhanb
Copy link
Author

nhanb commented Jun 10, 2023

Just remove pipewire-pulse and install pulseaudio.

Huh, that seems to work so far. Thanks!

@WeirdTreeThing
Copy link
Owner

WeirdTreeThing commented Aug 16, 2023

@nhanb switch back to pipewire and make sure you are using wireplumber and run the audio script again. It should be fixed now.

@nhanb
Copy link
Author

nhanb commented Aug 16, 2023

I've switched back to pipewire-pulse and although startup logs still show the same errors, things seem to work fine so far. I'll report back in a few days.

$ journalctl -b -p3 -f
Aug 16 16:06:51 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
Aug 16 16:06:51 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
Aug 16 16:06:51 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
Aug 16 16:06:51 tiger kernel:  DMIC16kHz: ASoC: error at __soc_pcm_hw_params on DMIC16kHz: -22
Aug 16 16:06:51 tiger kernel:  DMIC16kHz: ASoC: error at dpcm_fe_dai_hw_params on DMIC16kHz: -22
Aug 16 16:06:51 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
Aug 16 16:06:51 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
Aug 16 16:06:51 tiger kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
Aug 16 16:06:51 tiger kernel:  DMIC16kHz: ASoC: error at __soc_pcm_hw_params on DMIC16kHz: -22
Aug 16 16:06:51 tiger kernel:  DMIC16kHz: ASoC: error at dpcm_fe_dai_hw_params on DMIC16kHz: -22

@WeirdTreeThing
Copy link
Owner

Those errors are normal, you can ignore them.

@WeirdTreeThing
Copy link
Owner

@nhanb is it still working good?

@nhanb
Copy link
Author

nhanb commented Sep 8, 2023

Yeah everything seems fine. I don't daily drive the chromebook anymore, but the few times that I actually use it, nothing crashed.

Thanks for your work!

@nhanb nhanb closed this as completed Sep 8, 2023
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

2 participants