#!/bin/sh
#
# apmd proxy script for ALSA

[ -x /usr/sbin/alsactl ] || exit 0

case "$1,$2" in
	suspend,*) /usr/sbin/alsactl store && /sbin/alsa suspend ;;
	resume,suspend) /sbin/alsa resume && /usr/sbin/alsactl restore ;;
esac

