From: Takashi Iwai Subject: How to hook HDMI audio to vga-switcher? Date: Wed, 25 Apr 2012 10:36:37 +0200 Message-ID: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTP id F2554A0C3D for ; Wed, 25 Apr 2012 01:36:37 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Dave Airlie Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi Dave, in kernel bug 43155, we found out that the HDMI audio controller on AMD graphics is also disabled when the graphics chip is disabled via vga-switcher: https://bugzilla.kernel.org/show_bug.cgi?id=43155 This screws up the sound driver, takes too long time for boot. Since the audio controller/codec becomes active again once when the graphics is turned on, the best solution would be to add a client to vga-swicheroo for handling the status of the HDMI audio controller. But, looking at the current vga_switcheroo.c, it seems that the current code assumes only two clients and doesn't consider about non-graphics PCI entries. As a workaround, I'm thiking of a sort of slave client belonging to the video client, so that a callback like set_gpu_state() can be called. Or, if you have any better idea, let me know. thanks, Takashi