diff options
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r-- | apps/plugins/lua/rocklib.c | 6 |
1 files changed, 1 insertions, 5 deletions
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) | |||
487 | lua_pushstring (L, rb->sound_unit(setting)); | 487 | lua_pushstring (L, rb->sound_unit(setting)); |
488 | return 1; | 488 | return 1; |
489 | break; | 489 | break; |
490 | #if ((CONFIG_CODEC == SWCODEC) && defined (HAVE_PITCHCONTROL)) | 490 | #if defined (HAVE_PITCHCONTROL) |
491 | case SOUND_SET_PITCH: | 491 | case SOUND_SET_PITCH: |
492 | rb->sound_set_pitch(setting); | 492 | rb->sound_set_pitch(setting); |
493 | return 1;/*nil*/ | 493 | return 1;/*nil*/ |
@@ -507,7 +507,6 @@ RB_WRAP(sound) | |||
507 | return 1; | 507 | return 1; |
508 | } | 508 | } |
509 | 509 | ||
510 | #if CONFIG_CODEC == SWCODEC | ||
511 | RB_WRAP(pcm) | 510 | RB_WRAP(pcm) |
512 | { | 511 | { |
513 | enum e_pcm {PCM_APPLYSETTINGS = 0, PCM_ISPLAYING, PCM_ISPAUSED, | 512 | enum e_pcm {PCM_APPLYSETTINGS = 0, PCM_ISPLAYING, PCM_ISPAUSED, |
@@ -579,7 +578,6 @@ RB_WRAP(mixer_frequency) | |||
579 | lua_pushinteger(L, result); | 578 | lua_pushinteger(L, result); |
580 | return 1; | 579 | return 1; |
581 | } | 580 | } |
582 | #endif /*CONFIG_CODEC == SWCODEC*/ | ||
583 | 581 | ||
584 | /* DEVICE LIGHTING CONTROL */ | 582 | /* DEVICE LIGHTING CONTROL */ |
585 | RB_WRAP(backlight_onoff) | 583 | RB_WRAP(backlight_onoff) |
@@ -953,10 +951,8 @@ static const luaL_Reg rocklib[] = | |||
953 | RB_FUNC(audio), | 951 | RB_FUNC(audio), |
954 | RB_FUNC(playlist), | 952 | RB_FUNC(playlist), |
955 | RB_FUNC(sound), | 953 | RB_FUNC(sound), |
956 | #if CONFIG_CODEC == SWCODEC | ||
957 | RB_FUNC(pcm), | 954 | RB_FUNC(pcm), |
958 | RB_FUNC(mixer_frequency), | 955 | RB_FUNC(mixer_frequency), |
959 | #endif | ||
960 | 956 | ||
961 | /* DEVICE LIGHTING CONTROL */ | 957 | /* DEVICE LIGHTING CONTROL */ |
962 | RB_FUNC(backlight_onoff), | 958 | RB_FUNC(backlight_onoff), |