]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Add API to use DMI name in sound card long name
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Sat, 14 Jan 2017 08:13:02 +0000 (16:13 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 17 Jan 2017 17:57:14 +0000 (17:57 +0000)
commit241a14c313924a0360bba6ef506413bc89d1bd3f
tree1d5075485875e217101a145534a513b8a3fdd1fb
parenta2069d54cdba9b64d10bcb0a5bc9b13fb24f6076
ASoC: core: Add API to use DMI name in sound card long name

Intel DSP platform drivers are used by many different devices but are
difficult for userspace to differentiate. This patch adds an API to allow
the DMI name to be used in the sound card long name, thereby helping
userspace load the correct UCM configuration. Usually machine drivers
uses their own name as the sound card name (short name), and leave the
long name and driver name blank. This API will use the DMI info like
vendor, product and board to make up the card long name. If the machine
driver has already explicitly set the long name, this API will do nothing.

This patch also allows for further differentiation as many devices that
share the same DMI name i.e. Minnowboards, UP boards may be configured
with different codecs or firmwares. The API supports flavoring the DMI
name into the card longname to provide the extra differentiation required
for these devices.

For Use Case Manager (UCM) in the user space, changing card long name by
this API is backward compatible, since the card name does not change. For
a given sound card, even if there is no device-specific UCM configuration
file that uses the card long name, UCM will fall back to load the default
configuration file that uses the card name.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c