[alsa-devel] [PATCH 0/2] ASoC: Use DMI name in sound card long name
mengdong.lin at linux.intel.com
mengdong.lin at linux.intel.com
Wed Dec 21 14:02:56 CET 2016
From: Mengdong Lin <mengdong.lin at linux.intel.com>
This series is based on Liam's idea to use DMI name as the sound card
short name in the audio workshop. Now we add DMI info to the card long
name:
- Not change the card name (short name), keep it simple. So the card ID
won't change as well.
- Use short name and DMI name together to make a readable and unqique
long name.
Machine drivers can use a new API to get this feature.
In user space, when the sound server ask UCM to open a sound card, UCM
will try to find the best configuration file based on the card long name,
and only if not avaiable, fallback to the default configuration file that
matches the card name (short name). Please see patch:
ucm: Automatically load the best config file based on the card long name
History:
v1 from RFC: Give up using a table to map DMI info to a simple string,
since we cannot maintain such a table for each machine. Just do
verbatim copy of DMI info and let user space decide how to use the
DMI info in card long name to find the best UCM config file.
If device driver adds a flavor string, just append it after the
DMI info fields to the card long name.
Liam Girdwood (1):
ASoC: core: Add API to use DMI name in sound card long name
Mengdong Lin (1):
ASoC: Intel: Use DMI name for sound card long name in Broadwell
machine driver
include/sound/soc.h | 4 ++
sound/soc/intel/boards/broadwell.c | 2 +
sound/soc/soc-core.c | 81 ++++++++++++++++++++++++++++++++++++++
3 files changed, 87 insertions(+)
--
2.5.0
More information about the Alsa-devel
mailing list