diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-06-17 16:54:47 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-06-17 16:54:47 +0400 |
commit | 3409fcd1f71d02025e3f179127a8ba243c525d78 (patch) | |
tree | 365b2e3f8901c358f6ea216c2ba03e7a1f48a359 /sound/pci/hda | |
parent | f4b1e98aa93d548e5d51c8c5272ea08562fc71c1 (diff) | |
parent | ad2409413d09fca763be1ac5161f2a9d82367903 (diff) | |
download | linux-3409fcd1f71d02025e3f179127a8ba243c525d78.tar.xz |
Merge branch 'fix/hda' into topic/misc
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_beep.h | 2 | ||||
-rw-r--r-- | sound/pci/hda/patch_via.c | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_beep.h b/sound/pci/hda/hda_beep.h index 4967eabe774e..55f0647458c7 100644 --- a/sound/pci/hda/hda_beep.h +++ b/sound/pci/hda/hda_beep.h @@ -54,7 +54,7 @@ static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) { return 0; } -void snd_hda_detach_beep_device(struct hda_codec *codec) +static inline void snd_hda_detach_beep_device(struct hda_codec *codec) { } #endif diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 605c99e1e520..c952582fb218 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -832,10 +832,13 @@ static int via_hp_build(struct hda_codec *codec) knew->subdevice = HDA_SUBDEV_NID_FLAG | nid; knew->private_value = nid; - knew = via_clone_control(spec, &via_hp_mixer[1]); - if (knew == NULL) - return -ENOMEM; - knew->subdevice = side_mute_channel(spec); + nid = side_mute_channel(spec); + if (nid) { + knew = via_clone_control(spec, &via_hp_mixer[1]); + if (knew == NULL) + return -ENOMEM; + knew->subdevice = nid; + } return 0; } |