From patchwork Thu Mar 2 10:49:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris BREZILLON X-Patchwork-Id: 9600017 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 997B2600CB for ; Thu, 2 Mar 2017 10:55:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FE5528365 for ; Thu, 2 Mar 2017 10:55:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7485328524; Thu, 2 Mar 2017 10:55: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 7A2C428365 for ; Thu, 2 Mar 2017 10:55:42 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 31793266FDE; Thu, 2 Mar 2017 11:49:42 +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 92585266FE0; Thu, 2 Mar 2017 11:49:40 +0100 (CET) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by alsa0.perex.cz (Postfix) with ESMTP id E7D51266A8A for ; Thu, 2 Mar 2017 11:49:36 +0100 (CET) Received: by mail.free-electrons.com (Postfix, from userid 110) id 94C53207E3; Thu, 2 Mar 2017 11:49:35 +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 6368D20790; Thu, 2 Mar 2017 11:49:35 +0100 (CET) From: Boris Brezillon To: Takashi Iwai , alsa-devel@alsa-project.org Date: Thu, 2 Mar 2017 11:49:33 +0100 Message-Id: <1488451773-22010-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] [RESEND 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 Tested-by: Eric Anholt --- Hi, Sorry for the noise, but I didn't send this patch to the alsa-lib maintainer on my first attempt. 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 ] +}