From patchwork Mon Aug 7 07:43:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 9884857 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 5DF5560363 for ; Mon, 7 Aug 2017 09:30:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 519E828613 for ; Mon, 7 Aug 2017 09:30:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46D7628616; Mon, 7 Aug 2017 09:30:58 +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 622EB2862A for ; Mon, 7 Aug 2017 09:30:57 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4C60A2670B6; Mon, 7 Aug 2017 11:27:01 +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 A50F226705A; Mon, 7 Aug 2017 09:43:51 +0200 (CEST) Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by alsa0.perex.cz (Postfix) with ESMTP id B84C126703C for ; Mon, 7 Aug 2017 09:43:47 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id y15so4855856lfd.5 for ; Mon, 07 Aug 2017 00:43:47 -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=oZzVs672LiolYZb3vHd+O8TQInWH0yeSgLu4yIKEtugBPHyQpKO22poO6svFDDUopm D/3n70FtsmVCE6PbQ+7JIcN6A+GjUO939fuR5aEUbRVDvrGFUl6E9YvcIWZEkEFKzUy6 90q1gMcaLVo4FwStn/4ToZ7juFbpaeh9PS0eaq0T3KqT2VRLzMXIlq3piOFJdTJGBBij HR+MMqo0+HtDP+aXtwCxslWdbZBToXtqeoeHIqdihXT2Zqa1w0/d5SvUHrcY1duroI6R ZT0A9baOWQcgnPEUR6q/vfusG2ZhQzXdMkByjL/iG8kyPwWefrSzSJSpOJ4isxPlaQFb YIDg== 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=VCRzc09a5prg4Iz8egXcClVrqHyKNZ2pFqgFg+POKd6juM3T0g3fwlWRpOs81hk/9k CPd9Rn+r5RPyriQPHwonsdMU4kz4WD8WAXzcb2jOeRwi6bAMuNNSscYU74sm0AFuOnDj AxKLUDagSEn+ZyW2o8YVJlg6FFZLKSMd4n0VuXnkc7r+vvsmqjCnXOOTRDIMieNtwinr mk4LcH/SuUN8DkBBW6HFcuHjJvZol0ACO5ofWdW6p2Ow8s7yqo/iRxATO5I6kimwtLxZ DZ6rmVnII/jo/QSIMnyR9Q9xJkRnCE+IPwzhd6vxOUMHruEYvZUzDJnYFrrmsQcwlzfv kzHA== X-Gm-Message-State: AHYfb5gqZ+wRmyVPHccG2Hk/uKjaZLIVH/SPTmJ9nC3pQhGvAyMPdkce 7j9vPcIvL7jO6aKi X-Received: by 10.25.72.16 with SMTP id v16mr2675910lfa.113.1502091826955; Mon, 07 Aug 2017 00:43:46 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-52.209.223.85.sovam.net.ua. [85.223.209.52]) by smtp.gmail.com with ESMTPSA id f136sm399062lff.34.2017.08.07.00.43.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 00:43:46 -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 10:43:16 +0300 Message-Id: <1502091796-14413-12-git-send-email-andr2000@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502091796-14413-1-git-send-email-andr2000@gmail.com> References: <1502091796-14413-1-git-send-email-andr2000@gmail.com> X-Mailman-Approved-At: Mon, 07 Aug 2017 11:26:50 +0200 Cc: andr2000@gmail.com, Oleksandr Andrushchenko , tiwai@suse.com Subject: [alsa-devel] [PATCH 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/