diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-17 00:01:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 8cb555460ff79e636a7907fb2589e16db98c8600 (patch) | |
tree | 930a3878c7641c9ce045b24f0ade1309e36d5806 /firmware/drivers/audio/sdl.c | |
parent | 0c4f89370d05056faa789aa9cabcccc4e509fb9f (diff) | |
download | rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.tar.gz rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.zip |
[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
Diffstat (limited to 'firmware/drivers/audio/sdl.c')
-rw-r--r-- | firmware/drivers/audio/sdl.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/firmware/drivers/audio/sdl.c b/firmware/drivers/audio/sdl.c index d701665889..fb49a291d1 100644 --- a/firmware/drivers/audio/sdl.c +++ b/firmware/drivers/audio/sdl.c | |||
@@ -48,7 +48,7 @@ void audiohw_set_volume(int volume) | |||
48 | #ifdef HAVE_SW_VOLUME_CONTROL | 48 | #ifdef HAVE_SW_VOLUME_CONTROL |
49 | volume = sdl_volume_level(volume); | 49 | volume = sdl_volume_level(volume); |
50 | pcm_set_master_volume(volume, volume); | 50 | pcm_set_master_volume(volume, volume); |
51 | #elif CONFIG_CODEC == SWCODEC | 51 | #else |
52 | extern void pcm_set_mixer_volume(int volume); | 52 | extern void pcm_set_mixer_volume(int volume); |
53 | pcm_set_mixer_volume(volume); | 53 | pcm_set_mixer_volume(volume); |
54 | #endif | 54 | #endif |
@@ -87,14 +87,6 @@ void audiohw_set_bass(int value) { (void)value; } | |||
87 | void audiohw_set_treble(int value) { (void)value; } | 87 | void audiohw_set_treble(int value) { (void)value; } |
88 | #endif | 88 | #endif |
89 | #endif /* HAVE_SW_TONE_CONTROLS */ | 89 | #endif /* HAVE_SW_TONE_CONTROLS */ |
90 | #if CONFIG_CODEC != SWCODEC | ||
91 | void audiohw_set_channel(int value) { (void)value; } | ||
92 | void audiohw_set_stereo_width(int value){ (void)value; } | ||
93 | #ifdef HAVE_PITCHCONTROL | ||
94 | void audiohw_set_pitch(int32_t value) { (void)value; } | ||
95 | int32_t audiohw_get_pitch(void) { return PITCH_SPEED_100; } | ||
96 | #endif | ||
97 | #endif /* CONFIG_CODEC != SWCODEC */ | ||
98 | #if defined(AUDIOHW_HAVE_BASS_CUTOFF) | 90 | #if defined(AUDIOHW_HAVE_BASS_CUTOFF) |
99 | void audiohw_set_bass_cutoff(int value) { (void)value; } | 91 | void audiohw_set_bass_cutoff(int value) { (void)value; } |
100 | #endif | 92 | #endif |