Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* pulseaudio crash when unplugging hdmi while playing audio over hdmi on Cherry Trail devices
@ 2017-12-12 10:39 Hans de Goede
  2017-12-15  3:23 ` Tanu Kaskinen
  0 siblings, 1 reply; 3+ messages in thread
From: Hans de Goede @ 2017-12-12 10:39 UTC (permalink / raw)
  To: pulseaudio-discuss; +Cc: alsa-devel

Hi All,

First of all good news, with kernel 4.15-rc2 and alsa-lib 1.1.5
audio over hdmi works on Cherry Trail devices after selecting
the right output profile.

But when unplugging the hdmi cable pa dies. Running pa under
gdb says it gets killed with SIGKILL, so I think this is
another realtime issue where it gets killed by the kernel for
exceeding its CPU budget.

I've a log file of a run which ends with SIGKILL here:
https://fedorapeople.org/~jwrdegoede/pulseaudio-cht-hdmi.log

What stands out is a whole lot of errors / underruns after:
D: [pulseaudio] module-alsa-card.c: Jack 'HDMI/DP,pcm=1 Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port hdmi-output-1 to status no

So it seems that the problem is that pa still tries to use
the device after the unplug, even though it sees the unplug
before getting any errors.

Regards,

Hans
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

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

* Re: pulseaudio crash when unplugging hdmi while playing audio over hdmi on Cherry Trail devices
  2017-12-12 10:39 pulseaudio crash when unplugging hdmi while playing audio over hdmi on Cherry Trail devices Hans de Goede
@ 2017-12-15  3:23 ` Tanu Kaskinen
  2017-12-28 10:24   ` Tanu Kaskinen
  0 siblings, 1 reply; 3+ messages in thread
From: Tanu Kaskinen @ 2017-12-15  3:23 UTC (permalink / raw)
  To: General PulseAudio Discussion; +Cc: alsa-devel

On Tue, 2017-12-12 at 11:39 +0100, Hans de Goede wrote:
> Hi All,
> 
> First of all good news, with kernel 4.15-rc2 and alsa-lib 1.1.5
> audio over hdmi works on Cherry Trail devices after selecting
> the right output profile.
> 
> But when unplugging the hdmi cable pa dies. Running pa under
> gdb says it gets killed with SIGKILL, so I think this is
> another realtime issue where it gets killed by the kernel for
> exceeding its CPU budget.
> 
> I've a log file of a run which ends with SIGKILL here:
> https://fedorapeople.org/~jwrdegoede/pulseaudio-cht-hdmi.log
> 
> What stands out is a whole lot of errors / underruns after:
> D: [pulseaudio] module-alsa-card.c: Jack 'HDMI/DP,pcm=1 Jack' is now unplugged
> D: [pulseaudio] device-port.c: Setting port hdmi-output-1 to status no
> 
> So it seems that the problem is that pa still tries to use
> the device after the unplug, even though it sees the unplug
> before getting any errors.

PA keeps using the device, because the card has no better ports
available. I think it would be good to switch to the off profile in
this situation, but I think it would be more beneficial to finally fix
that infinite loop. I'll try to make a patch for that.

-- 
Tanu

https://www.patreon.com/tanuk
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

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

* Re: pulseaudio crash when unplugging hdmi while playing audio over hdmi on Cherry Trail devices
  2017-12-15  3:23 ` Tanu Kaskinen
@ 2017-12-28 10:24   ` Tanu Kaskinen
  0 siblings, 0 replies; 3+ messages in thread
From: Tanu Kaskinen @ 2017-12-28 10:24 UTC (permalink / raw)
  To: General PulseAudio Discussion; +Cc: Hans de Goede, alsa-devel

On Fri, 2017-12-15 at 05:23 +0200, Tanu Kaskinen wrote:
> On Tue, 2017-12-12 at 11:39 +0100, Hans de Goede wrote:
> > Hi All,
> > 
> > First of all good news, with kernel 4.15-rc2 and alsa-lib 1.1.5
> > audio over hdmi works on Cherry Trail devices after selecting
> > the right output profile.
> > 
> > But when unplugging the hdmi cable pa dies. Running pa under
> > gdb says it gets killed with SIGKILL, so I think this is
> > another realtime issue where it gets killed by the kernel for
> > exceeding its CPU budget.
> > 
> > I've a log file of a run which ends with SIGKILL here:
> > https://fedorapeople.org/~jwrdegoede/pulseaudio-cht-hdmi.log
> > 
> > What stands out is a whole lot of errors / underruns after:
> > D: [pulseaudio] module-alsa-card.c: Jack 'HDMI/DP,pcm=1 Jack' is now unplugged
> > D: [pulseaudio] device-port.c: Setting port hdmi-output-1 to status no
> > 
> > So it seems that the problem is that pa still tries to use
> > the device after the unplug, even though it sees the unplug
> > before getting any errors.
> 
> PA keeps using the device, because the card has no better ports
> available. I think it would be good to switch to the off profile in
> this situation, but I think it would be more beneficial to finally fix
> that infinite loop. I'll try to make a patch for that.

Patches submitted:
https://patchwork.freedesktop.org/patch/195092/
https://patchwork.freedesktop.org/patch/195091/
https://patchwork.freedesktop.org/patch/195093/

-- 
Tanu

https://www.patreon.com/tanuk
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

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

end of thread, other threads:[~2017-12-28 10:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-12 10:39 pulseaudio crash when unplugging hdmi while playing audio over hdmi on Cherry Trail devices Hans de Goede
2017-12-15  3:23 ` Tanu Kaskinen
2017-12-28 10:24   ` Tanu Kaskinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox