mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
ANDROID: goldfish_audio: Enable ACPI-based enumeration for goldfish audio
Follow the same way in which ACPI was enabled for goldfish battery. See commit d3be10e for details. Change-Id: I6ffe38ebc80fb8af8322152370b9d1fd227eaf50 Signed-off-by: Yu Ning <yu.ning@intel.com>
This commit is contained in:
parent
670b5d24dd
commit
038357818e
@ -28,6 +28,7 @@
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/goldfish.h>
|
||||
#include <linux/acpi.h>
|
||||
|
||||
MODULE_AUTHOR("Google, Inc.");
|
||||
MODULE_DESCRIPTION("Android QEMU Audio Driver");
|
||||
@ -351,12 +352,19 @@ static const struct of_device_id goldfish_audio_of_match[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, goldfish_audio_of_match);
|
||||
|
||||
static const struct acpi_device_id goldfish_audio_acpi_match[] = {
|
||||
{ "GFSH0005", 0 },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, goldfish_audio_acpi_match);
|
||||
|
||||
static struct platform_driver goldfish_audio_driver = {
|
||||
.probe = goldfish_audio_probe,
|
||||
.remove = goldfish_audio_remove,
|
||||
.driver = {
|
||||
.name = "goldfish_audio",
|
||||
.of_match_table = goldfish_audio_of_match,
|
||||
.acpi_match_table = ACPI_PTR(goldfish_audio_acpi_match),
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user