#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
-void hda_bus_ml_get_capabilities(struct hdac_bus *bus)
+int hda_bus_ml_get_capabilities(struct hdac_bus *bus)
{
if (bus->mlcap)
- snd_hdac_ext_bus_get_ml_capabilities(bus);
+ return snd_hdac_ext_bus_get_ml_capabilities(bus);
+ return 0;
}
void hda_bus_ml_free(struct hdac_bus *bus)
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
-void hda_bus_ml_get_capabilities(struct hdac_bus *bus);
+int hda_bus_ml_get_capabilities(struct hdac_bus *bus);
void hda_bus_ml_free(struct hdac_bus *bus);
void hda_bus_ml_put_all(struct hdac_bus *bus);
void hda_bus_ml_reset_losidv(struct hdac_bus *bus);
#else
-static inline void hda_bus_ml_get_capabilities(struct hdac_bus *bus) { }
+static inline int hda_bus_ml_get_capabilities(struct hdac_bus *bus) { return 0; }
static inline void hda_bus_ml_free(struct hdac_bus *bus) { }
static inline void hda_bus_ml_put_all(struct hdac_bus *bus) { }
static inline void hda_bus_ml_reset_losidv(struct hdac_bus *bus) { }