/* Transfer qsound parameters to CSP, function should be called from interrupt routine  */
static int snd_sb_csp_qsound_transfer(struct snd_sb_csp *p)
/* Transfer qsound parameters to CSP, function should be called from interrupt routine  */
static int snd_sb_csp_qsound_transfer(struct snd_sb_csp *p)
{
	int err = -ENXIO;
	spin_lock(&p->q_lock);
	if (p->running & SNDRV_SB_CSP_ST_QSOUND) {
		set_codec_parameter(p->chip, 0xe0, 0x01);
		set_codec_parameter(p->chip, 0x00, p->qpos_left);
		set_codec_parameter(p->chip, 0x02, 0x00);
		set_codec_parameter(p->chip, 0x00, p->qpos_right);
		set_codec_parameter(p->chip, 0x03, 0x00);
		err = 0;
	}
	p->qpos_changed = 0;
	spin_unlock(&p->q_lock);
	return err;
}