aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 82d5218a0125..01d8d97dca4f 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -901,8 +901,7 @@ static void azx_init_chip(struct azx *chip)
901 azx_int_enable(chip); 901 azx_int_enable(chip);
902 902
903 /* initialize the codec command I/O */ 903 /* initialize the codec command I/O */
904 if (!chip->single_cmd) 904 azx_init_cmd_io(chip);
905 azx_init_cmd_io(chip);
906 905
907 /* program the position buffer */ 906 /* program the position buffer */
908 azx_writel(chip, DPLBASE, (u32)chip->posbuf.addr); 907 azx_writel(chip, DPLBASE, (u32)chip->posbuf.addr);
@@ -1018,7 +1017,7 @@ static irqreturn_t azx_interrupt(int irq, void *dev_id)
1018 /* clear rirb int */ 1017 /* clear rirb int */
1019 status = azx_readb(chip, RIRBSTS); 1018 status = azx_readb(chip, RIRBSTS);
1020 if (status & RIRB_INT_MASK) { 1019 if (status & RIRB_INT_MASK) {
1021 if (!chip->single_cmd && (status & RIRB_INT_RESPONSE)) 1020 if (status & RIRB_INT_RESPONSE)
1022 azx_update_rirb(chip); 1021 azx_update_rirb(chip);
1023 azx_writeb(chip, RIRBSTS, RIRB_INT_MASK); 1022 azx_writeb(chip, RIRBSTS, RIRB_INT_MASK);
1024 } 1023 }
@@ -2338,11 +2337,9 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,
2338 goto errout; 2337 goto errout;
2339 } 2338 }
2340 /* allocate CORB/RIRB */ 2339 /* allocate CORB/RIRB */
2341 if (!chip->single_cmd) { 2340 err = azx_alloc_cmd_io(chip);
2342 err = azx_alloc_cmd_io(chip); 2341 if (err < 0)
2343 if (err < 0) 2342 goto errout;
2344 goto errout;
2345 }
2346 2343
2347 /* initialize streams */ 2344 /* initialize streams */
2348 azx_init_stream(chip); 2345 azx_init_stream(chip);