hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/drm/drm_audio_component.h
....@@ -5,6 +5,7 @@
55 #define _DRM_AUDIO_COMPONENT_H_
66
77 struct drm_audio_component;
8
+struct device;
89
910 /**
1011 * struct drm_audio_component_ops - Ops implemented by DRM driver, called by hda driver
....@@ -18,14 +19,17 @@
1819 * @get_power: get the POWER_DOMAIN_AUDIO power well
1920 *
2021 * Request the power well to be turned on.
22
+ *
23
+ * Returns a wakeref cookie to be passed back to the corresponding
24
+ * call to @put_power.
2125 */
22
- void (*get_power)(struct device *);
26
+ unsigned long (*get_power)(struct device *);
2327 /**
2428 * @put_power: put the POWER_DOMAIN_AUDIO power well
2529 *
2630 * Allow the power well to be turned off.
2731 */
28
- void (*put_power)(struct device *);
32
+ void (*put_power)(struct device *, unsigned long);
2933 /**
3034 * @codec_wake_override: Enable/disable codec wake signal
3135 */
....@@ -113,6 +117,10 @@
113117 * @audio_ops: Ops implemented by hda driver, called by DRM driver
114118 */
115119 const struct drm_audio_component_audio_ops *audio_ops;
120
+ /**
121
+ * @master_bind_complete: completion held during component master binding
122
+ */
123
+ struct completion master_bind_complete;
116124 };
117125
118126 #endif /* _DRM_AUDIO_COMPONENT_H_ */