#
# Configuration for the CS42888 chip
#

# default with dmix & dsnoop
CS42888.pcm.default {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type asym
	playback.pcm {
		type plug
		slave.pcm {
			@func concat
			strings [ "dmix:" $CARD ",FORMAT=S32_LE" ]
		}
	}
	capture.pcm {
		type plug
		slave.pcm {
			@func concat
			strings [ "dsnoop:" $CARD ",FORMAT=S32_LE" ]
		}
	}
}

<confdir:pcm/surround40.conf>

CS42888.pcm.surround40.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type plug
	slave.pcm {
		type hw
		card $CARD
	}
	slave.channels 4
	ttable.0.0 1
	ttable.1.2 1
	ttable.2.1 1
	ttable.3.3 1
}


<confdir:pcm/surround41.conf>
<confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf>

CS42888.pcm.surround51.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type plug
	slave.pcm {
		type hw
		card $CARD
	}
	slave.channels 6
	ttable.0.0 1
	ttable.1.3 1
	ttable.2.1 1
	ttable.3.4 1
	ttable.4.2 1
	ttable.5.5 1
}

<confdir:pcm/surround71.conf>

CS42888.pcm.surround71.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type plug
	slave.pcm {
		type hw
		card $CARD
	}
	slave.channels 8
	ttable.0.0 1
	ttable.1.4 1
	ttable.2.1 1
	ttable.3.5 1
	ttable.4.2 1
	ttable.5.6 1
	ttable.6.3 1
	ttable.7.7 1
}

# vim: ft=alsaconf
