Essentially, they added a method to audio out for getting the latency of audio output. I assume it is for video/audio sync. They also added a standby method to the input stream. That I assume is for power management. The open stream methods have an extra argument to get the status back on open. Finally, they made the AudioHardwareInterface class a pure template class and made AudioHardwareBase what used to be AudioHardwareInterface.
All these changes appear to be helpful and desirable. Sean Praveen wrote: > Hi sean, > > Do you know about changes to the audio interface made by Google? When > was this made? > > Please let me know > > On Jan 8, 10:18 am, Sean McNeil <[email protected]> wrote: > >> Google has made some minor changes to the audio interface and Wind River >> is aware of them. There is a patch pending and it will hopefully be >> committed soon. >> >> Sorry for the inconvenience, >> Sean >> >> Praveen wrote: >> >>> Hi Vandy, >>> >>> I am also getting the same error while compiling. Were you able to >>> make any progress on this? >>> >>> If so please feel free to share the solution >>> >>> On Jan 8, 9:42 am, Vandy <[email protected]> wrote: >>> >>>> Hi All, >>>> I am getting the following errors when compiling alsa for the latest >>>> repository. Please help. >>>> ---------------------------------------------------------------------------------------------------------- >>>> I am compiling android code for arm, when compiling in sound I am >>>> getting the following errors. >>>> hardware/alsa_sound/AudioHardwareInterface.cpp: In static member >>>> function 'static android::AudioHardwareInterface* >>>> android::AudioHardwareInterface::create()': >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:96: error: cannot >>>> allocate an object of abstract type 'android::AudioHardwareALSA' >>>> hardware/alsa_sound/AudioHardwareALSA.h:224: note: because the >>>> following virtual functions are pure within >>>> 'android::AudioHardwareALSA': >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:178: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::setRouting(int, uint32_t) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:180: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::getRouting(int, uint32_t*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:187: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::setMode(int) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:188: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::getMode(int*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:196: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::setParameter(const char*, const >>>> char*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:200: >>>> note: virtual size_t >>>> android::AudioHardwareInterface::getInputBufferSize(uint32_t, int, >>>> int) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:207: >>>> note: virtual android::AudioStreamOut* >>>> android::AudioHardwareInterface::openOutputStream(int, int, uint32_t, >>>> android::status_t*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:214: >>>> note: virtual android::AudioStreamIn* >>>> android::AudioHardwareInterface::openInputStream(int, int, uint32_t, >>>> android::status_t*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:217: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::dumpState(int, const >>>> android::Vector<android::String16>&) >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:101: error: cannot >>>> allocate an object of abstract type 'android::AudioHardwareStub' >>>> hardware/alsa_sound/AudioHardwareStub.h:55: note: because the >>>> following virtual functions are pure within >>>> 'android::AudioHardwareStub': >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:178: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::setRouting(int, uint32_t) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:180: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::getRouting(int, uint32_t*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:187: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::setMode(int) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:188: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::getMode(int*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:200: >>>> note: virtual size_t >>>> android::AudioHardwareInterface::getInputBufferSize(uint32_t, int, >>>> int) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:207: >>>> note: virtual android::AudioStreamOut* >>>> android::AudioHardwareInterface::openOutputStream(int, int, uint32_t, >>>> android::status_t*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:214: >>>> note: virtual android::AudioStreamIn* >>>> android::AudioHardwareInterface::openInputStream(int, int, uint32_t, >>>> android::status_t*) >>>> hardware/libhardware/include/hardware/AudioHardwareInterface.h:217: >>>> note: virtual android::status_t >>>> android::AudioHardwareInterface::dumpState(int, const >>>> android::Vector<android::String16>&) >>>> hardware/alsa_sound/AudioHardwareInterface.cpp: At global scope: >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:136: error: definition >>>> of implicitly-declared >>>> 'android::AudioHardwareInterface::AudioHardwareInterface()' >>>> hardware/alsa_sound/AudioHardwareInterface.cpp: In constructor >>>> 'android::AudioHardwareInterface::AudioHardwareInterface()': >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:139: error: 'mRoutes' >>>> was not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:140: error: 'mMode' was >>>> not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp: In member function >>>> 'virtual android::status_t android::AudioHardwareInterface::setRouting >>>> (int, uint32_t)': >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:150: error: 'mMode' was >>>> not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:153: error: 'mRoutes' >>>> was not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:155: error: 'mMode' was >>>> not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp: In member function >>>> 'virtual android::status_t android::AudioHardwareInterface::getRouting >>>> (int, uint32_t*)': >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:169: error: 'mMode' was >>>> not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:172: error: 'mRoutes' >>>> was not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp: In member function >>>> 'virtual android::status_t android::AudioHardwareInterface::setMode >>>> (int)': >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:187: error: 'mMode' was >>>> not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:193: error: 'mMode' was >>>> not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp: In member function >>>> 'virtual android::status_t android::AudioHardwareInterface::getMode >>>> (int*)': >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:200: error: 'mMode' was >>>> not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp: In member function >>>> 'virtual android::status_t android::AudioHardwareInterface::dumpState >>>> (int, const android::Vector<android::String16>&)': >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:217: error: 'mMode' was >>>> not declared in this scope >>>> hardware/alsa_sound/AudioHardwareInterface.cpp:220: error: 'mRoutes' >>>> was not declared in this scope >>>> >>>> Rgds, >>>> Vandy >>>> > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
