Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284134
b: refs/heads/master
c: 219e2cd
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Hofman authored and Takashi Iwai committed Jan 8, 2012
1 parent 5abdadf commit cde374c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e7848163aa2a649d9065f230fadff80dc3519775
refs/heads/master: 219e2cd41b5014c5a6ed4d1748f65f55f74a862f
7 changes: 6 additions & 1 deletion trunk/sound/pci/ice1712/ice1724.c
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,12 @@ static int snd_vt1724_pro_internal_clock_info(struct snd_kcontrol *kcontrol,
uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
uinfo->count = 1;

uinfo->value.enumerated.items = hw_rates_count + ice->ext_clock_count;
/* internal clocks */
uinfo->value.enumerated.items = hw_rates_count;
/* external clocks */
if (ice->force_rdma1 ||
(ice->eeprom.data[ICE_EEP2_SPDIF] & VT1724_CFG_SPDIF_IN))
uinfo->value.enumerated.items += ice->ext_clock_count;
/* upper limit - keep at top */
if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items)
uinfo->value.enumerated.item = uinfo->value.enumerated.items - 1;
Expand Down

0 comments on commit cde374c

Please sign in to comment.