ALSA: emu10k1: fix synthesizer pitch for E-MU cards at 44.1 kHz
[linux-2.6-microblaze.git] / sound / synth / emux / emux_synth.c
index a5385ef..075358a 100644 (file)
@@ -845,7 +845,8 @@ calc_pitch(struct snd_emux_voice *vp)
 
        /* 0xe000: root pitch */
        offset += 0xe000 + vp->reg.rate_offset;
-       offset += vp->emu->pitch_shift;
+       if (vp->emu->ops.get_pitch_shift)
+               offset += vp->emu->ops.get_pitch_shift(vp->emu);
        LIMITVALUE(offset, 0, 0xffff);
        if (offset == vp->apitch)
                return 0; /* unchanged */