diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-12-23 02:33:52 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-12-23 02:33:52 -0500 |
commit | f80e39e0225c01ee68764ef7594c3a29ab5ebabb (patch) | |
tree | f5a85085741a173c93fc8f21938528b65ed95e42 /sound/soc/intel/common/sst-match-acpi.c | |
parent | 59c8231089be96165735585694a801ae58ec6c95 (diff) | |
parent | 822ad70a2f5c420da5baa9f4354e6b7813ca6da9 (diff) |
Merge tag 'asoc-v4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Updates for v4.5
This is quite a busy release on the driver front with a lot of new
drivers being added but comparatively quiet on the core side with only
one big change going in and that a fairly straightforward refactoring.
- Conversion of the array of DAI links to a list by Mengdong Lin,
supporting dynamically adding and removing DAI links.
- Some more fixes for the topology code, though it is still not final
and ready for enabling in production. We really need to get to the
point where that can be done.
- A pile of changes for Intel SkyLake drivers which hopefully deliver
some useful initial functionality for systems with this chipset,
though there is more work still to come.
- New drivers for a number of Imagination Technologies IPs.
- Lots of new features and cleanups for the Renesas drivers.
- ANC support for WM5110.
- New driver for Atmel class D speaker drivers.
- New drivers for Cirrus CS47L24 and WM1831.
- New driver for Dialog DA7128.
- New drivers for Realtek RT5659 and RT56156.
- New driver for Rockchip RK3036.
- New driver for TI PC3168A
Diffstat (limited to 'sound/soc/intel/common/sst-match-acpi.c')
-rw-r--r-- | sound/soc/intel/common/sst-match-acpi.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sound/soc/intel/common/sst-match-acpi.c b/sound/soc/intel/common/sst-match-acpi.c new file mode 100644 index 000000000000..dd077e116d25 --- /dev/null +++ b/sound/soc/intel/common/sst-match-acpi.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * sst_match_apci.c - SST (LPE) match for ACPI enumeration. | ||
3 | * | ||
4 | * Copyright (c) 2013-15, Intel Corporation. | ||
5 | * | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms and conditions of the GNU General Public License, | ||
9 | * version 2, as published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
14 | * more details. | ||
15 | */ | ||
16 | #include <linux/acpi.h> | ||
17 | #include <linux/device.h> | ||
18 | #include <linux/module.h> | ||
19 | #include <linux/platform_device.h> | ||
20 | |||
21 | #include "sst-acpi.h" | ||
22 | |||
23 | static acpi_status sst_acpi_mach_match(acpi_handle handle, u32 level, | ||
24 | void *context, void **ret) | ||
25 | { | ||
26 | *(bool *)context = true; | ||
27 | return AE_OK; | ||
28 | } | ||
29 | |||
30 | struct sst_acpi_mach *sst_acpi_find_machine(struct sst_acpi_mach *machines) | ||
31 | { | ||
32 | struct sst_acpi_mach *mach; | ||
33 | bool found = false; | ||
34 | |||
35 | for (mach = machines; mach->id[0]; mach++) | ||
36 | if (ACPI_SUCCESS(acpi_get_devices(mach->id, | ||
37 | sst_acpi_mach_match, | ||
38 | &found, NULL)) && found) | ||
39 | return mach; | ||
40 | |||
41 | return NULL; | ||
42 | } | ||
43 | EXPORT_SYMBOL_GPL(sst_acpi_find_machine); | ||