Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360966
b: refs/heads/master
c: 4c7a548
h: refs/heads/master
v: v3
  • Loading branch information
Mengdong Lin authored and Takashi Iwai committed Mar 7, 2013
1 parent 248cd0e commit 9c4e7c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 25336e8ae2d2fa64c9c4cc2c9c28f641134c9fa9
refs/heads/master: 4c7a548a70a44269266858f65c3b5fc9c3ace057
9 changes: 7 additions & 2 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3433,11 +3433,16 @@ static struct snd_kcontrol_new spdif_share_sw = {
int snd_hda_create_spdif_share_sw(struct hda_codec *codec,
struct hda_multi_out *mout)
{
struct snd_kcontrol *kctl;

if (!mout->dig_out_nid)
return 0;

kctl = snd_ctl_new1(&spdif_share_sw, mout);
if (!kctl)
return -ENOMEM;
/* ATTENTION: here mout is passed as private_data, instead of codec */
return snd_hda_ctl_add(codec, mout->dig_out_nid,
snd_ctl_new1(&spdif_share_sw, mout));
return snd_hda_ctl_add(codec, mout->dig_out_nid, kctl);
}
EXPORT_SYMBOL_HDA(snd_hda_create_spdif_share_sw);

Expand Down

0 comments on commit 9c4e7c6

Please sign in to comment.