summaryrefslogtreecommitdiff
path: root/sound/hda/codecs/side-codecs/aw88399_hda.h
blob: ca0aa5279298e0ebbf773939c7125f47227be90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* SPDX-License-Identifier: GPL-2.0-only
 *
 * AW88399 HDA side codec driver
 */

#ifndef __AW88399_HDA_H__
#define __AW88399_HDA_H__

#include <linux/device.h>
#include <linux/gpio/consumer.h>
#include <sound/aw88399.h>

struct aw88399;
struct aw_device;

struct aw88399_hda {
	struct device *dev;
	struct regmap *regmap;
	struct gpio_desc *reset_gpio;
	struct aw_device *aw_dev;
	struct aw88399 *core;
	bool bsts_unreliable;

	const char *acpi_subsystem_id;
	int index;
	int channel;

	bool playing;
};

int aw88399_hda_probe(struct device *dev, struct regmap *regmap);
void aw88399_hda_remove(struct device *dev);

extern const struct dev_pm_ops aw88399_hda_pm_ops;

#endif /* __AW88399_HDA_H__ */