From c622965472d66a5d49d90bb5f077dc146d509f26 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 18 Feb 2008 12:25:02 +0100 Subject: [PATCH] Add surround71 definition to NFORCE.conf Now the board with ALC850 can work with 8-channel outputs. --- include/sound/asound.h | 1 + src/conf/cards/NFORCE.conf | 73 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/include/sound/asound.h b/include/sound/asound.h index fa1c9ab9..d86a457b 100644 --- a/include/sound/asound.h +++ b/include/sound/asound.h @@ -59,6 +59,7 @@ #ifndef __KERNEL__ #include #include +#include #endif /* diff --git a/src/conf/cards/NFORCE.conf b/src/conf/cards/NFORCE.conf index a6040797..6ebefe3d 100644 --- a/src/conf/cards/NFORCE.conf +++ b/src/conf/cards/NFORCE.conf @@ -171,6 +171,79 @@ NFORCE.pcm.surround51.0 { } } + + +NFORCE.pcm.surround71.0 { + @args [ CARD ] + @args.CARD { + type string + } + type softvol + slave.pcm { + type route + ttable.0.0 1 + ttable.1.1 1 + ttable.2.4 1 + ttable.3.5 1 + ttable.4.2 1 + ttable.5.3 1 + ttable.6.6 1 + ttable.7.7 1 + slave.pcm { + type hooks + slave.pcm { + type hw + card $CARD + device 0 + } + hooks.0 { + type ctl_elems + hook_args [ + { + name "Channel Mode" + preserve true + value "8ch" + lock true + optional true + } + # for old drivers + { + name "Line-In As Surround" + preserve true + value true + optional true + } + { + name "Mic As Center/LFE" + preserve true + value true + optional true + } + { + name "Surround Down Mix" + preserve true + value off + lock true + optional true + } + { + name "Center/LFE Down Mix" + preserve true + value off + lock true + optional true + } + ] + } + } + slave.channels 8 + } + control { + name "PCM Playback Volume" + card $CARD + } +} + NFORCE.pcm.iec958.0 { -- 2.47.3