]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix the max length of control name in generic parser
authorTakashi Iwai <tiwai@suse.de>
Fri, 28 Jun 2013 09:51:32 +0000 (11:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 28 Jun 2013 10:13:58 +0000 (12:13 +0200)
commit15b55dcb8ceb0b6b9c788613b3746384eff7f6fe
treeb227d79491a93fef304bddf29f93dbe4651d1929
parent68f4f20ca9a1209a17d8e304b0341956b556dc48
ALSA: hda - Fix the max length of control name in generic parser

add_control_with_pfx() in hda_generic.c assumes a shorter name string
for the control element, and this resulted in the truncation of the
long but valid string like "Headphone Surround Switch" in the middle.

This patch aligns the max size to the actual limit of snd_ctl_elem_id,
44.

Cc: <stable@vger.kernel.org> [v3.9+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c