From 8be2d013f04d78359757520f34b3d10cd6e05ad6 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Fri, 30 Nov 2007 08:10:58 +0100 Subject: [PATCH] oxygen: add channel status controls Add mixer controls to manage the S/PDIF channel status bits. --- src/conf/cards/CMI8788.conf | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/conf/cards/CMI8788.conf b/src/conf/cards/CMI8788.conf index e05da8f6..59b560cb 100644 --- a/src/conf/cards/CMI8788.conf +++ b/src/conf/cards/CMI8788.conf @@ -2,8 +2,6 @@ # Configuration for the CMI8788 chip # -# TODO: add hooks for SPDIF mixer controls - CMI8788.pcm.front.0 { @@ -126,9 +124,25 @@ CMI8788.pcm.iec958.0 { } type asym playback.pcm { - type hw - card $CARD - device 1 + type hooks + slave.pcm { + type hw + card $CARD + device 1 + } + hooks.0 { + type ctl_elems + hook_args [ + { + interface PCM + device 1 + name "IEC958 Playback PCM Stream" + lock true + preserve true + value [ $AES0 $AES1 $AES2 $AES3 ] + } + ] + } } capture.pcm { type hw -- 2.47.1