1 /* SPDX-License-Identifier: GPL-2.0
3 * CS35L41 ALSA HDA audio driver
5 * Copyright 2021 Cirrus Logic, Inc.
7 * Author: Lucas Tanure <tanureal@opensource.cirrus.com>
10 #ifndef __CS35L41_HDA_H__
11 #define __CS35L41_HDA_H__
13 #include <linux/regulator/consumer.h>
14 #include <linux/gpio/consumer.h>
15 #include <linux/device.h>
16 #include <sound/cs35l41.h>
18 enum cs35l41_hda_spk_pos {
23 enum cs35l41_hda_gpio_function {
32 struct regmap *regmap;
33 struct gpio_desc *reset_gpio;
34 struct cs35l41_hw_cfg hw_cfg;
40 int cs35l41_hda_probe(struct device *dev, const char *device_name, int id, int irq,
41 struct regmap *regmap);
42 void cs35l41_hda_remove(struct device *dev);
44 #endif /*__CS35L41_HDA_H__*/