From: Clemens Ladisch Date: Mon, 17 Sep 2007 07:36:49 +0000 (+0200) Subject: [ALSA] cmipci: reset the chip when initializing X-Git-Tag: v2.6.24-rc1~832^2~63 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3042ef75203947920adc0ab7ae25bc62a1fec978;p=linux-2.6-omap-h63xx.git [ALSA] cmipci: reset the chip when initializing When the chip is initialized, reset it. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 12f33718e6d..8c5c843099c 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c @@ -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);