#!/bin/bash

for i in `seq 1 8`; do
        for j in `seq 1 8`; do
                if [ "$i" != "$j" ]; then
                        amixer -c1 set "DIn$i - Out$j" 0% > /dev/null
                else
                        amixer -c1 set "DIn$i - Out$j" 100% > /dev/null
                fi
                amixer -c1 set "AIn$i - Out$j" 0% > /dev/null
        done
done
