Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92076
b: refs/heads/master
c: 7dfa31e
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Takashi Iwai committed Apr 24, 2008
1 parent a0431f8 commit 9c8f0ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 964a788e0ba64aa4ce2e6488718f3ee28cc2e61e
refs/heads/master: 7dfa31ed5e1fc0ace7f1959b9564ad43d78fd7af
11 changes: 6 additions & 5 deletions trunk/sound/pci/cmipci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2744,12 +2744,13 @@ static int __devinit snd_cmipci_mixer_new(struct cmipci *cm, int pcm_spdif_devic
}

for (idx = 0; idx < CM_SAVED_MIXERS; idx++) {
struct snd_ctl_elem_id id;
struct snd_ctl_elem_id elem_id;
struct snd_kcontrol *ctl;
memset(&id, 0, sizeof(id));
id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
strcpy(id.name, cm_saved_mixer[idx].name);
if ((ctl = snd_ctl_find_id(cm->card, &id)) != NULL)
memset(&elem_id, 0, sizeof(elem_id));
elem_id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
strcpy(elem_id.name, cm_saved_mixer[idx].name);
ctl = snd_ctl_find_id(cm->card, &elem_id);
if (ctl)
cm->mixer_res_ctl[idx] = ctl;
}

Expand Down

0 comments on commit 9c8f0ff

Please sign in to comment.