[ALSA] cmipci: reset the chip when initializing
authorClemens Ladisch <clemens@ladisch.de>
Mon, 17 Sep 2007 07:36:49 +0000 (09:36 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 14:50:30 +0000 (16:50 +0200)
When the chip is initialized, reset it.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/cmipci.c

index 12f33718e6d141bd1b6bc9f4fbcf1c19fc5c6893..8c5c843099c64add4c82b72f5ea052f2d548b490 100644 (file)
@@ -2971,6 +2971,8 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc
 #endif
 
        /* initialize codec registers */
+       snd_cmipci_set_bit(cm, CM_REG_MISC_CTRL, CM_RESET);
+       snd_cmipci_clear_bit(cm, CM_REG_MISC_CTRL, CM_RESET);
        snd_cmipci_write(cm, CM_REG_INT_HLDCLR, 0);     /* disable ints */
        snd_cmipci_ch_reset(cm, CM_CH_PLAY);
        snd_cmipci_ch_reset(cm, CM_CH_CAPT);