]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Drop invalid DMI fields when setting card long name from DMI info
authorMengdong Lin <mengdong.lin@linux.intel.com>
Wed, 28 Jun 2017 07:01:39 +0000 (15:01 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 17:46:30 +0000 (18:46 +0100)
commitcb2d9ec9d62ed8cfff129dc2f673b8b93a82152c
tree02fb4d6d6510df1308f064ba9b4bbfe070490c83
parent8a73d99e822d2cb437c9eb4d5ba991fc232788eb
ASoC: Drop invalid DMI fields when setting card long name from DMI info

Sometimes DMI fields may be invalid and so can't give useful vendor,
product or board info, such as "Type2 - Board Manufacturer" or
"Type1 - TBD by OEM". Including such invalid DMI fileds may create silly
card long name. So this patch creates a black list of invalid strings.
And if a DMI field contains any string in this list, it will be excluded
from the card long name.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c