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

[ -f /etc/default/alsa ] || exit 0
. /etc/default/alsa

case "$1" in
suspend)
	if [ "$force_stop_modules_before_suspend" = "true" ]; then
		/etc/init.d/alsa force-stop
	fi
	;;
resume)
	if [ "$force_stop_modules_before_suspend" = "true" ]; then
		modprobe -q snd-card-0 || :
	fi
	;;
esac

