Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262169
b: refs/heads/master
c: d12c51d
h: refs/heads/master
i:
  262167: 915dc7b
v: v3
  • Loading branch information
Adrian Knoth authored and Takashi Iwai committed Jul 29, 2011
1 parent f7a2af9 commit 707a8e2
Show file tree
Hide file tree
Showing 2 changed files with 17 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: 700d1ef33ff1d9a582b4a1dc23a130049f239942
refs/heads/master: d12c51d8299667464e31d545acc4ebb7031d024c
16 changes: 16 additions & 0 deletions trunk/sound/pci/rme9652/hdspm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,22 @@ static int hdspm_external_sample_rate(struct hdspm *hdspm)
rate = 0;
break;
}

/* QS and DS rates normally can not be detected
* automatically by the card. Only exception is MADI
* in 96k frame mode.
*
* So if we read SS values (32 .. 48k), check for
* user-provided DS/QS bits in the control register
* and multiply the base frequency accordingly.
*/
if (rate <= 48000) {
if (hdspm->control_register & HDSPM_QuadSpeed)
rate *= 4;
else if (hdspm->control_register &
HDSPM_DoubleSpeed)
rate *= 2;
}
}
break;
}
Expand Down

0 comments on commit 707a8e2

Please sign in to comment.