diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/a52.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/codecs/a52.c b/apps/codecs/a52.c index ff8fe0afea..0c3f507914 100644 --- a/apps/codecs/a52.c +++ b/apps/codecs/a52.c | |||
@@ -81,8 +81,10 @@ void a52_decode_data(uint8_t *start, uint8_t *end) | |||
81 | } | 81 | } |
82 | bufpos = buf + length; | 82 | bufpos = buf + length; |
83 | } else { | 83 | } else { |
84 | /* The following two defaults are taken from audio_out_oss.c: */ | 84 | /* Unity gain is 1 << 26, and we want to end up on 28 bits |
85 | level_t level = 1 << 26; | 85 | of precision instead of the default 30. |
86 | */ | ||
87 | level_t level = 1 << 24; | ||
86 | sample_t bias = 0; | 88 | sample_t bias = 0; |
87 | int i; | 89 | int i; |
88 | 90 | ||
@@ -142,9 +144,7 @@ enum codec_status codec_start(struct codec_api *api) | |||
142 | ci->configure(CODEC_DSP_ENABLE, (bool *)true); | 144 | ci->configure(CODEC_DSP_ENABLE, (bool *)true); |
143 | ci->configure(DSP_DITHER, (bool *)false); | 145 | ci->configure(DSP_DITHER, (bool *)false); |
144 | ci->configure(DSP_SET_STEREO_MODE, (long *)STEREO_NONINTERLEAVED); | 146 | ci->configure(DSP_SET_STEREO_MODE, (long *)STEREO_NONINTERLEAVED); |
145 | ci->configure(DSP_SET_SAMPLE_DEPTH, (long *)30); | 147 | ci->configure(DSP_SET_SAMPLE_DEPTH, (long *)28); |
146 | ci->configure(DSP_SET_CLIP_MAX, (long *)((1 << 30) - 1)); | ||
147 | ci->configure(DSP_SET_CLIP_MIN, (long *)-(1 << 30)); | ||
148 | ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (long *)(1024*128)); | 148 | ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (long *)(1024*128)); |
149 | 149 | ||
150 | next_track: | 150 | next_track: |