/* Interface for HD codec CORB / RIRB interface  */
static int azx_alloc_cmd_io(struct azx *chip)
/* Interface for HD codec CORB / RIRB interface  */
static int azx_alloc_cmd_io(struct azx *chip)
{
	int err;
	err = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV,
				  snd_dma_pci_data(chip->pci),
				  PAGE_SIZE, &chip->rb);
	if (err < 0) {
		snd_printk(KERN_ERR SFX "cannot allocate CORB/RIRB\n");
		return err;
	}
	return 0;
}