summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/hdmi-codec.c
diff options
context:
space:
mode:
authorColin Ian King2017-07-11 16:08:55 +0200
committerMark Brown2017-07-17 13:05:38 +0200
commit1d6463a3e23e55621101a1b9b842101988c596ff (patch)
tree79022fd2f110a3ac79a05d6f7a5643f02d13f4a8 /sound/soc/codecs/hdmi-codec.c
parentASoC: hdmi-codec: ELD control corresponds to the PCM stream (diff)
downloadkernel-qcow2-linux-1d6463a3e23e55621101a1b9b842101988c596ff.tar.gz
kernel-qcow2-linux-1d6463a3e23e55621101a1b9b842101988c596ff.tar.xz
kernel-qcow2-linux-1d6463a3e23e55621101a1b9b842101988c596ff.zip
ASoC: hdmi-codec: make const array hdmi_codec_eld_spk_alloc_bits static
Don't populate array hdmi_codec_eld_spk_alloc_bits on the stack but make it static. Makes the object code smaller by over 260 bytes: Before: text data bss dec hex filename 10882 3384 64 14330 37fa sound/soc/codecs/hdmi-codec.o After: text data bss dec hex filename 10557 3440 64 14061 36ed sound/soc/codecs/hdmi-codec.o Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/hdmi-codec.c')
-rw-r--r--sound/soc/codecs/hdmi-codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c
index 7686a80861f1..509ab513b4b2 100644
--- a/sound/soc/codecs/hdmi-codec.c
+++ b/sound/soc/codecs/hdmi-codec.c
@@ -326,7 +326,7 @@ static int hdmi_eld_ctl_get(struct snd_kcontrol *kcontrol,
static unsigned long hdmi_codec_spk_mask_from_alloc(int spk_alloc)
{
int i;
- const unsigned long hdmi_codec_eld_spk_alloc_bits[] = {
+ static const unsigned long hdmi_codec_eld_spk_alloc_bits[] = {
[0] = FL | FR, [1] = LFE, [2] = FC, [3] = RL | RR,
[4] = RC, [5] = FLC | FRC, [6] = RLC | RRC,
};