/* get the current position at the given channel from CCCA register  */
static int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch)
/* get the current position at the given channel from CCCA register  */
static int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch)
{
	int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff;
	val -= rec->loop_start[ch] - 1;
	return val;
}