Skip to content

Commit

Permalink
a52: add another a52d configuration with card/dev/subdev scheme
Browse files Browse the repository at this point in the history
Make Pulseaudio and PipeWire to find the A52 devices.

BugLink: alsa-project#37
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
perexg committed Nov 2, 2021
1 parent 286378b commit 9a74090
Showing 1 changed file with 54 additions and 1 deletion.
55 changes: 54 additions & 1 deletion a52/60-a52-encoder.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down

0 comments on commit 9a74090

Please sign in to comment.