ASoC: Drop invalid DMI fields when setting card long name from DMI info
commit98faf436ee05503e258ee934a9de8d8a3472b40f
authorMengdong Lin <mengdong.lin@linux.intel.com>
Wed, 28 Jun 2017 07:01:39 +0000 (28 15:01 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 17:46:30 +0000 (28 18:46 +0100)
tree02fb4d6d6510df1308f064ba9b4bbfe070490c83
parent1f0f8bde45a7ea843bb2e7a8f45f255b23cdc2e7
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