Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5347
b: refs/heads/master
c: 072c011
h: refs/heads/master
i:
  5345: e9ed3b3
  5343: 357a912
v: v3
  • Loading branch information
Jaroslav Kysela committed Jul 28, 2005
1 parent d2e735b commit 1ebcf07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 856def8a4695066e6cbd2919c5987f1df23dbe8a
refs/heads/master: 072c01194df6e4843582d09380b780987f642d6d
10 changes: 10 additions & 0 deletions trunk/sound/pci/ens1370.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,15 @@ static unsigned short snd_es1371_codec_read(ac97_t *ac97,
return 0;
}

static void snd_es1371_codec_wait(ac97_t *ac97)
{
msleep(750);
snd_es1371_codec_read(ac97, AC97_RESET);
snd_es1371_codec_read(ac97, AC97_VENDOR_ID1);
snd_es1371_codec_read(ac97, AC97_VENDOR_ID2);
msleep(50);
}

static void snd_es1371_adc_rate(ensoniq_t * ensoniq, unsigned int rate)
{
unsigned int n, truncm, freq, result;
Expand Down Expand Up @@ -1585,6 +1594,7 @@ static int snd_ensoniq_1371_mixer(ensoniq_t * ensoniq)
static ac97_bus_ops_t ops = {
.write = snd_es1371_codec_write,
.read = snd_es1371_codec_read,
.wait = snd_es1371_codec_wait,
};

if ((err = snd_ac97_bus(card, 0, &ops, NULL, &pbus)) < 0)
Expand Down

0 comments on commit 1ebcf07

Please sign in to comment.