diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-02 05:29:30 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-02 06:07:48 -0400 |
commit | dda144103c4a47a504fcaa8cddd08a4440c87060 (patch) | |
tree | 3d6435dbb61e37349153b63326123606d6cd5dba /sound/pci/hda/patch_sigmatel.c | |
parent | a9111321f2fb6a23fbed82b8b4cbd77f5580ba75 (diff) |
ALSA: hda - Constify some API function arguments
Also fixed the assignment of multiout.dac_nids to satisfy const.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 2b590d92ff90..1ce65d4e05ac 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -3072,7 +3072,8 @@ static int add_spec_dacs(struct sigmatel_spec *spec, hda_nid_t nid) | |||
3072 | printk(KERN_WARNING "stac92xx: No space for DAC 0x%x\n", nid); | 3072 | printk(KERN_WARNING "stac92xx: No space for DAC 0x%x\n", nid); |
3073 | return 1; | 3073 | return 1; |
3074 | } else { | 3074 | } else { |
3075 | spec->multiout.dac_nids[spec->multiout.num_dacs] = nid; | 3075 | snd_BUG_ON(spec->multiout.dac_nids != spec->dac_nids); |
3076 | spec->dac_nids[spec->multiout.num_dacs] = nid; | ||
3076 | spec->multiout.num_dacs++; | 3077 | spec->multiout.num_dacs++; |
3077 | } | 3078 | } |
3078 | return 0; | 3079 | return 0; |