dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Audio client support for VGA-switcheroo
@ 2012-05-10  7:08 Takashi Iwai
  2012-05-10  7:09 ` [PATCH 1/2] vga_switcheroo: Refactor using linked list Takashi Iwai
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Takashi Iwai @ 2012-05-10  7:08 UTC (permalink / raw)
  To: David Airlie; +Cc: dri-devel

Dave,

this is a small patch series to add the support for audio clients
to VGA switcheroo.  The background problem is that the HD-audio HDMI
controller of the discrete GPU is also disabled when the graphics core
is disabled by vga-switcheroo.  This leads to a long stall of the
audio driver, or at worst, it Oopses.
      https://bugzilla.kernel.org/show_bug.cgi?id=43155

I tried to work around it only in the audio driver side, but it
doesn't seem to help.  When the graphics is disabled, the whole PCI
entry can't be accessed any longer.  Even reading a config triggers an
Oops.  So, the only option is to implement the VGA switcheroo client
for the audio.

The first patch refactors the vga-switcheroo code to be ready to
accept for more than two clients.  It's mostly a clean up using linked
lists.  The next patch implements the audio client registration.

BTW, if these patches are OK, the question remains how to merge.
Obviously I'd need more patches for HD-audio driver based on the new
vga_switcheroo_register_audio_client().  One option is to apply these
patches to a persistent branch (i.e. no rebase planned) of your tree
and pull it to my tree with more patches for HD-audio.
Does it sound good for you?


thanks,

Takashi

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

end of thread, other threads:[~2012-05-10 19:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10  7:08 [PATCH 0/2] Audio client support for VGA-switcheroo Takashi Iwai
2012-05-10  7:09 ` [PATCH 1/2] vga_switcheroo: Refactor using linked list Takashi Iwai
2012-05-10  7:10 ` [PATCH 2/2] vga_switcheroo: Add the support for audio clients Takashi Iwai
2012-05-10  8:23   ` Paul Menzel
2012-05-10  8:44     ` Takashi Iwai
2012-05-10 10:40   ` Dave Airlie
2012-05-10 11:43     ` Takashi Iwai
2012-05-10 11:20   ` Alan Cox
2012-05-10 11:42     ` Takashi Iwai
2012-05-10 18:42       ` Takashi Iwai
2012-05-10 19:05         ` Dave Airlie
2012-05-10 19:26           ` Takashi Iwai
2012-05-10  7:18 ` [PATCH 0/2] Audio client support for VGA-switcheroo Takashi Iwai

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