Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Stub audiohw_* driver functions for Android cdylib

Volume / EQ / etc. are handled by AAudio + Java MediaSession on Android; the firmware doesn't drive any audio chip directly. Stub the audiohw_* function pointer surface that firmware/sound.c references.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

+33
+1
firmware/SOURCES
··· 1989 1989 target/hosted/android/cdylib/lcd-noop.c 1990 1990 target/hosted/android/cdylib/button-noop.c 1991 1991 target/hosted/android/cdylib/cpuinfo-noop.c 1992 + target/hosted/android/cdylib/audiohw-noop.c 1992 1993 #else 1993 1994 /* Existing Java-shell Android app */ 1994 1995 target/hosted/lc-unix.c
+1
firmware/target/hosted/android/cdylib/SOURCES
··· 5 5 lcd-noop.c 6 6 button-noop.c 7 7 cpuinfo-noop.c 8 + audiohw-noop.c
+31
firmware/target/hosted/android/cdylib/audiohw-noop.c
··· 1 + /* SPDX-License-Identifier: GPL-2.0-or-later 2 + * 3 + * No-op audio hardware driver for the Android cdylib build. Volume is 4 + * handled by AAudio + Java MediaSession on the system side; the firmware 5 + * doesn't drive the codec chip directly. These stubs satisfy the 6 + * audiohw_* function-pointer surface that firmware/sound.c references. 7 + */ 8 + 9 + void audiohw_init(void) { } 10 + void audiohw_preinit(void) { } 11 + void audiohw_postinit(void) { } 12 + void audiohw_close(void) { } 13 + 14 + /* Different audiohw API variants exist depending on chip — provide both 15 + * signatures so whichever the upper layer expects is satisfied. */ 16 + void audiohw_set_volume(int vol_l, int vol_r) { (void)vol_l; (void)vol_r; } 17 + void audiohw_set_lineout_volume(int vol_l, int vol_r) { (void)vol_l; (void)vol_r; } 18 + void audiohw_set_prescaler(int val) { (void)val; } 19 + void audiohw_set_balance(int val) { (void)val; } 20 + void audiohw_set_treble(int val) { (void)val; } 21 + void audiohw_set_bass(int val) { (void)val; } 22 + void audiohw_set_bass_cutoff(int val) { (void)val; } 23 + void audiohw_set_treble_cutoff(int val) { (void)val; } 24 + void audiohw_set_eq_band_gain(unsigned band, int val) { (void)band; (void)val; } 25 + void audiohw_set_eq_band_frequency(unsigned band, int val) { (void)band; (void)val; } 26 + void audiohw_set_eq_band_width(unsigned band, int val) { (void)band; (void)val; } 27 + void audiohw_set_filter_roll_off(int value) { (void)value; } 28 + void audiohw_set_depth_3d(int val) { (void)val; } 29 + void audiohw_set_loudness(int val) { (void)val; } 30 + void audiohw_mute(int mute) { (void)mute; } 31 + void audiohw_set_frequency(int fsel) { (void)fsel; }