]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit128ed6a9266daac5d7b0e082339742e16caf7caa
treef6e1fa1fd74437933a6c16d553aff6b304b896bc
parentd54bb9f0c57e39a9a7c8ba523f2c0c1a955d8efb
ALSA: snd-atmel-ac97c: do not overwrite OCA and ICA when assigning channels

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