h->intf.pcm_avail = dlsym(h->dl_handle, "audio_pcm_avail");
h->intf.pcm_write = dlsym(h->dl_handle, "audio_pcm_write");
h->intf.pcm_read = dlsym(h->dl_handle, "audio_pcm_read");
+ h->intf.pcm_get_fd = dlsym(h->dl_handle, "audio_pcm_get_fd");
+ h->intf.pcm_recover = dlsym(h->dl_handle, "audio_pcm_recover");
+ h->intf.pcm_get_params = dlsym(h->dl_handle, "audio_pcm_get_params");
+ h->intf.pcm_set_params = dlsym(h->dl_handle, "audio_pcm_set_params");
if (h->intf.init) {
- /* TODO : no need to pass platform_data as second param. need to fix hal. */
- if (h->intf.init(&h->data) != AUDIO_RET_OK) {
+ if (h->intf.init(&h->data) != AUDIO_RET_OK)
pa_log_error("hal_manager init failed");
- }
}
} else {