diff options
| author | Jon Hunter <[email protected]> | 2021-03-03 11:55:26 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-03-10 12:50:55 +0000 |
| commit | 7de14d581dbed57c2b3c6afffa2c3fdc6955a3cd (patch) | |
| tree | 211115b33f26b9e5f0d1f9e2d4fc97c7df5460bc /sound/soc/codecs/lpass-wsa-macro.c | |
| parent | ASoC: SOF: Intel: unregister DMIC device on probe error (diff) | |
| download | kernel-7de14d581dbed57c2b3c6afffa2c3fdc6955a3cd.tar.gz kernel-7de14d581dbed57c2b3c6afffa2c3fdc6955a3cd.zip | |
ASoC: soc-core: Prevent warning if no DMI table is present
Many systems do not use ACPI and hence do not provide a DMI table. On
non-ACPI systems a warning, such as the following, is printed on boot.
WARNING KERN tegra-audio-graph-card sound: ASoC: no DMI vendor name!
The variable 'dmi_available' is not exported and so currently cannot be
used by kernel modules without adding an accessor. However, it is
possible to use the function is_acpi_device_node() to determine if the
sound card is an ACPI device and hence indicate if we expect a DMI table
to be present. Therefore, call is_acpi_device_node() to see if we are
using ACPI and only parse the DMI table if we are booting with ACPI.
Signed-off-by: Jon Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'sound/soc/codecs/lpass-wsa-macro.c')
0 files changed, 0 insertions, 0 deletions
