From 8cb555460ff79e636a7907fb2589e16db98c8600 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 17 Jul 2020 00:01:32 -0400 Subject: [3/4] Completely remove HWCODEC support 'swcodec' is now always set (and recording_swcodec for recording-capable units) in feature.txt so the manual and language strings don't need to all be fixed up. Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0 --- apps/plugins/lua/rocklib.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'apps/plugins/lua/rocklib.c') diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index 4fa989da46..e6eb543eda 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c @@ -487,7 +487,7 @@ RB_WRAP(sound) lua_pushstring (L, rb->sound_unit(setting)); return 1; break; -#if ((CONFIG_CODEC == SWCODEC) && defined (HAVE_PITCHCONTROL)) +#if defined (HAVE_PITCHCONTROL) case SOUND_SET_PITCH: rb->sound_set_pitch(setting); return 1;/*nil*/ @@ -507,7 +507,6 @@ RB_WRAP(sound) return 1; } -#if CONFIG_CODEC == SWCODEC RB_WRAP(pcm) { enum e_pcm {PCM_APPLYSETTINGS = 0, PCM_ISPLAYING, PCM_ISPAUSED, @@ -579,7 +578,6 @@ RB_WRAP(mixer_frequency) lua_pushinteger(L, result); return 1; } -#endif /*CONFIG_CODEC == SWCODEC*/ /* DEVICE LIGHTING CONTROL */ RB_WRAP(backlight_onoff) @@ -953,10 +951,8 @@ static const luaL_Reg rocklib[] = RB_FUNC(audio), RB_FUNC(playlist), RB_FUNC(sound), -#if CONFIG_CODEC == SWCODEC RB_FUNC(pcm), RB_FUNC(mixer_frequency), -#endif /* DEVICE LIGHTING CONTROL */ RB_FUNC(backlight_onoff), -- cgit v1.2.3