ALSA: snd-atmel-ac97c: do not overwrite OCA and ICA when assigning channels
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 2 Apr 2009 06:21:12 +0000 (08:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 Apr 2009 01:55:08 +0000 (03:55 +0200)
This patch will take care not to overwrite OCA and ICA registers when
assigning input and output channels. It will also make sure the
registers are at a known state when enabling a channel and clean up
properly in case of an error.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/atmel/ac97c.c

Simple merge