Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242963
b: refs/heads/master
c: 7bf76c3
h: refs/heads/master
i:
  242961: b485767
  242959: f7d8c79
v: v3
  • Loading branch information
Eliot Blennerhassett authored and Takashi Iwai committed Mar 25, 2011
1 parent ebe8797 commit 044a92c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: 677cd904aba939bc4cfdc3c1eada8ec46582127e
refs/heads/master: 7bf76c33e9a1ecb2a15f1a066d4e032b5d0922a7
16 changes: 7 additions & 9 deletions trunk/sound/pci/asihpi/asihpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,13 @@ static void snd_card_asihpi_pcm_samplerates(struct snd_card_asihpi *asihpi,
"No local sampleclock, err %d\n", err);
}

for (idx = 0; idx < 100; idx++) {
if (hpi_sample_clock_query_local_rate(
h_control, idx, &sample_rate)) {
if (!idx)
snd_printk(KERN_ERR
"Local rate query failed\n");

for (idx = -1; idx < 100; idx++) {
if (idx == -1) {
if (hpi_sample_clock_get_sample_rate(h_control,
&sample_rate))
continue;
} else if (hpi_sample_clock_query_local_rate(h_control,
idx, &sample_rate)) {
break;
}

Expand Down Expand Up @@ -440,8 +440,6 @@ static void snd_card_asihpi_pcm_samplerates(struct snd_card_asihpi *asihpi,
}
}

/* printk(KERN_INFO "Supported rates %X %d %d\n",
rates, rate_min, rate_max); */
pcmhw->rates = rates;
pcmhw->rate_min = rate_min;
pcmhw->rate_max = rate_max;
Expand Down

0 comments on commit 044a92c

Please sign in to comment.