|
@@ -1408,6 +1408,7 @@ snd_ali_playback_pointer(struct snd_pcm_substream *substream)
|
|
spin_unlock(&codec->reg_lock);
|
|
spin_unlock(&codec->reg_lock);
|
|
dev_dbg(codec->card->dev, "playback pointer returned cso=%xh.\n", cso);
|
|
dev_dbg(codec->card->dev, "playback pointer returned cso=%xh.\n", cso);
|
|
|
|
|
|
|
|
+ cso %= runtime->buffer_size;
|
|
return cso;
|
|
return cso;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1428,6 +1429,7 @@ static snd_pcm_uframes_t snd_ali_pointer(struct snd_pcm_substream *substream)
|
|
cso = inw(ALI_REG(codec, ALI_CSO_ALPHA_FMS + 2));
|
|
cso = inw(ALI_REG(codec, ALI_CSO_ALPHA_FMS + 2));
|
|
spin_unlock(&codec->reg_lock);
|
|
spin_unlock(&codec->reg_lock);
|
|
|
|
|
|
|
|
+ cso %= runtime->buffer_size;
|
|
return cso;
|
|
return cso;
|
|
}
|
|
}
|
|
|
|
|