ALSA: sbawe: fix memory detection
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Sun, 20 Dec 2009 19:15:19 +0000 (20:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Dec 2009 11:03:11 +0000 (12:03 +0100)
commitdb8cf334f66bdf1ba2b3d2f7128095fc9b7a6e2b
treeb6b90f29fb295be3df8f6083057cee738a5c2081
parent40962d7c741de1c21b6ce8516c1d9f8836fb383e
ALSA: sbawe: fix memory detection

Memory amount is increased before a successful write-read
sequence is done. Thus, 512 kB of onboard memory is detected
on memoryless cards like SB32.

Move the increasing of memory counter after successful read
is done.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/emu8000.c