diff options
| -rw-r--r-- | sound/drivers/opl3/opl3_midi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/drivers/opl3/opl3_midi.c b/sound/drivers/opl3/opl3_midi.c index f62780ed64ad..7821b07415a7 100644 --- a/sound/drivers/opl3/opl3_midi.c +++ b/sound/drivers/opl3/opl3_midi.c | |||
| @@ -105,6 +105,8 @@ static void snd_opl3_calc_pitch(unsigned char *fnum, unsigned char *blocknum, | |||
| 105 | int pitchbend = chan->midi_pitchbend; | 105 | int pitchbend = chan->midi_pitchbend; |
| 106 | int segment; | 106 | int segment; |
| 107 | 107 | ||
| 108 | if (pitchbend < -0x2000) | ||
| 109 | pitchbend = -0x2000; | ||
| 108 | if (pitchbend > 0x1FFF) | 110 | if (pitchbend > 0x1FFF) |
| 109 | pitchbend = 0x1FFF; | 111 | pitchbend = 0x1FFF; |
| 110 | 112 | ||
