From 9a740904e8d54a58d24a2acc733bc675a41e7d62 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 2 Nov 2021 12:16:15 +0100 Subject: [PATCH] a52: add another a52d configuration with card/dev/subdev scheme Make Pulseaudio and PipeWire to find the A52 devices. BugLink: https://github.com/alsa-project/alsa-plugins/issues/37 Signed-off-by: Jaroslav Kysela --- a52/60-a52-encoder.conf | 55 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/a52/60-a52-encoder.conf b/a52/60-a52-encoder.conf index 99cc98e..2f88b2f 100644 --- a/a52/60-a52-encoder.conf +++ b/a52/60-a52-encoder.conf @@ -28,12 +28,65 @@ pcm.a52 { rate $RATE bitrate $BITRATE channels $CHANNELS + hint { + show { + @func refer + name defaults.namehint.extended + } + description "Plugin to convert multichannel stream to A52 (AC3) bitstream (full device)" + } +} + +pcm.a52d { + @args [ CARD DEV SUBDEV RATE BITRATE CHANNELS ] + @args.CARD { + type integer + default { + @func refer + name defaults.pcm.iec958.card + } + } + @args.DEV { + type integer + default { + @func refer + name defaults.pcm.iec958.device + } + } + @args.SUBDEV { + type integer + default 0 + } + @args.SLAVE { + type string + } + @args.RATE { + type integer + default 48000 + } + @args.BITRATE { + type integer + default 448 + } + @args.CHANNELS { + type string + default 6 + } + type a52 + card $CARD + slavepcm { + @func concat + strings [ "hw:" $CARD "," $DEV "," $SUBDEV ] + } + rate $RATE + bitrate $BITRATE + channels $CHANNELS hint { show { @func refer name defaults.namehint.basic } - description "Plugin to convert multichannel stream to A52 (AC3) bitstream" + description "Plugin to convert multichannel stream to A52 (AC3) bitstream" } }