All of lore.kernel.org
 help / color / mirror / Atom feed
* Pulseaudio dropping GPU audio
@ 2021-07-24 21:50 Liam Hupfer
  2021-07-27 16:30 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Liam Hupfer @ 2021-07-24 21:50 UTC (permalink / raw)
  To: alsa-devel

Hello,

I’ve set up a Linux VM where I’m passing through an RX 580. I’m using the GPU
audio and my monitor’s audio jack. For some reason the Linux VM keeps losing
track of the audio output. It always shows up under `lspci' under ID `06:00.0'
using the `snd_hda_intel' driver, but `pulseaudio' (I also tried `pipewire',
same issue) keep losing it. Most times I can restart `pulseaudio' and it will
find the device again; occasionally, it takes multiple restarts.

I checked the Arch wiki and I found something[¹] on audio over HDMI (I’m using
DisplayPort, if that matters). I checked the device and it did report `Enable+'.
Even so, I added the kernel parameter `snd_hda_intel.enable_msi=1', but nothing
changed.

Here are some `journalctl --user -u pulseaudio' logs:
┌────
│ 20:37:31 host pulseaudio[2373]: ALSA woke us up to write new data to the device, but there was actually nothing to write.
│ 20:37:31 host pulseaudio[2373]: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
│ 20:37:31 host pulseaudio[2373]: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
└────

Anyone have any suggestions for troubleshooting? `pulseaudio'’s logs suggested
it might have to do with ALSA, so I asked for help here.

Thank you!

—Liam


[¹] <https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Slowed_down_audio_pumped_through_HDMI_on_the_video_card>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Pulseaudio dropping GPU audio
  2021-07-24 21:50 Pulseaudio dropping GPU audio Liam Hupfer
@ 2021-07-27 16:30 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2021-07-27 16:30 UTC (permalink / raw)
  To: Liam Hupfer; +Cc: alsa-devel

On Sat, 24 Jul 2021 23:50:09 +0200,
Liam Hupfer wrote:
> 
> Hello,
> 
> I’ve set up a Linux VM where I’m passing through an RX 580. I’m using the GPU
> audio and my monitor’s audio jack. For some reason the Linux VM keeps losing
> track of the audio output. It always shows up under `lspci' under ID `06:00.0'
> using the `snd_hda_intel' driver, but `pulseaudio' (I also tried `pipewire',
> same issue) keep losing it. Most times I can restart `pulseaudio' and it will
> find the device again; occasionally, it takes multiple restarts.
> 
> I checked the Arch wiki and I found something[¹] on audio over HDMI (I’m using
> DisplayPort, if that matters). I checked the device and it did report `Enable+'.
> Even so, I added the kernel parameter `snd_hda_intel.enable_msi=1', but nothing
> changed.
> 
> Here are some `journalctl --user -u pulseaudio' logs:
> ┌────
> │ 20:37:31 host pulseaudio[2373]: ALSA woke us up to write new data to the device, but there was actually nothing to write.
> │ 20:37:31 host pulseaudio[2373]: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
> │ 20:37:31 host pulseaudio[2373]: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
> └────

The message is likely a red herring and irrelevant from your problem.

You can try at first the direct playback with aplay (specify the
proper option to access without pulse plugin), and confirm that the
device is set up.  If aplay works (at least detects), then check more
verbose log of pulseaudio.


Takashi

> Anyone have any suggestions for troubleshooting? `pulseaudio'’s logs suggested
> it might have to do with ALSA, so I asked for help here.
> 
> Thank you!
> 
> —Liam
> 
> 
> [¹] <https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Slowed_down_audio_pumped_through_HDMI_on_the_video_card>
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-27 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-24 21:50 Pulseaudio dropping GPU audio Liam Hupfer
2021-07-27 16:30 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.