From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: [PATCH 2/2] vga_switcheroo: Add the support for audio clients Date: Thu, 10 May 2012 12:20:05 +0100 Message-ID: <20120510122005.4d98d8cf@pyramind.ukuu.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from lxorguk.ukuu.org.uk (lxorguk.ukuu.org.uk [81.2.110.251]) by gabe.freedesktop.org (Postfix) with ESMTP id 71C509E849 for ; Thu, 10 May 2012 04:17:16 -0700 (PDT) In-Reply-To: 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: Takashi Iwai Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Thu, 10 May 2012 09:10:16 +0200 Takashi Iwai wrote: > Add the support for audio clients to VGA-switcheroo for handling the > HDMI audio controller together with VGA switching. The id of the > audio controller should be given explicity at registration time unlike > the video controller. It would I think be a lot cleaner and more future proof to pass a struct hdmi_audio_switch_ops or some similar named object with an array of function pointers ? Alan