From patchwork Thu Mar 2 10:12:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris BREZILLON X-Patchwork-Id: 9599837 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 7C0E0600CB for ; Thu, 2 Mar 2017 10:20:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6155828576 for ; Thu, 2 Mar 2017 10:20:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 540212859B; Thu, 2 Mar 2017 10:20:43 +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.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham 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 5791728576 for ; Thu, 2 Mar 2017 10:20:42 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 88DC1266FA9; Thu, 2 Mar 2017 11:12:26 +0100 (CET) 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 0A971266FBF; Thu, 2 Mar 2017 11:12:23 +0100 (CET) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by alsa0.perex.cz (Postfix) with ESMTP id 40DDE266A8A for ; Thu, 2 Mar 2017 11:12:18 +0100 (CET) Received: by mail.free-electrons.com (Postfix, from userid 110) id 22862206EB; Thu, 2 Mar 2017 11:12:18 +0100 (CET) Received: from bbrezillon.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id D9D9C2055D; Thu, 2 Mar 2017 11:12:07 +0100 (CET) From: Boris Brezillon To: Liam Girdwood , Mark Brown , Lars-Peter Clausen , alsa-devel@alsa-project.org Date: Thu, 2 Mar 2017 11:12:06 +0100 Message-Id: <1488449526-16850-1-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 2.7.4 Cc: Eric Anholt , Boris Brezillon Subject: [alsa-devel] [PATCH] conf/cards: add VC4-HDMI card 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 Add a conf file for the VC4-HDMI sound card. Signed-off-by: Boris Brezillon --- Hi, This patch is adding a card config file for the audio sound card whose driver has been submitted here [1] (not accepted yet). Since I am a total newbie to the alsa world, I'd like to get some feedback on this patch. Also, the card only supports 2 to 8 channels, and I wonder if we should add a plug element to support mono streams, and where this element should be added (after or before the iec958 element). Regards, Boris [1]https://www.spinics.net/lists/arm-kernel/msg565182.html src/conf/cards/Makefile.am | 1 + src/conf/cards/aliases.conf | 1 + src/conf/cards/vc4-hdmi.conf | 64 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 src/conf/cards/vc4-hdmi.conf diff --git a/src/conf/cards/Makefile.am b/src/conf/cards/Makefile.am index e8b530e80a8f..00999f0186d6 100644 --- a/src/conf/cards/Makefile.am +++ b/src/conf/cards/Makefile.am @@ -51,6 +51,7 @@ cfg_files = aliases.conf \ TRID4DWAVENX.conf \ USB-Audio.conf \ YMF744.conf \ + vc4-hdmi.conf \ VIA686A.conf \ VIA8233.conf \ VIA8233A.conf \ diff --git a/src/conf/cards/aliases.conf b/src/conf/cards/aliases.conf index 60f9d26974fd..18a920f41e46 100644 --- a/src/conf/cards/aliases.conf +++ b/src/conf/cards/aliases.conf @@ -56,6 +56,7 @@ AV200 cards.CMI8788 CMI8786 cards.CMI8788 CMI8787 cards.CMI8788 pistachio cards.pistachio-card +VC4-HDMI cards.vc4-hdmi diff --git a/src/conf/cards/vc4-hdmi.conf b/src/conf/cards/vc4-hdmi.conf new file mode 100644 index 000000000000..027804a145d1 --- /dev/null +++ b/src/conf/cards/vc4-hdmi.conf @@ -0,0 +1,64 @@ +# +# Configuration for the VC4-HDMI sound card using software IEC958 +# subframe conversion +# + + + +vc4-hdmi.pcm.front.0 { + @args [ CARD ] + @args.CARD { + type string + } + type hw + card $CARD +} + +# default with dmix +vc4-hdmi.pcm.default { + @args [ CARD ] + @args.CARD { + type string + } + type asym + playback.pcm { + type plug + slave.pcm { + @func concat + strings [ "dmix:" $CARD ] + } + } +} + + + +vc4-hdmi.pcm.iec958.0 { + @args [ CARD AES0 AES1 AES2 AES3 ] + @args.CARD { + type string + } + @args.AES0 { + type integer + } + @args.AES1 { + type integer + } + @args.AES2 { + type integer + } + @args.AES3 { + type integer + } + type iec958 + slave { + format IEC958_SUBFRAME_LE + pcm { + type plug + slave.pcm { + type hw + card $CARD + } + } + } + status [ $AES0 $AES1 $AES2 $AES3 ] +}