From patchwork Mon Aug 7 11:50:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 9885177 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C1EB060363 for ; Mon, 7 Aug 2017 11:53:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B368B28514 for ; Mon, 7 Aug 2017 11:53:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A28F62861F; Mon, 7 Aug 2017 11:53:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21E7D28514 for ; Mon, 7 Aug 2017 11:53:48 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BDE3C267222; Mon, 7 Aug 2017 13:51:48 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3CAA92671F2; Mon, 7 Aug 2017 13:51:47 +0200 (CEST) Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) by alsa0.perex.cz (Postfix) with ESMTP id C04B6267222 for ; Mon, 7 Aug 2017 13:51:09 +0200 (CEST) Received: by mail-lf0-f65.google.com with SMTP id t128so158466lff.3 for ; Mon, 07 Aug 2017 04:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=20jjEUdgwXGS30js6SrFZND0XPGvBv7c/TP2+bIdJPo=; b=pysDdyH7mcswn7k2hLWcHbETOERBpsLoejkrp84S+4185jesQB0lM+3X/g7rgi40Ur 6vUDOVRrCx22QRAafCKce6SX4uJ49Qs9izKia3t4gSNn9OWfyipdtKbrgEODgaTS+9LA AOLI7QEC0Dt7QQ8727LGnA3OYhtUZuDQhdkW1ueVraNkP1wXXfr+WNt4nUSmMyo98SqM LFy6rFhR+leE/mD88I8aHie1eZrnozDLqtPsewZRHWEX0b6d7vxnH07JHK4j+bcwoeDh TgIzNu571KjfQdeggRSZ+IdZH8VQU/sGc3wr3XmD02Ry0JIOGpDsPYkasSlDjuPqNa0T ZVhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=20jjEUdgwXGS30js6SrFZND0XPGvBv7c/TP2+bIdJPo=; b=sZL1EZYIczo4OKPhWmmq+FCkiHo89AXDRnEZralQvl1kZxwZnJf/gUlFOw9wzeCyN3 ovWnk9dSJe8VCFM4WJ4q9DB2FemDgsrs0h/xyMD8zwZsF6Kcb2TWG1j61Oj6aDthtPba gTVB/xBbRWVFDaTeMnHF2e9EgxuZljcGS0AGsqIAfCJduT+U1YgBFLWvhpyz5L1X8IYZ 9YwHQlKFddwPJvvC77kHSfVBF2ewfEw13huamlI33hD2+xc/3/cViCSI67H0wqv6DZ+l lQhMnPhKQ1P27ADjw+BKty18UArvRcl9YMA8lU0GGEyuX7oL89qLTjquqq/0EqChFPPs jQ5g== X-Gm-Message-State: AHYfb5hMDHiGE2a/Ia+D/4xCGtx4kgp2Vwjym3Tb5otBV60yVOv38RwT nT2PpdTrTsR2VAcE X-Received: by 10.25.90.152 with SMTP id y24mr89826lfk.182.1502106668393; Mon, 07 Aug 2017 04:51:08 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-51.209.223.85.sovam.net.ua. [85.223.209.51]) by smtp.gmail.com with ESMTPSA id n88sm2844587lja.43.2017.08.07.04.51.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 04:51:07 -0700 (PDT) From: Oleksandr Andrushchenko To: alsa-devel@alsa-project.org, xen-devel@lists.xen.org, linux-kernel@vger.kernel.org Date: Mon, 7 Aug 2017 14:50:45 +0300 Message-Id: <1502106645-6731-12-git-send-email-andr2000@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502106645-6731-1-git-send-email-andr2000@gmail.com> References: <1502106645-6731-1-git-send-email-andr2000@gmail.com> Cc: andr2000@gmail.com, Oleksandr Andrushchenko , tiwai@suse.com Subject: [alsa-devel] [PATCH RESEND 11/11] ALSA: vsnd: Introduce Kconfig option to enable Xen PV sound X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Oleksandr Andrushchenko Introduce Kconfig option to enable Xen para-virtualized sound frontend driver. Also add sound frontend to the Makefile. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/Kconfig | 12 ++++++++++++ sound/drivers/Makefile | 2 ++ 2 files changed, 14 insertions(+) diff --git a/sound/drivers/Kconfig b/sound/drivers/Kconfig index 7144cc36e8ae..6b8fa6110ca3 100644 --- a/sound/drivers/Kconfig +++ b/sound/drivers/Kconfig @@ -235,4 +235,16 @@ config SND_AC97_POWER_SAVE_DEFAULT See SND_AC97_POWER_SAVE for more details. +config SND_XEN_FRONTEND + tristate "Xen virtual sound front-end driver" + depends on SND_PCM && XEN + select XEN_XENBUS_FRONTEND + default n + help + This driver implements a front-end for the Xen + para-virtualized sound. + + To compile this driver as a module, choose M here: the module + will be called snd-xen-front. + endif # SND_DRIVERS diff --git a/sound/drivers/Makefile b/sound/drivers/Makefile index 1a8440c8b138..70ed920a030f 100644 --- a/sound/drivers/Makefile +++ b/sound/drivers/Makefile @@ -11,6 +11,7 @@ snd-portman2x4-objs := portman2x4.o snd-serial-u16550-objs := serial-u16550.o snd-virmidi-objs := virmidi.o snd-ml403-ac97cr-objs := ml403-ac97cr.o pcm-indirect2.o +snd-xen-front-objs := xen-front.o # Toplevel Module Dependency obj-$(CONFIG_SND_DUMMY) += snd-dummy.o @@ -21,5 +22,6 @@ obj-$(CONFIG_SND_MTPAV) += snd-mtpav.o obj-$(CONFIG_SND_MTS64) += snd-mts64.o obj-$(CONFIG_SND_PORTMAN2X4) += snd-portman2x4.o obj-$(CONFIG_SND_ML403_AC97CR) += snd-ml403-ac97cr.o +obj-$(CONFIG_SND_XEN_FRONTEND) += snd-xen-front.o obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/