Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
57 lines
1.3 KiB
C
57 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only
|
|
*
|
|
* HDA audio driver for Cirrus Logic CS35L56 smart amp
|
|
*
|
|
* Copyright (C) 2023 Cirrus Logic, Inc. and
|
|
* Cirrus Logic International Semiconductor Ltd.
|
|
*/
|
|
|
|
#ifndef __CS35L56_HDA_H__
|
|
#define __CS35L56_HDA_H__
|
|
|
|
#include <linux/container_of.h>
|
|
#include <linux/device.h>
|
|
#include <linux/gpio/consumer.h>
|
|
#include <linux/firmware/cirrus/cs_dsp.h>
|
|
#include <linux/firmware/cirrus/wmfw.h>
|
|
#include <linux/regulator/consumer.h>
|
|
#include <linux/workqueue.h>
|
|
#include <sound/cs35l56.h>
|
|
|
|
struct dentry;
|
|
|
|
struct cs35l56_hda {
|
|
struct cs35l56_base base;
|
|
struct hda_codec *codec;
|
|
struct work_struct dsp_work;
|
|
|
|
int index;
|
|
const char *system_name;
|
|
const char *amp_name;
|
|
|
|
struct cs_dsp cs_dsp;
|
|
bool playing;
|
|
bool suspended;
|
|
u8 asp_tx_mask;
|
|
|
|
struct snd_kcontrol *posture_ctl;
|
|
struct snd_kcontrol *volume_ctl;
|
|
struct snd_kcontrol *mixer_ctl[4];
|
|
|
|
#if IS_ENABLED(CONFIG_SND_DEBUG)
|
|
struct dentry *debugfs_root;
|
|
#endif
|
|
};
|
|
|
|
static inline struct cs35l56_hda *cs35l56_hda_from_base(struct cs35l56_base *cs35l56_base)
|
|
{
|
|
return container_of(cs35l56_base, struct cs35l56_hda, base);
|
|
}
|
|
|
|
extern const struct dev_pm_ops cs35l56_hda_pm_ops;
|
|
|
|
int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id);
|
|
void cs35l56_hda_remove(struct device *dev);
|
|
|
|
#endif /*__CS35L56_HDA_H__*/
|