diff options
| author | Martin <clexan.priv@protonmail.com> | 2025-07-20 20:43:57 +0200 |
|---|---|---|
| committer | techyguyperplexable <hlcj1234567@gmail.com> | 2025-08-25 16:05:38 +0100 |
| commit | 16a8f8403394632b44fd9d28b0e93640782b0cac (patch) | |
| tree | 984aa7d15817e3514cf9cdaf4c9f82020b5bd1a5 | |
| parent | fd07d35941e6a343d14b67ebf1d0c9b0f57c2948 (diff) | |
universal9830: audio: fix sthal protos and enum typos
* declare sound_trigger_close_recording(int handle) instead of () so the compiler sees the real parameter, adjusts dlsym cast to int (*)(int) to match new proto
* fixes: error: incompatible function pointer types assigning to 'int (*)(void)' from 'int (*)(int)' [-Wincompatible-function-pointer-types]
| -rw-r--r-- | hardware/audio/proxy/audio_proxy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hardware/audio/proxy/audio_proxy.h b/hardware/audio/proxy/audio_proxy.h index ca62768..d45d97d 100644 --- a/hardware/audio/proxy/audio_proxy.h +++ b/hardware/audio/proxy/audio_proxy.h @@ -215,7 +215,7 @@ struct audio_proxy int (*sound_trigger_close_for_streaming)(int); int (*sound_trigger_open_recording)(); size_t (*sound_trigger_read_recording_samples)(void*, size_t); - int (*sound_trigger_close_recording)(); + int (*sound_trigger_close_recording)(int handle); int (*sound_trigger_headset_status)(int); int (*sound_trigger_voicecall_status)(int); |
