Skip to content

Commit 57483d0

Browse files
alyssarosenzweigjannau
authored andcommitted
drm/apple: fix audioless build
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
1 parent 1a54266 commit 57483d0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • drivers/gpu/drm/apple

drivers/gpu/drm/apple/av.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
//int avep_audiosrv_startlink(struct apple_dcp *dcp, struct dcp_sound_cookie *cookie);
77
//int avep_audiosrv_stoplink(struct apple_dcp *dcp);
88

9+
#if IS_ENABLED(CONFIG_DRM_APPLE_AUDIO)
910
void av_service_connect(struct apple_dcp *dcp);
1011
void av_service_disconnect(struct apple_dcp *dcp);
12+
#else
13+
static inline void av_service_connect(struct apple_dcp *dcp) { }
14+
static inline void av_service_disconnect(struct apple_dcp *dcp) { }
15+
#endif
1116

1217
#endif /* __AV_H__ */

0 commit comments

Comments
 (0)