发现4.0在初始化audio_hdi_usb_service服务的时候,会调用libhdi_audio.z.so中的GetAudioManagerFuncs方法,3.2上还存在这个库,4.0上就找不到这个库了,导致接下去流程异常,服务直接调用release流程退出了,想请教一下,这块应该怎么调整呢?或者GetAudioManagerFuncs存在哪个库中呢?


下面是相关log供参考,是初始化audio_host的log

01-01 08:26:26.333  2100  2100 D C02500/device_node: node libhdi_audio_usb_server.z.so property empty, match attr: 
01-01 08:26:26.333  2100  2100 I C02500/device_node: launch devnode audio_hdi_usb_service
01-01 08:26:26.333  2100  2100 I C02500/HDF_AUDIO_HAL_HOST: [AudioHdiUsbServerBind][line:42]: enter!
01-01 08:26:26.333  2100  2100 D C02500/HDF_AUDIO_HAL_STUB: [HdiServiceGetFuncs][line:1165]: enter
01-01 08:26:26.333  2100  2100 E C02500/HDF_AUDIO_HAL_STUB: [HdiServiceGetFuncs][line:1176]: audio load path /vendor/lib64/libhdi_audio.z.so, dlopen err=Error loading shared library /vendor/lib64/libhdi_audio.z.so: No such file or directory
01-01 08:26:26.333  2100  2100 E C02500/device_node: bind driver hdi_audio_usb_server failed
01-01 08:26:26.333  2100  2100 I C02500/device_node: release devnode audio_hdi_usb_service
01-01 08:26:26.333  2100  2100 I C02500/HDF_AUDIO_HAL_HOST: [AudioHdiUsbServerRelease][line:26]: enter!
01-01 08:26:26.333  2100  2100 E C02500/HDF_AUDIO_HAL_STUB: [AdaptersServerManageRelease][line:155]: Parameter error! 
01-01 08:26:26.333  2100  2100 I C02500/HDF_AUDIO_HAL_STUB: [AudioHdiServerRelease][line:1194]: enter to AudioHdiServerRelease!
01-01 08:26:26.333  2100  2100 E C02500/HDF_AUDIO_HAL_STUB: [AudioHdiServerRelease][line:1197]: manager func is null!
01-01 08:26:26.333  2100  2100 D C02500/HDF_AUDIO_HAL_HOST: [AudioHdiUsbServerRelease][line:36]: end!

 

相关文件下载
audio-log.txt
3.11 MB
下载
Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐