diff options
Diffstat (limited to 'sound/pci/hda/patch_ca0110.c')
-rw-r--r-- | sound/pci/hda/patch_ca0110.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_ca0110.c b/sound/pci/hda/patch_ca0110.c index d08353d3bb7f..af478019088e 100644 --- a/sound/pci/hda/patch_ca0110.c +++ b/sound/pci/hda/patch_ca0110.c | |||
@@ -144,7 +144,7 @@ static int _add_switch(struct hda_codec *codec, hda_nid_t nid, const char *pfx, | |||
144 | struct snd_kcontrol_new knew = | 144 | struct snd_kcontrol_new knew = |
145 | HDA_CODEC_MUTE_MONO(namestr, nid, chan, 0, type); | 145 | HDA_CODEC_MUTE_MONO(namestr, nid, chan, 0, type); |
146 | sprintf(namestr, "%s %s Switch", pfx, dirstr[dir]); | 146 | sprintf(namestr, "%s %s Switch", pfx, dirstr[dir]); |
147 | return snd_hda_ctl_add(codec, snd_ctl_new1(&knew, codec)); | 147 | return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); |
148 | } | 148 | } |
149 | 149 | ||
150 | static int _add_volume(struct hda_codec *codec, hda_nid_t nid, const char *pfx, | 150 | static int _add_volume(struct hda_codec *codec, hda_nid_t nid, const char *pfx, |
@@ -155,7 +155,7 @@ static int _add_volume(struct hda_codec *codec, hda_nid_t nid, const char *pfx, | |||
155 | struct snd_kcontrol_new knew = | 155 | struct snd_kcontrol_new knew = |
156 | HDA_CODEC_VOLUME_MONO(namestr, nid, chan, 0, type); | 156 | HDA_CODEC_VOLUME_MONO(namestr, nid, chan, 0, type); |
157 | sprintf(namestr, "%s %s Volume", pfx, dirstr[dir]); | 157 | sprintf(namestr, "%s %s Volume", pfx, dirstr[dir]); |
158 | return snd_hda_ctl_add(codec, snd_ctl_new1(&knew, codec)); | 158 | return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); |
159 | } | 159 | } |
160 | 160 | ||
161 | #define add_out_switch(codec, nid, pfx) _add_switch(codec, nid, pfx, 3, 0) | 161 | #define add_out_switch(codec, nid, pfx) _add_switch(codec, nid, pfx, 3, 0) |