]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: Assure the user input card name not to exceed max size of card long name
authorMengdong Lin <mengdong.lin@linux.intel.com>
Wed, 18 Jan 2017 03:52:35 +0000 (11:52 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Jan 2017 10:55:13 +0000 (11:55 +0100)
commit2b9b3f013467765219c8ab8a50943d3c7db68f75
treefe1b4fea8f32af9a6b12077e0bf2178350d817ed
parent24e63b75275e9c923c336b8dba3919b980e8f234
ucm: Assure the user input card name not to exceed max size of card long name

Users can load a card's UCM configuration file by giving the card short
name or long name, which should not exceed the maximum card long name
defined by the kernel. The kernel uses an 80-character buffer to store
the card long name.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/ucm/parser.c
src/ucm/ucm_local.h