ALSA: Replace the magic number 44 with const
[pandora-kernel.git] / sound / pci / hda / hda_jack.c
index 9e0a952..3fd2973 100644 (file)
@@ -398,7 +398,7 @@ static int add_jack_kctl(struct hda_codec *codec, hda_nid_t nid,
                         const char *base_name)
 {
        unsigned int def_conf, conn;
-       char name[44];
+       char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
        int idx, err;
        bool phantom_jack;