File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1426,6 +1426,8 @@ const struct sdw_intel_hw_ops sdw_intel_cnl_hw_ops = {
1426
1426
.debugfs_init = intel_debugfs_init ,
1427
1427
.debugfs_exit = intel_debugfs_exit ,
1428
1428
1429
+ .register_dai = intel_register_dai ,
1430
+
1429
1431
.pre_bank_switch = intel_pre_bank_switch ,
1430
1432
.post_bank_switch = intel_post_bank_switch ,
1431
1433
};
@@ -1611,7 +1613,7 @@ int intel_link_startup(struct auxiliary_device *auxdev)
1611
1613
goto err_init ;
1612
1614
1613
1615
/* Register DAIs */
1614
- ret = intel_register_dai (sdw );
1616
+ ret = sdw_intel_register_dai (sdw );
1615
1617
if (ret ) {
1616
1618
dev_err (dev , "DAI registration failed: %d\n" , ret );
1617
1619
goto err_power_up ;
Original file line number Diff line number Diff line change @@ -77,4 +77,11 @@ static inline void sdw_intel_debugfs_exit(struct sdw_intel *sdw)
77
77
SDW_INTEL_OPS (sdw , debugfs_exit )(sdw );
78
78
}
79
79
80
+ static inline int sdw_intel_register_dai (struct sdw_intel * sdw )
81
+ {
82
+ if (SDW_INTEL_CHECK_OPS (sdw , register_dai ))
83
+ return SDW_INTEL_OPS (sdw , register_dai )(sdw );
84
+ return - ENOTSUPP ;
85
+ }
86
+
80
87
#endif /* __SDW_INTEL_LOCAL_H */
Original file line number Diff line number Diff line change @@ -299,13 +299,16 @@ struct sdw_intel;
299
299
/* struct intel_sdw_hw_ops - SoundWire ops for Intel platforms.
300
300
* @debugfs_init: initialize all debugfs capabilities
301
301
* @debugfs_exit: close and cleanup debugfs capabilities
302
+ * @register_dai: read all PDI information and register DAIs
302
303
* @pre_bank_switch: helper for bus management
303
304
* @post_bank_switch: helper for bus management
304
305
*/
305
306
struct sdw_intel_hw_ops {
306
307
void (* debugfs_init )(struct sdw_intel * sdw );
307
308
void (* debugfs_exit )(struct sdw_intel * sdw );
308
309
310
+ int (* register_dai )(struct sdw_intel * sdw );
311
+
309
312
int (* pre_bank_switch )(struct sdw_intel * sdw );
310
313
int (* post_bank_switch )(struct sdw_intel * sdw );
311
314
};
You can’t perform that action at this time.
0 commit comments