[Sony Ericsson XPERIA X10 Mini] donjamal:
ok :D

updated the omap3 ics driver and the above error has been solved but i got this

In file included from device/lge/p970/alsa/alsa_omap3.cpp:26:
device/lge/p970/alsa/alsa_omap3_modem.h:229: error: expected ')' before '*' token
device/lge/p970/alsa/alsa_omap3_modem.h:273: error: 'ALSAControl' has not been declared
device/lge/p970/alsa/alsa_omap3_modem.h:302: error: 'ALSAControl' has not been declared
device/lge/p970/alsa/alsa_omap3_modem.h:305: error: ISO C++ forbids declaration of 'ALSAControl' with no type
device/lge/p970/alsa/alsa_omap3_modem.h:305: error: expected ';' before '*' token
device/lge/p970/alsa/alsa_omap3.cpp:41: error: ISO C++ forbids declaration of 'hw_module_t' with no type
device/lge/p970/alsa/alsa_omap3.cpp:41: error: expected ',' or '...' before '*' token
device/lge/p970/alsa/alsa_omap3.cpp:42: error: 'hw_device_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:42: error: expected primary-expression before ')' token
device/lge/p970/alsa/alsa_omap3.cpp:43: error: 'alsa_device_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:43: error: expected primary-expression before ',' token
device/lge/p970/alsa/alsa_omap3.cpp:43: error: 'ALSAHandleList' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:43: error: expected primary-expression before ')' token
device/lge/p970/alsa/alsa_omap3.cpp:43: error: initializer expression list treated as compound expression
device/lge/p970/alsa/alsa_omap3.cpp:44: error: 'alsa_handle_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:44: error: expected primary-expression before ',' token
device/lge/p970/alsa/alsa_omap3.cpp:44: error: expected primary-expression before ',' token
device/lge/p970/alsa/alsa_omap3.cpp:44: error: expected primary-expression before 'int'
device/lge/p970/alsa/alsa_omap3.cpp:44: error: expected primary-expression before ')' token
device/lge/p970/alsa/alsa_omap3.cpp:44: error: initializer expression list treated as compound expression
device/lge/p970/alsa/alsa_omap3.cpp:45: error: 'alsa_handle_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:45: error: expected primary-expression before ')' token
device/lge/p970/alsa/alsa_omap3.cpp:46: error: 'alsa_handle_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:46: error: expected primary-expression before ')' token
device/lge/p970/alsa/alsa_omap3.cpp:47: error: 'alsa_handle_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:47: error: expected primary-expression before ',' token
device/lge/p970/alsa/alsa_omap3.cpp:47: error: expected primary-expression before ',' token
device/lge/p970/alsa/alsa_omap3.cpp:47: error: expected primary-expression before 'int'
device/lge/p970/alsa/alsa_omap3.cpp:47: error: initializer expression list treated as compound expression
device/lge/p970/alsa/alsa_omap3.cpp:52: error: 'alsa_handle_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:52: error: 'handle' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:59: error: 'hw_module_methods_t' does not name a type
device/lge/p970/alsa/alsa_omap3.cpp:63: error: 'hw_module_t' does not name a type
device/lge/p970/alsa/alsa_omap3.cpp:75: error: ISO C++ forbids declaration of 'hw_module_t' with no type
device/lge/p970/alsa/alsa_omap3.cpp:75: error: expected ',' or '...' before '*' token
device/lge/p970/alsa/alsa_omap3.cpp: In function 'int android::s_device_open(int)':
device/lge/p970/alsa/alsa_omap3.cpp:78: error: 'alsa_device_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:78: error: 'dev' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:79: error: expected primary-expression before ')' token
device/lge/p970/alsa/alsa_omap3.cpp:79: error: expected ';' before 'malloc'
device/lge/p970/alsa/alsa_omap3.cpp:85: error: 'HARDWARE_DEVICE_TAG' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:87: error: expected primary-expression before ')' token
device/lge/p970/alsa/alsa_omap3.cpp:87: error: expected ';' before 'module'
device/lge/p970/alsa/alsa_omap3.cpp:100: error: 'device' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp: At global scope:
device/lge/p970/alsa/alsa_omap3.cpp:107: error: redefinition of 'int android::s_device_close'
device/lge/p970/alsa/alsa_omap3.cpp:42: error: 'int android::s_device_close' previously defined here
device/lge/p970/alsa/alsa_omap3.cpp:107: error: 'hw_device_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:107: error: 'device' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:150: error: 'alsa_handle_t' does not name a type
device/lge/p970/alsa/alsa_omap3.cpp:230: error: 'alsa_handle_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:230: error: 'handle' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:230: error: expected primary-expression before 'device'
device/lge/p970/alsa/alsa_omap3.cpp:230: error: expected primary-expression before 'int'
device/lge/p970/alsa/alsa_omap3.cpp:230: error: initializer expression list treated as compound expression
device/lge/p970/alsa/alsa_omap3.cpp:231: error: expected ',' or ';' before '{' token
device/lge/p970/alsa/alsa_omap3.cpp:241: error: 'snd_pcm_stream_t' does not name a type
device/lge/p970/alsa/alsa_omap3.cpp:247: error: 'alsa_handle_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:247: error: 'handle' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:248: error: expected ',' or ';' before '{' token
device/lge/p970/alsa/alsa_omap3.cpp:252: error: 'alsa_handle_t' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:252: error: 'handle' was not declared in this scope
device/lge/p970/alsa/alsa_omap3.cpp:253: error: expected ',' or ';' before '{' token
device/lge/p970/alsa/alsa_omap3.cpp:788: error: expected '}' at end of input
make: *** [out/target/product/p970/obj/SHARED_LIBRARIES/alsa.p970_intermediates/alsa_omap3.o] Error 1

if i delete those folders will it solve with this error too?