Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92077
b: refs/heads/master
c: 405b0a3
h: refs/heads/master
i:
  92075: a0431f8
v: v3
  • Loading branch information
Harvey Harrison authored and Takashi Iwai committed Apr 24, 2008
1 parent 9c8f0ff commit da7021b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 7dfa31ed5e1fc0ace7f1959b9564ad43d78fd7af
refs/heads/master: 405b0a377cfe3750f4af54b80d0402c3fe777b87
6 changes: 3 additions & 3 deletions trunk/sound/pci/ens1370.c
Original file line number Diff line number Diff line change
Expand Up @@ -1635,20 +1635,20 @@ static int __devinit snd_ensoniq_1371_mixer(struct ensoniq *ensoniq,
if (has_spdif > 0 ||
(!has_spdif && es1371_quirk_lookup(ensoniq, es1371_spdif_present))) {
struct snd_kcontrol *kctl;
int i, index = 0;
int i, is_spdif = 0;

ensoniq->spdif_default = ensoniq->spdif_stream =
SNDRV_PCM_DEFAULT_CON_SPDIF;
outl(ensoniq->spdif_default, ES_REG(ensoniq, CHANNEL_STATUS));

if (ensoniq->u.es1371.ac97->ext_id & AC97_EI_SPDIF)
index++;
is_spdif++;

for (i = 0; i < ARRAY_SIZE(snd_es1371_mixer_spdif); i++) {
kctl = snd_ctl_new1(&snd_es1371_mixer_spdif[i], ensoniq);
if (!kctl)
return -ENOMEM;
kctl->id.index = index;
kctl->id.index = is_spdif;
err = snd_ctl_add(card, kctl);
if (err < 0)
return err;
Expand Down

0 comments on commit da7021b

Please sign in to comment.