mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[ALSA] cmipci: reset the chip when initializing
When the chip is initialized, reset it. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
54d030cc40
commit
3042ef7520
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue