From: Takashi Iwai <tiwai@suse.de>
To: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Eric Anholt <eric@anholt.net>, alsa-devel@alsa-project.org
Subject: Re: [RESEND PATCH] conf/cards: add VC4-HDMI card
Date: Mon, 20 Mar 2017 12:06:11 +0100 [thread overview]
Message-ID: <s5hinn4w6l8.wl-tiwai@suse.de> (raw)
In-Reply-To: <1488451773-22010-1-git-send-email-boris.brezillon@free-electrons.com>
On Thu, 02 Mar 2017 11:49:33 +0100,
Boris Brezillon wrote:
>
> Add a conf file for the VC4-HDMI sound card.
>
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
> ---
> 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).
Applied, thanks.
Takashi
>
> 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
>
> <confdir:pcm/default.conf>
> <confdir:pcm/dmix.conf>
> 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
> +#
> +
> +<confdir:pcm/front.conf>
> +
> +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 ]
> + }
> + }
> +}
> +
> +<confdir:pcm/iec958.conf>
> +
> +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 ]
> +}
> --
> 2.7.4
>
next prev parent reply other threads:[~2017-03-20 11:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 10:49 [RESEND PATCH] conf/cards: add VC4-HDMI card Boris Brezillon
2017-03-16 17:28 ` Eric Anholt
2017-03-20 11:06 ` Takashi Iwai [this message]
2017-04-06 19:46 ` Eric Anholt
2017-04-07 8:21 ` Takashi Iwai
2017-04-07 17:20 ` Eric Anholt
2017-04-10 12:09 ` Boris Brezillon
2017-04-10 12:19 ` Takashi Iwai
2017-04-10 12:35 ` Boris Brezillon
2017-04-10 12:42 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hinn4w6l8.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=boris.brezillon@free-electrons.com \
--cc=eric@anholt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox