]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: hda/ca0132: make array ca0132_alt_chmaps static
authorColin Ian King <colin.king@canonical.com>
Thu, 21 Jun 2018 18:34:57 +0000 (19:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 Jun 2018 19:42:37 +0000 (21:42 +0200)
The array ca0132_alt_chmaps is local to the source and does not
need to be in global scope, so make it static.

Cleans up sparse warning:
warning: symbol 'ca0132_alt_chmaps' was not declared. Should it be
static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c

index d62c56feaf7d562af37c1389baf2feb6c87334ba..4ff5320378e22f8e4ef67a80afeb2982431d6fff 100644 (file)
@@ -5665,7 +5665,7 @@ static const char * const ca0132_alt_slave_pfxs[] = {
  * I think this has to do with the pin for rear surround being 0x11,
  * and the center/lfe being 0x10. Usually the pin order is the opposite.
  */
-const struct snd_pcm_chmap_elem ca0132_alt_chmaps[] = {
+static const struct snd_pcm_chmap_elem ca0132_alt_chmaps[] = {
        { .channels = 2,
          .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
        { .channels = 4,