diff options
Diffstat (limited to 'drivers/isdn/mISDN/dsp_audio.c')
-rw-r--r-- | drivers/isdn/mISDN/dsp_audio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/isdn/mISDN/dsp_audio.c b/drivers/isdn/mISDN/dsp_audio.c index b8f18bd09e43..06022952a437 100644 --- a/drivers/isdn/mISDN/dsp_audio.c +++ b/drivers/isdn/mISDN/dsp_audio.c | |||
@@ -61,7 +61,7 @@ static inline unsigned char linear2alaw(short int linear) | |||
61 | } | 61 | } |
62 | 62 | ||
63 | /* Convert the scaled magnitude to segment number. */ | 63 | /* Convert the scaled magnitude to segment number. */ |
64 | for (seg = 0; seg < 8; seg++) { | 64 | for (seg = 0; seg < 8; seg++) { |
65 | if (pcm_val <= seg_end[seg]) | 65 | if (pcm_val <= seg_end[seg]) |
66 | break; | 66 | break; |
67 | } | 67 | } |
@@ -263,7 +263,7 @@ dsp_audio_generate_mix_table(void) | |||
263 | sample = 32767; | 263 | sample = 32767; |
264 | if (sample < -32768) | 264 | if (sample < -32768) |
265 | sample = -32768; | 265 | sample = -32768; |
266 | dsp_audio_mix_law[(i<<8)|j] = | 266 | dsp_audio_mix_law[(i << 8) | j] = |
267 | dsp_audio_s16_to_law[sample & 0xffff]; | 267 | dsp_audio_s16_to_law[sample & 0xffff]; |
268 | j++; | 268 | j++; |
269 | } | 269 | } |
@@ -431,4 +431,3 @@ dsp_change_volume(struct sk_buff *skb, int volume) | |||
431 | i++; | 431 | i++; |
432 | } | 432 | } |
433 | } | 433 | } |
434 | |||