From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH 2/3] xen-sndfront: switch to the v2 driver Date: Mon, 19 Jan 2015 10:57:57 +0000 Message-ID: <54BCE335.7090304@citrix.com> References: <1421655574-10038-1-git-send-email-oleksandr.dmytryshyn@globallogic.com> <1421655574-10038-3-git-send-email-oleksandr.dmytryshyn@globallogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1421655574-10038-3-git-send-email-oleksandr.dmytryshyn@globallogic.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Oleksandr Dmytryshyn , xen-devel@lists.xen.org Cc: Takashi Iwai , Iurii Konovalenko , Jaroslav Kysela List-Id: xen-devel@lists.xenproject.org On 19/01/15 08:19, Oleksandr Dmytryshyn wrote: > From: Iurii Konovalenko > > Now this driver registers an virtual sound card > and sends an PCM streams to the backend driver. > Backend driver is an user-space application and > uses ALSA with dmix plugin to play audio. > [...] > struct sndif_request_open { > - unsigned int dev_num; > - unsigned int card_num; > - unsigned int dev_type; > + struct alsa_hwparams hwparams; Don't put ALSA specific structures in the ABI. The protocol needs to be suitable for frontend drivers that aren't ALSA. David