1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * HD audio Component Binding Interface
5 * Copyright (C) 2021 Cirrus Logic, Inc. and
6 * Cirrus Logic International Semiconductor Ltd.
9 #include <linux/component.h>
11 #define HDA_MAX_COMPONENTS 4
12 #define HDA_MAX_NAME_SIZE 50
14 struct hda_component {
16 char name[HDA_MAX_NAME_SIZE];
17 struct hda_codec *codec;
18 void (*playback_hook)(struct device *dev, int action);
19 int (*suspend_hook)(struct device *dev);
20 int (*resume_hook)(struct device *dev);