Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92191
b: refs/heads/master
c: f24bfa5
h: refs/heads/master
i:
  92189: f624b6e
  92187: 7c35d78
  92183: fed1b3b
  92175: 2fc4fb0
  92159: 1c9e807
v: v3
  • Loading branch information
Andreas Mueller authored and Takashi Iwai committed Apr 24, 2008
1 parent b938b7d commit d78780c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62cef8212ffa9df3e6c5b358ea2382d90489d590
refs/heads/master: f24bfa53dab478e1bde2d7fd39d3c1a69dc518f1
22 changes: 21 additions & 1 deletion trunk/sound/pci/es1968.c
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,23 @@ snd_es1968_pcm(struct es1968 *chip, int device)

return 0;
}
/*
* suppress jitter on some maestros when playing stereo
*/
static void snd_es1968_suppress_jitter(struct es1968 *chip, struct esschan *es)
{
unsigned int cp1;
unsigned int cp2;
unsigned int diff;

cp1 = __apu_get_register(chip, 0, 5);
cp2 = __apu_get_register(chip, 1, 5);
diff = (cp1 > cp2 ? cp1 - cp2 : cp2 - cp1);

if (diff > 1) {
__maestro_write(chip, IDR0_DATA_PORT, cp1);
}
}

/*
* update pointer
Expand Down Expand Up @@ -1948,8 +1965,11 @@ static irqreturn_t snd_es1968_interrupt(int irq, void *dev_id)
struct esschan *es;
spin_lock(&chip->substream_lock);
list_for_each_entry(es, &chip->substream_list, list) {
if (es->running)
if (es->running) {
snd_es1968_update_pcm(chip, es);
if (es->fmt & ESS_FMT_STEREO)
snd_es1968_suppress_jitter(chip, es);
}
}
spin_unlock(&chip->substream_lock);
if (chip->in_measurement) {
Expand Down

0 comments on commit d78780c

Please sign in to comment.