/* vx_setup_pseudo_dma - set up the pseudo dma read/write mode. @do_write: 0 = read, 1 = set up for DMA write  */
static void vx_setup_pseudo_dma(struct vx_core *_chip, int do_write)
/* vx_setup_pseudo_dma - set up the pseudo dma read/write mode. @do_write: 0 = read, 1 = set up for DMA write  */
static void vx_setup_pseudo_dma(struct vx_core *_chip, int do_write)
{
	struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
	vx_outb(chip, ICR, do_write ? ICR_TREQ : ICR_RREQ);
	vx_inb(chip, ISR);
	vx_outb(chip, ISR, 0);
	chip->regDIALOG |= VXP_DLG_DMA16_SEL_MASK;
	chip->regDIALOG |= do_write ? VXP_DLG_DMAWRITE_SEL_MASK : VXP_DLG_DMAREAD_SEL_MASK;
	vx_outb(chip, DIALOG, chip->regDIALOG);
}