pcm.device{
	format S16_LE
	rate 48000
	type hw
	card 0
	device 0
}

pcm.play {
 type dmix
    ipc_key 234881
    slave {
        pcm "device" 
        channels 8
	period_size 1024
        buffer_size 8192
    }
    bindings {
        0 0
		1 1
		2 2
		3 3
    }
}

pcm.play_ch1 {
    type plug
    slave {
        pcm "play"
        }
	ttable.0.0 1
}

pcm.play_ch2 {
    type plug
    slave {
        pcm "play"
        }
	ttable.0.1 1
}


pcm.play_ch3 {
    type plug
    slave {
        pcm "play"
        }
	ttable.0.2 1
}

pcm.play_ch4 {
    type plug
    slave {
        pcm "play"
        }
	ttable.0.3 1
}

pcm.record {
    type dsnoop
    ipc_key 234882
    slave {
        pcm "device"
        channels 8
	period_size 1024
        buffer_size 8192
    }
        bindings {
        0 0
        1 1
	2 2
	3 3
       
    }
}

pcm.record_ch1 {
    type plug
    slave {
        pcm "record"
    }
    ttable.0.0 1
}

ctl.record_ch1 {
    type hw
    card 0  # This works if you have one sound card
}

pcm.record_ch2 {
    type plug
    slave {
        pcm "record"
    }
    ttable.0.1 1
}

ctl.record_ch2 {
    type hw
    card 0  # This works if you have one sound card
}

pcm.record_ch3 {
    type plug
    slave {
        pcm "record"
    }
    ttable.0.2 1
}

ctl.record_ch3 {
    type hw
    card 0  # This works if you have one sound card
}

pcm.record_ch4 {
    type plug
    slave {
        pcm "record"
    }
    ttable.0.3 1
}

ctl.record_ch4 {
    type hw
    card 0  # This works if you have one sound card
}

