From patchwork Mon Aug 7 12:22:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 9885273 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 629C660363 for ; Mon, 7 Aug 2017 12:26:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5419B28620 for ; Mon, 7 Aug 2017 12:26:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48FC528671; Mon, 7 Aug 2017 12:26:34 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, 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 8650228620 for ; Mon, 7 Aug 2017 12:26:33 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4C9DC2674A9; Mon, 7 Aug 2017 14:23:29 +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 EBF0C26746C; Mon, 7 Aug 2017 14:23:25 +0200 (CEST) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by alsa0.perex.cz (Postfix) with ESMTP id E415626726A for ; Mon, 7 Aug 2017 14:23:18 +0200 (CEST) Received: by mail-lf0-f66.google.com with SMTP id w199so218806lff.2 for ; Mon, 07 Aug 2017 05:23:18 -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=UDD6+Qr5FmXQQL2BdBNg5SA933VGteslc9T8H//F+WEffrmfQuB2lMR/2nkbBaZGdw L8/Sa8h+sLt7GBC3zrmm0lSt+YW2vIVA/jFUUB7enbdtzRzKTXFw7FL1V0aaxc8HTR0F AnjXEhuNQOsZXeNzgpuArKD2j6bphmmAOWqaKibJ3KyBsDxbzi3VjJzPpzoV5veGJYzu 1dIwlP5frOZTGEJWkZUMb3ez+jIVUArljz/tCs7k4kRbYRmckBIAOvDhiq0SU2ew0Waa SMq3XFxeXwLYV083E/GJRCD/MrBBo91yu/2qHA018CVMYOyzY50NPQlA9my9/PEFEGEb SlCA== 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=sgvKD1DEFfW6VDCcTLx2OpVknRfZ8xelMA28q7jDvuA+TyDtq5+QqRMO85PC26wh0J pyuRVgO92vXH0an0HunRh447Hj4iuGSWSsNdTxd2Qgi1cfhHxfiKPIbJwJBU+MKWHP8u WAG7QrYdN8QSCSQ+s/J22MFIwjWULEB89Ueib4oDdCu4i3dBIhDCRL2fU8Kq1JUOkM77 LtL42GEqU+4WJCy9b7LAjhP0WtOnhHd2UOxfnuj0cxz5+78X3U514Is+0lN1k6LU2ZTJ va+36cUbY3H5ix/mjVR+P8QvwDTvcU8YEZMmbrcZiSdnls4lY/peEvsrVCNgicRWLGqE dQ1g== X-Gm-Message-State: AHYfb5inOnXJrZMm/d8Uxy/ZNHN3SKZ3hDjLVlUDLDr5S8Xy6Kba3lMG iKjN65x6Us+6le8y X-Received: by 10.25.159.79 with SMTP id i76mr126186lfe.228.1502108597466; Mon, 07 Aug 2017 05:23:17 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-53.209.223.85.sovam.net.ua. [85.223.209.53]) by smtp.gmail.com with ESMTPSA id m143sm1031821lfm.77.2017.08.07.05.23.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 05:23:16 -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 15:22:57 +0300 Message-Id: <1502108577-8099-13-git-send-email-andr2000@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502108577-8099-1-git-send-email-andr2000@gmail.com> References: <1502108577-8099-1-git-send-email-andr2000@gmail.com> Cc: andr2000@gmail.com, Oleksandr Andrushchenko , tiwai@suse.com Subject: [alsa-devel] [PATCH RESEND1 12/12] 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/