* @mlcap: MultiLink capabilities pointer
  * @gtscap: gts capabilities pointer
  * @drsmcap: dma resume capabilities pointer
+ * @num_streams: streams supported
+ * @idx: HDA link index
+ * @hlink_list: link list of HDA links
+ * @lock: lock for link mgmt
+ * @cmd_dma_state: state of cmd DMAs: CORB and RIRB
  */
 struct hdac_bus {
        struct device *dev;
        /* i915 component interface */
        struct i915_audio_component *audio_component;
        int i915_power_refcount;
+
+       /* parameters required for enhanced capabilities */
+       int num_streams;
+       int idx;
+
+       struct list_head hlink_list;
+
+       struct mutex lock;
+       bool cmd_dma_state;
+
 };
 
 int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev,
 
 
 #include <sound/hdaudio.h>
 
-/**
- * hdac_ext_bus: HDAC extended bus for extended HDA caps
- *
- * @bus: hdac bus
- * @num_streams: streams supported
- * @hlink_list: link list of HDA links
- * @lock: lock for link mgmt
- * @cmd_dma_state: state of cmd DMAs: CORB and RIRB
- */
-struct hdac_ext_bus {
-       struct hdac_bus bus;
-       int num_streams;
-       int idx;
-
-       struct list_head hlink_list;
-
-       struct mutex lock;
-       bool cmd_dma_state;
-};
-
-int snd_hdac_ext_bus_init(struct hdac_ext_bus *sbus, struct device *dev,
+int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev,
                      const struct hdac_bus_ops *ops,
                      const struct hdac_io_ops *io_ops);
 
-void snd_hdac_ext_bus_exit(struct hdac_ext_bus *sbus);
-int snd_hdac_ext_bus_device_init(struct hdac_ext_bus *sbus, int addr);
+void snd_hdac_ext_bus_exit(struct hdac_bus *bus);
+int snd_hdac_ext_bus_device_init(struct hdac_bus *bus, int addr);
 void snd_hdac_ext_bus_device_exit(struct hdac_device *hdev);
-void snd_hdac_ext_bus_device_remove(struct hdac_ext_bus *ebus);
-
-#define ebus_to_hbus(ebus)     (&(ebus)->bus)
-#define hbus_to_ebus(_bus) \
-       container_of(_bus, struct hdac_ext_bus, bus)
+void snd_hdac_ext_bus_device_remove(struct hdac_bus *bus);
 
 #define HDA_CODEC_REV_EXT_ENTRY(_vid, _rev, _name, drv_data) \
        { .vendor_id = (_vid), .rev_id = (_rev), .name = (_name), \
 #define HDA_CODEC_EXT_ENTRY(_vid, _revid, _name, _drv_data) \
        HDA_CODEC_REV_EXT_ENTRY(_vid, _revid, _name, _drv_data)
 
-void snd_hdac_ext_bus_ppcap_enable(struct hdac_ext_bus *chip, bool enable);
-void snd_hdac_ext_bus_ppcap_int_enable(struct hdac_ext_bus *chip, bool enable);
+void snd_hdac_ext_bus_ppcap_enable(struct hdac_bus *chip, bool enable);
+void snd_hdac_ext_bus_ppcap_int_enable(struct hdac_bus *chip, bool enable);
 
-void snd_hdac_ext_stream_spbcap_enable(struct hdac_ext_bus *chip,
+void snd_hdac_ext_stream_spbcap_enable(struct hdac_bus *chip,
                                 bool enable, int index);
 
-int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_ext_bus *bus);
-struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_ext_bus *bus,
+int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_bus *bus);
+struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_bus *bus,
                                                const char *codec_name);
 
 enum hdac_ext_stream_type {
 #define stream_to_hdac_ext_stream(s) \
        container_of(s, struct hdac_ext_stream, hstream)
 
-void snd_hdac_ext_stream_init(struct hdac_ext_bus *bus,
+void snd_hdac_ext_stream_init(struct hdac_bus *bus,
                                struct hdac_ext_stream *stream, int idx,
                                int direction, int tag);
-int snd_hdac_ext_stream_init_all(struct hdac_ext_bus *ebus, int start_idx,
+int snd_hdac_ext_stream_init_all(struct hdac_bus *bus, int start_idx,
                int num_stream, int dir);
-void snd_hdac_stream_free_all(struct hdac_ext_bus *ebus);
-void snd_hdac_link_free_all(struct hdac_ext_bus *ebus);
-struct hdac_ext_stream *snd_hdac_ext_stream_assign(struct hdac_ext_bus *bus,
+void snd_hdac_stream_free_all(struct hdac_bus *bus);
+void snd_hdac_link_free_all(struct hdac_bus *bus);
+struct hdac_ext_stream *snd_hdac_ext_stream_assign(struct hdac_bus *bus,
                                           struct snd_pcm_substream *substream,
                                           int type);
 void snd_hdac_ext_stream_release(struct hdac_ext_stream *azx_dev, int type);
-void snd_hdac_ext_stream_decouple(struct hdac_ext_bus *bus,
+void snd_hdac_ext_stream_decouple(struct hdac_bus *bus,
                                struct hdac_ext_stream *azx_dev, bool decouple);
-void snd_hdac_ext_stop_streams(struct hdac_ext_bus *sbus);
+void snd_hdac_ext_stop_streams(struct hdac_bus *bus);
 
-int snd_hdac_ext_stream_set_spib(struct hdac_ext_bus *ebus,
+int snd_hdac_ext_stream_set_spib(struct hdac_bus *bus,
                                 struct hdac_ext_stream *stream, u32 value);
-int snd_hdac_ext_stream_get_spbmaxfifo(struct hdac_ext_bus *ebus,
+int snd_hdac_ext_stream_get_spbmaxfifo(struct hdac_bus *bus,
                                 struct hdac_ext_stream *stream);
-void snd_hdac_ext_stream_drsm_enable(struct hdac_ext_bus *ebus,
+void snd_hdac_ext_stream_drsm_enable(struct hdac_bus *bus,
                                bool enable, int index);
-int snd_hdac_ext_stream_set_dpibr(struct hdac_ext_bus *ebus,
+int snd_hdac_ext_stream_set_dpibr(struct hdac_bus *bus,
                                struct hdac_ext_stream *stream, u32 value);
 int snd_hdac_ext_stream_set_lpib(struct hdac_ext_stream *stream, u32 value);
 
 
 int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *link);
 int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *link);
-int snd_hdac_ext_bus_link_power_up_all(struct hdac_ext_bus *ebus);
-int snd_hdac_ext_bus_link_power_down_all(struct hdac_ext_bus *ebus);
+int snd_hdac_ext_bus_link_power_up_all(struct hdac_bus *bus);
+int snd_hdac_ext_bus_link_power_down_all(struct hdac_bus *bus);
 void snd_hdac_ext_link_set_stream_id(struct hdac_ext_link *link,
                                 int stream);
 void snd_hdac_ext_link_clear_stream_id(struct hdac_ext_link *link,
                                 int stream);
 
-int snd_hdac_ext_bus_link_get(struct hdac_ext_bus *ebus,
-                               struct hdac_ext_link *link);
-int snd_hdac_ext_bus_link_put(struct hdac_ext_bus *ebus,
-                               struct hdac_ext_link *link);
+int snd_hdac_ext_bus_link_get(struct hdac_bus *bus, struct hdac_ext_link *link);
+int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *link);
 
 /* update register macro */
 #define snd_hdac_updatel(addr, reg, mask, val)         \
 
  *
  * Returns 0 if successful, or a negative error code.
  */
-int snd_hdac_ext_bus_init(struct hdac_ext_bus *ebus, struct device *dev,
+int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev,
                        const struct hdac_bus_ops *ops,
                        const struct hdac_io_ops *io_ops)
 {
        if (io_ops == NULL)
                io_ops = &hdac_ext_default_io;
 
-       ret = snd_hdac_bus_init(&ebus->bus, dev, ops, io_ops);
+       ret = snd_hdac_bus_init(bus, dev, ops, io_ops);
        if (ret < 0)
                return ret;
 
-       INIT_LIST_HEAD(&ebus->hlink_list);
-       ebus->idx = idx++;
+       INIT_LIST_HEAD(&bus->hlink_list);
+       bus->idx = idx++;
 
-       mutex_init(&ebus->lock);
-       ebus->cmd_dma_state = true;
+       mutex_init(&bus->lock);
+       bus->cmd_dma_state = true;
 
        return 0;
 }
  * snd_hdac_ext_bus_exit - clean up a HD-audio extended bus
  * @ebus: the pointer to extended bus object
  */
-void snd_hdac_ext_bus_exit(struct hdac_ext_bus *ebus)
+void snd_hdac_ext_bus_exit(struct hdac_bus *bus)
 {
-       snd_hdac_bus_exit(&ebus->bus);
-       WARN_ON(!list_empty(&ebus->hlink_list));
+       snd_hdac_bus_exit(bus);
+       WARN_ON(!list_empty(&bus->hlink_list));
 }
 EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_exit);
 
  *
  * Returns zero for success or a negative error code.
  */
-int snd_hdac_ext_bus_device_init(struct hdac_ext_bus *ebus, int addr)
+int snd_hdac_ext_bus_device_init(struct hdac_bus *bus, int addr)
 {
        struct hdac_device *hdev = NULL;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
        char name[15];
        int ret;
 
 
        hdev->bus = bus;
 
-       snprintf(name, sizeof(name), "ehdaudio%dD%d", ebus->idx, addr);
+       snprintf(name, sizeof(name), "ehdaudio%dD%d", bus->idx, addr);
 
        ret  = snd_hdac_device_init(hdev, bus, name, addr);
        if (ret < 0) {
  *
  * @ebus: HD-audio extended bus
  */
-void snd_hdac_ext_bus_device_remove(struct hdac_ext_bus *ebus)
+void snd_hdac_ext_bus_device_remove(struct hdac_bus *bus)
 {
        struct hdac_device *codec, *__codec;
        /*
         * we need to remove all the codec devices objects created in the
         * snd_hdac_ext_bus_device_init
         */
-       list_for_each_entry_safe(codec, __codec, &ebus->bus.codec_list, list) {
+       list_for_each_entry_safe(codec, __codec, &bus->codec_list, list) {
                snd_hdac_device_unregister(codec);
                put_device(&codec->dev);
        }
 
  * @ebus: HD-audio extended core bus
  * @enable: flag to turn on/off the capability
  */
-void snd_hdac_ext_bus_ppcap_enable(struct hdac_ext_bus *ebus, bool enable)
+void snd_hdac_ext_bus_ppcap_enable(struct hdac_bus *bus, bool enable)
 {
-       struct hdac_bus *bus = &ebus->bus;
 
        if (!bus->ppcap) {
                dev_err(bus->dev, "Address of PP capability is NULL");
  * @ebus: HD-audio extended core bus
  * @enable: flag to enable/disable interrupt
  */
-void snd_hdac_ext_bus_ppcap_int_enable(struct hdac_ext_bus *ebus, bool enable)
+void snd_hdac_ext_bus_ppcap_int_enable(struct hdac_bus *bus, bool enable)
 {
-       struct hdac_bus *bus = &ebus->bus;
 
        if (!bus->ppcap) {
                dev_err(bus->dev, "Address of PP capability is NULL\n");
  * in hlink_list of extended hdac bus
  * Note: this will be freed on bus exit by driver
  */
-int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_ext_bus *ebus)
+int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_bus *bus)
 {
        int idx;
        u32 link_count;
        struct hdac_ext_link *hlink;
-       struct hdac_bus *bus = &ebus->bus;
 
        link_count = readl(bus->mlcap + AZX_REG_ML_MLCD) + 1;
 
                /* since link in On, update the ref */
                hlink->ref_count = 1;
 
-               list_add_tail(&hlink->list, &ebus->hlink_list);
+               list_add_tail(&hlink->list, &bus->hlink_list);
        }
 
        return 0;
  * @ebus: HD-audio ext core bus
  */
 
-void snd_hdac_link_free_all(struct hdac_ext_bus *ebus)
+void snd_hdac_link_free_all(struct hdac_bus *bus)
 {
        struct hdac_ext_link *l;
 
-       while (!list_empty(&ebus->hlink_list)) {
-               l = list_first_entry(&ebus->hlink_list, struct hdac_ext_link, list);
+       while (!list_empty(&bus->hlink_list)) {
+               l = list_first_entry(&bus->hlink_list, struct hdac_ext_link, list);
                list_del(&l->list);
                kfree(l);
        }
  * @ebus: HD-audio extended core bus
  * @codec_name: codec name
  */
-struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_ext_bus *ebus,
+struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_bus *bus,
                                                 const char *codec_name)
 {
        int i;
 
        if (sscanf(codec_name, "ehdaudio%dD%d", &bus_idx, &addr) != 2)
                return NULL;
-       if (ebus->idx != bus_idx)
+       if (bus->idx != bus_idx)
                return NULL;
 
-       list_for_each_entry(hlink, &ebus->hlink_list, list) {
+       list_for_each_entry(hlink, &bus->hlink_list, list) {
                for (i = 0; i < HDA_MAX_CODECS; i++) {
                        if (hlink->lsdiid & (0x1 << addr))
                                return hlink;
  * snd_hdac_ext_bus_link_power_up_all -power up all hda link
  * @ebus: HD-audio extended bus
  */
-int snd_hdac_ext_bus_link_power_up_all(struct hdac_ext_bus *ebus)
+int snd_hdac_ext_bus_link_power_up_all(struct hdac_bus *bus)
 {
        struct hdac_ext_link *hlink = NULL;
        int ret;
 
-       list_for_each_entry(hlink, &ebus->hlink_list, list) {
+       list_for_each_entry(hlink, &bus->hlink_list, list) {
                snd_hdac_updatel(hlink->ml_addr,
                                AZX_REG_ML_LCTL, 0, AZX_MLCTL_SPA);
                ret = check_hdac_link_power_active(hlink, true);
  * snd_hdac_ext_bus_link_power_down_all -power down all hda link
  * @ebus: HD-audio extended bus
  */
-int snd_hdac_ext_bus_link_power_down_all(struct hdac_ext_bus *ebus)
+int snd_hdac_ext_bus_link_power_down_all(struct hdac_bus *bus)
 {
        struct hdac_ext_link *hlink = NULL;
        int ret;
 
-       list_for_each_entry(hlink, &ebus->hlink_list, list) {
+       list_for_each_entry(hlink, &bus->hlink_list, list) {
                snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, AZX_MLCTL_SPA, 0);
                ret = check_hdac_link_power_active(hlink, false);
                if (ret < 0)
 }
 EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_link_power_down_all);
 
-int snd_hdac_ext_bus_link_get(struct hdac_ext_bus *ebus,
+int snd_hdac_ext_bus_link_get(struct hdac_bus *bus,
                                struct hdac_ext_link *link)
 {
        int ret = 0;
 
-       mutex_lock(&ebus->lock);
+       mutex_lock(&bus->lock);
 
        /*
         * if we move from 0 to 1, count will be 1 so power up this link
         * as well, also check the dma status and trigger that
         */
        if (++link->ref_count == 1) {
-               if (!ebus->cmd_dma_state) {
-                       snd_hdac_bus_init_cmd_io(&ebus->bus);
-                       ebus->cmd_dma_state = true;
+               if (!bus->cmd_dma_state) {
+                       snd_hdac_bus_init_cmd_io(bus);
+                       bus->cmd_dma_state = true;
                }
 
                ret = snd_hdac_ext_bus_link_power_up(link);
        }
 
-       mutex_unlock(&ebus->lock);
+       mutex_unlock(&bus->lock);
        return ret;
 }
 EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_link_get);
 
-int snd_hdac_ext_bus_link_put(struct hdac_ext_bus *ebus,
+int snd_hdac_ext_bus_link_put(struct hdac_bus *bus,
                                struct hdac_ext_link *link)
 {
        int ret = 0;
        struct hdac_ext_link *hlink;
        bool link_up = false;
 
-       mutex_lock(&ebus->lock);
+       mutex_lock(&bus->lock);
 
        /*
         * if we move from 1 to 0, count will be 0
                 * now check if all links are off, if so turn off
                 * cmd dma as well
                 */
-               list_for_each_entry(hlink, &ebus->hlink_list, list) {
+               list_for_each_entry(hlink, &bus->hlink_list, list) {
                        if (hlink->ref_count) {
                                link_up = true;
                                break;
                }
 
                if (!link_up) {
-                       snd_hdac_bus_stop_cmd_io(&ebus->bus);
-                       ebus->cmd_dma_state = false;
+                       snd_hdac_bus_stop_cmd_io(bus);
+                       bus->cmd_dma_state = false;
                }
        }
 
-       mutex_unlock(&ebus->lock);
+       mutex_unlock(&bus->lock);
        return ret;
 }
 EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_link_put);
 
 
 /**
  * snd_hdac_ext_stream_init - initialize each stream (aka device)
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @stream: HD-audio ext core stream object to initialize
  * @idx: stream index number
  * @direction: stream direction (SNDRV_PCM_STREAM_PLAYBACK or SNDRV_PCM_STREAM_CAPTURE)
  * initialize the stream, if ppcap is enabled then init those and then
  * invoke hdac stream initialization routine
  */
-void snd_hdac_ext_stream_init(struct hdac_ext_bus *ebus,
+void snd_hdac_ext_stream_init(struct hdac_bus *bus,
                                struct hdac_ext_stream *stream,
                                int idx, int direction, int tag)
 {
-       struct hdac_bus *bus = &ebus->bus;
-
        if (bus->ppcap) {
                stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE +
                                AZX_PPHC_INTERVAL * idx;
 
                stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE +
-                               AZX_PPLC_MULTI * ebus->num_streams +
+                               AZX_PPLC_MULTI * bus->num_streams +
                                AZX_PPLC_INTERVAL * idx;
        }
 
 /**
  * snd_hdac_ext_stream_init_all - create and initialize the stream objects
  *   for an extended hda bus
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @start_idx: start index for streams
  * @num_stream: number of streams to initialize
  * @dir: direction of streams
  */
-int snd_hdac_ext_stream_init_all(struct hdac_ext_bus *ebus, int start_idx,
+int snd_hdac_ext_stream_init_all(struct hdac_bus *bus, int start_idx,
                int num_stream, int dir)
 {
        int stream_tag = 0;
                if (!stream)
                        return -ENOMEM;
                tag = ++stream_tag;
-               snd_hdac_ext_stream_init(ebus, stream, idx, dir, tag);
+               snd_hdac_ext_stream_init(bus, stream, idx, dir, tag);
                idx++;
        }
 
 /**
  * snd_hdac_stream_free_all - free hdac extended stream objects
  *
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  */
-void snd_hdac_stream_free_all(struct hdac_ext_bus *ebus)
+void snd_hdac_stream_free_all(struct hdac_bus *bus)
 {
        struct hdac_stream *s, *_s;
        struct hdac_ext_stream *stream;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
 
        list_for_each_entry_safe(s, _s, &bus->stream_list, list) {
                stream = stream_to_hdac_ext_stream(s);
-               snd_hdac_ext_stream_decouple(ebus, stream, false);
+               snd_hdac_ext_stream_decouple(bus, stream, false);
                list_del(&s->list);
                kfree(stream);
        }
 
 /**
  * snd_hdac_ext_stream_decouple - decouple the hdac stream
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @stream: HD-audio ext core stream object to initialize
  * @decouple: flag to decouple
  */
-void snd_hdac_ext_stream_decouple(struct hdac_ext_bus *ebus,
+void snd_hdac_ext_stream_decouple(struct hdac_bus *bus,
                                struct hdac_ext_stream *stream, bool decouple)
 {
        struct hdac_stream *hstream = &stream->hstream;
-       struct hdac_bus *bus = &ebus->bus;
        u32 val;
        int mask = AZX_PPCTL_PROCEN(hstream->index);
 
 EXPORT_SYMBOL_GPL(snd_hdac_ext_link_clear_stream_id);
 
 static struct hdac_ext_stream *
-hdac_ext_link_stream_assign(struct hdac_ext_bus *ebus,
+hdac_ext_link_stream_assign(struct hdac_bus *bus,
                                struct snd_pcm_substream *substream)
 {
        struct hdac_ext_stream *res = NULL;
        struct hdac_stream *stream = NULL;
-       struct hdac_bus *hbus = &ebus->bus;
 
-       if (!hbus->ppcap) {
-               dev_err(hbus->dev, "stream type not supported\n");
+       if (!bus->ppcap) {
+               dev_err(bus->dev, "stream type not supported\n");
                return NULL;
        }
 
-       list_for_each_entry(stream, &hbus->stream_list, list) {
+       list_for_each_entry(stream, &bus->stream_list, list) {
                struct hdac_ext_stream *hstream = container_of(stream,
                                                struct hdac_ext_stream,
                                                hstream);
                }
 
                if (!hstream->link_locked) {
-                       snd_hdac_ext_stream_decouple(ebus, hstream, true);
+                       snd_hdac_ext_stream_decouple(bus, hstream, true);
                        res = hstream;
                        break;
                }
        }
        if (res) {
-               spin_lock_irq(&hbus->reg_lock);
+               spin_lock_irq(&bus->reg_lock);
                res->link_locked = 1;
                res->link_substream = substream;
-               spin_unlock_irq(&hbus->reg_lock);
+               spin_unlock_irq(&bus->reg_lock);
        }
        return res;
 }
 
 static struct hdac_ext_stream *
-hdac_ext_host_stream_assign(struct hdac_ext_bus *ebus,
+hdac_ext_host_stream_assign(struct hdac_bus *bus,
                                struct snd_pcm_substream *substream)
 {
        struct hdac_ext_stream *res = NULL;
        struct hdac_stream *stream = NULL;
-       struct hdac_bus *hbus = &ebus->bus;
 
-       if (!hbus->ppcap) {
-               dev_err(hbus->dev, "stream type not supported\n");
+       if (!bus->ppcap) {
+               dev_err(bus->dev, "stream type not supported\n");
                return NULL;
        }
 
-       list_for_each_entry(stream, &hbus->stream_list, list) {
+       list_for_each_entry(stream, &bus->stream_list, list) {
                struct hdac_ext_stream *hstream = container_of(stream,
                                                struct hdac_ext_stream,
                                                hstream);
 
                if (!stream->opened) {
                        if (!hstream->decoupled)
-                               snd_hdac_ext_stream_decouple(ebus, hstream, true);
+                               snd_hdac_ext_stream_decouple(bus, hstream, true);
                        res = hstream;
                        break;
                }
        }
        if (res) {
-               spin_lock_irq(&hbus->reg_lock);
+               spin_lock_irq(&bus->reg_lock);
                res->hstream.opened = 1;
                res->hstream.running = 0;
                res->hstream.substream = substream;
-               spin_unlock_irq(&hbus->reg_lock);
+               spin_unlock_irq(&bus->reg_lock);
        }
 
        return res;
 
 /**
  * snd_hdac_ext_stream_assign - assign a stream for the PCM
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @substream: PCM substream to assign
  * @type: type of stream (coupled, host or link stream)
  *
  * the same stream object when it's used beforehand.  when a stream is
  * decoupled, it becomes a host stream and link stream.
  */
-struct hdac_ext_stream *snd_hdac_ext_stream_assign(struct hdac_ext_bus *ebus,
+struct hdac_ext_stream *snd_hdac_ext_stream_assign(struct hdac_bus *bus,
                                           struct snd_pcm_substream *substream,
                                           int type)
 {
        struct hdac_ext_stream *hstream = NULL;
        struct hdac_stream *stream = NULL;
-       struct hdac_bus *hbus = &ebus->bus;
 
        switch (type) {
        case HDAC_EXT_STREAM_TYPE_COUPLED:
-               stream = snd_hdac_stream_assign(hbus, substream);
+               stream = snd_hdac_stream_assign(bus, substream);
                if (stream)
                        hstream = container_of(stream,
                                        struct hdac_ext_stream, hstream);
                return hstream;
 
        case HDAC_EXT_STREAM_TYPE_HOST:
-               return hdac_ext_host_stream_assign(ebus, substream);
+               return hdac_ext_host_stream_assign(bus, substream);
 
        case HDAC_EXT_STREAM_TYPE_LINK:
-               return hdac_ext_link_stream_assign(ebus, substream);
+               return hdac_ext_link_stream_assign(bus, substream);
 
        default:
                return NULL;
 void snd_hdac_ext_stream_release(struct hdac_ext_stream *stream, int type)
 {
        struct hdac_bus *bus = stream->hstream.bus;
-       struct hdac_ext_bus *ebus = hbus_to_ebus(bus);
 
        switch (type) {
        case HDAC_EXT_STREAM_TYPE_COUPLED:
 
        case HDAC_EXT_STREAM_TYPE_HOST:
                if (stream->decoupled && !stream->link_locked)
-                       snd_hdac_ext_stream_decouple(ebus, stream, false);
+                       snd_hdac_ext_stream_decouple(bus, stream, false);
                snd_hdac_stream_release(&stream->hstream);
                break;
 
        case HDAC_EXT_STREAM_TYPE_LINK:
                if (stream->decoupled && !stream->hstream.opened)
-                       snd_hdac_ext_stream_decouple(ebus, stream, false);
+                       snd_hdac_ext_stream_decouple(bus, stream, false);
                spin_lock_irq(&bus->reg_lock);
                stream->link_locked = 0;
                stream->link_substream = NULL;
 
 /**
  * snd_hdac_ext_stream_spbcap_enable - enable SPIB for a stream
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @enable: flag to enable/disable SPIB
  * @index: stream index for which SPIB need to be enabled
  */
-void snd_hdac_ext_stream_spbcap_enable(struct hdac_ext_bus *ebus,
+void snd_hdac_ext_stream_spbcap_enable(struct hdac_bus *bus,
                                 bool enable, int index)
 {
        u32 mask = 0;
        u32 register_mask = 0;
-       struct hdac_bus *bus = &ebus->bus;
 
        if (!bus->spbcap) {
                dev_err(bus->dev, "Address of SPB capability is NULL\n");
 
 /**
  * snd_hdac_ext_stream_set_spib - sets the spib value of a stream
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @stream: hdac_ext_stream
  * @value: spib value to set
  */
-int snd_hdac_ext_stream_set_spib(struct hdac_ext_bus *ebus,
+int snd_hdac_ext_stream_set_spib(struct hdac_bus *bus,
                                 struct hdac_ext_stream *stream, u32 value)
 {
-       struct hdac_bus *bus = &ebus->bus;
 
        if (!bus->spbcap) {
                dev_err(bus->dev, "Address of SPB capability is NULL\n");
 
 /**
  * snd_hdac_ext_stream_get_spbmaxfifo - gets the spib value of a stream
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @stream: hdac_ext_stream
  *
  * Return maxfifo for the stream
  */
-int snd_hdac_ext_stream_get_spbmaxfifo(struct hdac_ext_bus *ebus,
+int snd_hdac_ext_stream_get_spbmaxfifo(struct hdac_bus *bus,
                                 struct hdac_ext_stream *stream)
 {
-       struct hdac_bus *bus = &ebus->bus;
 
        if (!bus->spbcap) {
                dev_err(bus->dev, "Address of SPB capability is NULL\n");
 
 /**
  * snd_hdac_ext_stop_streams - stop all stream if running
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  */
-void snd_hdac_ext_stop_streams(struct hdac_ext_bus *ebus)
+void snd_hdac_ext_stop_streams(struct hdac_bus *bus)
 {
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
        struct hdac_stream *stream;
 
        if (bus->chip_init) {
 
 /**
  * snd_hdac_ext_stream_drsm_enable - enable DMA resume for a stream
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @enable: flag to enable/disable DRSM
  * @index: stream index for which DRSM need to be enabled
  */
-void snd_hdac_ext_stream_drsm_enable(struct hdac_ext_bus *ebus,
+void snd_hdac_ext_stream_drsm_enable(struct hdac_bus *bus,
                                bool enable, int index)
 {
        u32 mask = 0;
        u32 register_mask = 0;
-       struct hdac_bus *bus = &ebus->bus;
 
        if (!bus->drsmcap) {
                dev_err(bus->dev, "Address of DRSM capability is NULL\n");
 
 /**
  * snd_hdac_ext_stream_set_dpibr - sets the dpibr value of a stream
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @stream: hdac_ext_stream
  * @value: dpib value to set
  */
-int snd_hdac_ext_stream_set_dpibr(struct hdac_ext_bus *ebus,
+int snd_hdac_ext_stream_set_dpibr(struct hdac_bus *bus,
                                 struct hdac_ext_stream *stream, u32 value)
 {
-       struct hdac_bus *bus = &ebus->bus;
 
        if (!bus->drsmcap) {
                dev_err(bus->dev, "Address of DRSM capability is NULL\n");
 
 /**
  * snd_hdac_ext_stream_set_lpib - sets the lpib value of a stream
- * @ebus: HD-audio ext core bus
+ * @bus: HD-audio core bus
  * @stream: hdac_ext_stream
  * @value: lpib value to set
  */
 
         * hold the ref while we probe, also no need to drop the ref on
         * exit, we call pm_runtime_suspend() so that will do for us
         */
-       hlink = snd_hdac_ext_bus_get_link(hbus_to_ebus(hdev->bus),
-                                               dev_name(&hdev->dev));
+       hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev));
        if (!hlink) {
                dev_err(&hdev->dev, "hdac link not found\n");
                return -EIO;
        }
 
-       snd_hdac_ext_bus_link_get(hbus_to_ebus(hdev->bus), hlink);
+       snd_hdac_ext_bus_link_get(hdev->bus, hlink);
 
        ret = create_fill_widget_route_map(dapm);
        if (ret < 0)
        const struct hda_device_id *hdac_id = hdac_get_device_id(hdev, hdrv);
 
        /* hold the ref while we probe */
-       hlink = snd_hdac_ext_bus_get_link(hbus_to_ebus(hdev->bus),
-                                               dev_name(&hdev->dev));
+       hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev));
        if (!hlink) {
                dev_err(&hdev->dev, "hdac link not found\n");
                return -EIO;
        }
 
-       snd_hdac_ext_bus_link_get(hbus_to_ebus(hdev->bus), hlink);
+       snd_hdac_ext_bus_link_get(hdev->bus, hlink);
 
        hdmi_priv = devm_kzalloc(&hdev->dev, sizeof(*hdmi_priv), GFP_KERNEL);
        if (hdmi_priv == NULL)
        ret = devm_snd_soc_register_component(&hdev->dev, &hdmi_hda_codec,
                                        hdmi_dais, num_dais);
 
-       snd_hdac_ext_bus_link_put(hbus_to_ebus(hdev->bus), hlink);
+       snd_hdac_ext_bus_link_put(hdev->bus, hlink);
 
        return ret;
 }
 {
        struct hdac_device *hdev = dev_to_hdac_dev(dev);
        struct hdac_bus *bus = hdev->bus;
-       struct hdac_ext_bus *ebus = hbus_to_ebus(bus);
        struct hdac_ext_link *hlink = NULL;
        int err;
 
                return err;
        }
 
-       hlink = snd_hdac_ext_bus_get_link(ebus, dev_name(dev));
+       hlink = snd_hdac_ext_bus_get_link(bus, dev_name(dev));
        if (!hlink) {
                dev_err(dev, "hdac link not found\n");
                return -EIO;
        }
 
-       snd_hdac_ext_bus_link_put(ebus, hlink);
+       snd_hdac_ext_bus_link_put(bus, hlink);
 
        return 0;
 }
 {
        struct hdac_device *hdev = dev_to_hdac_dev(dev);
        struct hdac_bus *bus = hdev->bus;
-       struct hdac_ext_bus *ebus = hbus_to_ebus(bus);
        struct hdac_ext_link *hlink = NULL;
        int err;
 
        if (!bus)
                return 0;
 
-       hlink = snd_hdac_ext_bus_get_link(ebus, dev_name(dev));
+       hlink = snd_hdac_ext_bus_get_link(bus, dev_name(dev));
        if (!hlink) {
                dev_err(dev, "hdac link not found\n");
                return -EIO;
        }
 
-       snd_hdac_ext_bus_link_get(ebus, hlink);
+       snd_hdac_ext_bus_link_get(bus, hlink);
 
        err = snd_hdac_display_power(bus, true);
        if (err < 0) {
 
 static int skl_alloc_dma_buf(struct device *dev,
                struct snd_dma_buffer *dmab, size_t size)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
 
        if (!bus)
                return -ENODEV;
 
 static int skl_free_dma_buf(struct device *dev, struct snd_dma_buffer *dmab)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
 
        if (!bus)
                return -ENODEV;
 static int skl_dsp_setup_spib(struct device *dev, unsigned int size,
                                int stream_tag, int enable)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
        struct hdac_stream *stream = snd_hdac_get_stream(bus,
                        SNDRV_PCM_STREAM_PLAYBACK, stream_tag);
        struct hdac_ext_stream *estream;
 
        estream = stream_to_hdac_ext_stream(stream);
        /* enable/disable SPIB for this hdac stream */
-       snd_hdac_ext_stream_spbcap_enable(ebus, enable, stream->index);
+       snd_hdac_ext_stream_spbcap_enable(bus, enable, stream->index);
 
        /* set the spib value */
-       snd_hdac_ext_stream_set_spib(ebus, estream, size);
+       snd_hdac_ext_stream_set_spib(bus, estream, size);
 
        return 0;
 }
 static int skl_dsp_prepare(struct device *dev, unsigned int format,
                        unsigned int size, struct snd_dma_buffer *dmab)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
        struct hdac_ext_stream *estream;
        struct hdac_stream *stream;
        struct snd_pcm_substream substream;
        memset(&substream, 0, sizeof(substream));
        substream.stream = SNDRV_PCM_STREAM_PLAYBACK;
 
-       estream = snd_hdac_ext_stream_assign(ebus, &substream,
+       estream = snd_hdac_ext_stream_assign(bus, &substream,
                                        HDAC_EXT_STREAM_TYPE_HOST);
        if (!estream)
                return -ENODEV;
 
 static int skl_dsp_trigger(struct device *dev, bool start, int stream_tag)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
        struct hdac_stream *stream;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
 
        if (!bus)
                return -ENODEV;
 static int skl_dsp_cleanup(struct device *dev,
                struct snd_dma_buffer *dmab, int stream_tag)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
        struct hdac_stream *stream;
        struct hdac_ext_stream *estream;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
 
        if (!bus)
                return -ENODEV;
 int skl_init_dsp(struct skl *skl)
 {
        void __iomem *mmio_base;
-       struct hdac_ext_bus *ebus = &skl->ebus;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = skl_to_bus(skl);
        struct skl_dsp_loader_ops loader_ops;
        int irq = bus->irq;
        const struct skl_dsp_ops *ops;
        int ret;
 
        /* enable ppcap interrupt */
-       snd_hdac_ext_bus_ppcap_enable(&skl->ebus, true);
-       snd_hdac_ext_bus_ppcap_int_enable(&skl->ebus, true);
+       snd_hdac_ext_bus_ppcap_enable(bus, true);
+       snd_hdac_ext_bus_ppcap_int_enable(bus, true);
 
        /* read the BAR of the ADSP MMIO */
        mmio_base = pci_ioremap_bar(skl->pci, 4);
 
 int skl_free_dsp(struct skl *skl)
 {
-       struct hdac_ext_bus *ebus = &skl->ebus;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = skl_to_bus(skl);
        struct skl_sst *ctx = skl->skl_sst;
 
        /* disable  ppcap interrupt */
-       snd_hdac_ext_bus_ppcap_int_enable(&skl->ebus, false);
+       snd_hdac_ext_bus_ppcap_int_enable(bus, false);
 
        ctx->dsp_ops->cleanup(bus->dev, ctx);
 
 int skl_suspend_dsp(struct skl *skl)
 {
        struct skl_sst *ctx = skl->skl_sst;
+       struct hdac_bus *bus = skl_to_bus(skl);
        int ret;
 
        /* if ppcap is not supported return 0 */
-       if (!skl->ebus.bus.ppcap)
+       if (!bus->ppcap)
                return 0;
 
        ret = skl_dsp_sleep(ctx->dsp);
                return ret;
 
        /* disable ppcap interrupt */
-       snd_hdac_ext_bus_ppcap_int_enable(&skl->ebus, false);
-       snd_hdac_ext_bus_ppcap_enable(&skl->ebus, false);
+       snd_hdac_ext_bus_ppcap_int_enable(bus, false);
+       snd_hdac_ext_bus_ppcap_enable(bus, false);
 
        return 0;
 }
 int skl_resume_dsp(struct skl *skl)
 {
        struct skl_sst *ctx = skl->skl_sst;
+       struct hdac_bus *bus = skl_to_bus(skl);
        int ret;
 
        /* if ppcap is not supported return 0 */
-       if (!skl->ebus.bus.ppcap)
+       if (!bus->ppcap)
                return 0;
 
        /* enable ppcap interrupt */
-       snd_hdac_ext_bus_ppcap_enable(&skl->ebus, true);
-       snd_hdac_ext_bus_ppcap_int_enable(&skl->ebus, true);
+       snd_hdac_ext_bus_ppcap_enable(bus, true);
+       snd_hdac_ext_bus_ppcap_int_enable(bus, true);
 
        /* check if DSP 1st boot is done */
        if (skl->skl_sst->is_first_boot == true)
 
 {
        struct nhlt_fmt *fmt;
        struct nhlt_endpoint *epnt;
-       struct hdac_bus *bus = ebus_to_hbus(&skl->ebus);
+       struct hdac_bus *bus = skl_to_bus(skl);
        struct device *dev = bus->dev;
        struct nhlt_specific_cfg *sp_config;
        struct nhlt_acpi_table *nhlt = skl->nhlt;
 int skl_nhlt_update_topology_bin(struct skl *skl)
 {
        struct nhlt_acpi_table *nhlt = (struct nhlt_acpi_table *)skl->nhlt;
-       struct hdac_bus *bus = ebus_to_hbus(&skl->ebus);
+       struct hdac_bus *bus = skl_to_bus(skl);
        struct device *dev = bus->dev;
 
        dev_dbg(dev, "oem_id %.6s, oem_table_id %8s oem_revision %d\n",
                        struct device_attribute *attr, char *buf)
 {
        struct pci_dev *pci = to_pci_dev(dev);
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct skl *skl = ebus_to_skl(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
+       struct skl *skl = bus_to_skl(bus);
        struct nhlt_acpi_table *nhlt = (struct nhlt_acpi_table *)skl->nhlt;
        char platform_id[32];
 
 
        return substream->runtime->private_data;
 }
 
-static struct hdac_ext_bus *get_bus_ctx(struct snd_pcm_substream *substream)
+static struct hdac_bus *get_bus_ctx(struct snd_pcm_substream *substream)
 {
        struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
        struct hdac_stream *hstream = hdac_stream(stream);
        struct hdac_bus *bus = hstream->bus;
-
-       return hbus_to_ebus(bus);
+       return bus;
 }
 
-static int skl_substream_alloc_pages(struct hdac_ext_bus *ebus,
+static int skl_substream_alloc_pages(struct hdac_bus *bus,
                                 struct snd_pcm_substream *substream,
                                 size_t size)
 {
        return snd_pcm_lib_free_pages(substream);
 }
 
-static void skl_set_pcm_constrains(struct hdac_ext_bus *ebus,
+static void skl_set_pcm_constrains(struct hdac_bus *bus,
                                 struct snd_pcm_runtime *runtime)
 {
        snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
                                     20, 178000000);
 }
 
-static enum hdac_ext_stream_type skl_get_host_stream_type(struct hdac_ext_bus *ebus)
+static enum hdac_ext_stream_type skl_get_host_stream_type(struct hdac_bus *bus)
 {
-       if ((ebus_to_hbus(ebus))->ppcap)
+       if (bus->ppcap)
                return HDAC_EXT_STREAM_TYPE_HOST;
        else
                return HDAC_EXT_STREAM_TYPE_COUPLED;
 static void skl_set_suspend_active(struct snd_pcm_substream *substream,
                                         struct snd_soc_dai *dai, bool enable)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
+       struct hdac_bus *bus = dev_get_drvdata(dai->dev);
        struct snd_soc_dapm_widget *w;
-       struct skl *skl = ebus_to_skl(ebus);
+       struct skl *skl = bus_to_skl(bus);
 
        if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
                w = dai->playback_widget;
 
 int skl_pcm_host_dma_prepare(struct device *dev, struct skl_pipe_params *params)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
        unsigned int format_val;
        struct hdac_stream *hstream;
        struct hdac_ext_stream *stream;
                return -EINVAL;
 
        stream = stream_to_hdac_ext_stream(hstream);
-       snd_hdac_ext_stream_decouple(ebus, stream, true);
+       snd_hdac_ext_stream_decouple(bus, stream, true);
 
        format_val = snd_hdac_calc_stream_format(params->s_freq,
                        params->ch, params->format, params->host_bps, 0);
 
 int skl_pcm_link_dma_prepare(struct device *dev, struct skl_pipe_params *params)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
        unsigned int format_val;
        struct hdac_stream *hstream;
        struct hdac_ext_stream *stream;
                return -EINVAL;
 
        stream = stream_to_hdac_ext_stream(hstream);
-       snd_hdac_ext_stream_decouple(ebus, stream, true);
+       snd_hdac_ext_stream_decouple(bus, stream, true);
        format_val = snd_hdac_calc_stream_format(params->s_freq, params->ch,
                                        params->format, params->link_bps, 0);
 
 
        snd_hdac_ext_link_stream_setup(stream, format_val);
 
-       list_for_each_entry(link, &ebus->hlink_list, list) {
+       list_for_each_entry(link, &bus->hlink_list, list) {
                if (link->index == params->link_index)
                        snd_hdac_ext_link_set_stream_id(link,
                                        hstream->stream_tag);
 static int skl_pcm_open(struct snd_pcm_substream *substream,
                struct snd_soc_dai *dai)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
+       struct hdac_bus *bus = dev_get_drvdata(dai->dev);
        struct hdac_ext_stream *stream;
        struct snd_pcm_runtime *runtime = substream->runtime;
        struct skl_dma_params *dma_params;
 
        dev_dbg(dai->dev, "%s: %s\n", __func__, dai->name);
 
-       stream = snd_hdac_ext_stream_assign(ebus, substream,
-                                       skl_get_host_stream_type(ebus));
+       stream = snd_hdac_ext_stream_assign(bus, substream,
+                                       skl_get_host_stream_type(bus));
        if (stream == NULL)
                return -EBUSY;
 
-       skl_set_pcm_constrains(ebus, runtime);
+       skl_set_pcm_constrains(bus, runtime);
 
        /*
         * disable WALLCLOCK timestamps for capture streams
                                struct snd_pcm_hw_params *params,
                                struct snd_soc_dai *dai)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
+       struct hdac_bus *bus = dev_get_drvdata(dai->dev);
        struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
        struct snd_pcm_runtime *runtime = substream->runtime;
        struct skl_pipe_params p_params = {0};
        int ret, dma_id;
 
        dev_dbg(dai->dev, "%s: %s\n", __func__, dai->name);
-       ret = skl_substream_alloc_pages(ebus, substream,
+       ret = skl_substream_alloc_pages(bus, substream,
                                          params_buffer_bytes(params));
        if (ret < 0)
                return ret;
                struct snd_soc_dai *dai)
 {
        struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
+       struct hdac_bus *bus = dev_get_drvdata(dai->dev);
        struct skl_dma_params *dma_params = NULL;
-       struct skl *skl = ebus_to_skl(ebus);
+       struct skl *skl = bus_to_skl(bus);
        struct skl_module_cfg *mconfig;
 
        dev_dbg(dai->dev, "%s: %s\n", __func__, dai->name);
 
-       snd_hdac_ext_stream_release(stream, skl_get_host_stream_type(ebus));
+       snd_hdac_ext_stream_release(stream, skl_get_host_stream_type(bus));
 
        dma_params = snd_soc_dai_get_dma_data(dai, substream);
        /*
 static int skl_pcm_hw_free(struct snd_pcm_substream *substream,
                struct snd_soc_dai *dai)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
+       struct hdac_bus *bus = dev_get_drvdata(dai->dev);
        struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
        struct skl *skl = get_skl_ctx(dai->dev);
        struct skl_module_cfg *mconfig;
        snd_hdac_stream_cleanup(hdac_stream(stream));
        hdac_stream(stream)->prepared = 0;
 
-       return skl_substream_free_pages(ebus_to_hbus(ebus), substream);
+       return skl_substream_free_pages(bus, substream);
 }
 
 static int skl_be_hw_params(struct snd_pcm_substream *substream,
 static int skl_decoupled_trigger(struct snd_pcm_substream *substream,
                int cmd)
 {
-       struct hdac_ext_bus *ebus = get_bus_ctx(substream);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = get_bus_ctx(substream);
        struct hdac_ext_stream *stream;
        int start;
        unsigned long cookie;
        struct skl *skl = get_skl_ctx(dai->dev);
        struct skl_sst *ctx = skl->skl_sst;
        struct skl_module_cfg *mconfig;
-       struct hdac_ext_bus *ebus = get_bus_ctx(substream);
+       struct hdac_bus *bus = get_bus_ctx(substream);
        struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
        struct snd_soc_dapm_widget *w;
        int ret;
                         * dpib & lpib position to resume before starting the
                         * DMA
                         */
-                       snd_hdac_ext_stream_drsm_enable(ebus, true,
+                       snd_hdac_ext_stream_drsm_enable(bus, true,
                                                hdac_stream(stream)->index);
-                       snd_hdac_ext_stream_set_dpibr(ebus, stream,
+                       snd_hdac_ext_stream_set_dpibr(bus, stream,
                                                        stream->lpib);
                        snd_hdac_ext_stream_set_lpib(stream, stream->lpib);
                }
                ret = skl_decoupled_trigger(substream, cmd);
                if ((cmd == SNDRV_PCM_TRIGGER_SUSPEND) && !w->ignore_suspend) {
                        /* save the dpib and lpib positions */
-                       stream->dpib = readl(ebus->bus.remap_addr +
+                       stream->dpib = readl(bus->remap_addr +
                                        AZX_REG_VS_SDXDPIB_XBASE +
                                        (AZX_REG_VS_SDXDPIB_XINTERVAL *
                                        hdac_stream(stream)->index));
 
                        stream->lpib = snd_hdac_stream_get_pos_lpib(
                                                        hdac_stream(stream));
-                       snd_hdac_ext_stream_decouple(ebus, stream, false);
+                       snd_hdac_ext_stream_decouple(bus, stream, false);
                }
                break;
 
        return 0;
 }
 
+
 static int skl_link_hw_params(struct snd_pcm_substream *substream,
                                struct snd_pcm_hw_params *params,
                                struct snd_soc_dai *dai)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
+       struct hdac_bus *bus = dev_get_drvdata(dai->dev);
        struct hdac_ext_stream *link_dev;
        struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
        struct snd_soc_dai *codec_dai = rtd->codec_dai;
        struct hdac_ext_link *link;
        int stream_tag;
 
-       link_dev = snd_hdac_ext_stream_assign(ebus, substream,
+       link_dev = snd_hdac_ext_stream_assign(bus, substream,
                                        HDAC_EXT_STREAM_TYPE_LINK);
        if (!link_dev)
                return -EBUSY;
 
        snd_soc_dai_set_dma_data(dai, substream, (void *)link_dev);
 
-       link = snd_hdac_ext_bus_get_link(ebus, codec_dai->component->name);
+       link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name);
        if (!link)
                return -EINVAL;
 
 {
        struct hdac_ext_stream *link_dev =
                                snd_soc_dai_get_dma_data(dai, substream);
-       struct hdac_ext_bus *ebus = get_bus_ctx(substream);
+       struct hdac_bus *bus = get_bus_ctx(substream);
        struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
 
        dev_dbg(dai->dev, "In %s cmd=%d\n", __func__, cmd);
        case SNDRV_PCM_TRIGGER_STOP:
                snd_hdac_ext_link_stream_clear(link_dev);
                if (cmd == SNDRV_PCM_TRIGGER_SUSPEND)
-                       snd_hdac_ext_stream_decouple(ebus, stream, false);
+                       snd_hdac_ext_stream_decouple(bus, stream, false);
                break;
 
        default:
 static int skl_link_hw_free(struct snd_pcm_substream *substream,
                struct snd_soc_dai *dai)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
+       struct hdac_bus *bus = dev_get_drvdata(dai->dev);
        struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
        struct hdac_ext_stream *link_dev =
                                snd_soc_dai_get_dma_data(dai, substream);
 
        link_dev->link_prepared = 0;
 
-       link = snd_hdac_ext_bus_get_link(ebus, rtd->codec_dai->component->name);
+       link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name);
        if (!link)
                return -EINVAL;
 
 static int skl_coupled_trigger(struct snd_pcm_substream *substream,
                                        int cmd)
 {
-       struct hdac_ext_bus *ebus = get_bus_ctx(substream);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = get_bus_ctx(substream);
        struct hdac_ext_stream *stream;
        struct snd_pcm_substream *s;
        bool start;
 static int skl_platform_pcm_trigger(struct snd_pcm_substream *substream,
                                        int cmd)
 {
-       struct hdac_ext_bus *ebus = get_bus_ctx(substream);
+       struct hdac_bus *bus = get_bus_ctx(substream);
 
-       if (!(ebus_to_hbus(ebus))->ppcap)
+       if (!bus->ppcap)
                return skl_coupled_trigger(substream, cmd);
 
        return 0;
                        (struct snd_pcm_substream *substream)
 {
        struct hdac_ext_stream *hstream = get_hdac_ext_stream(substream);
-       struct hdac_ext_bus *ebus = get_bus_ctx(substream);
+       struct hdac_bus *bus = get_bus_ctx(substream);
        unsigned int pos;
 
        /*
         */
 
        if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
-               pos = readl(ebus->bus.remap_addr + AZX_REG_VS_SDXDPIB_XBASE +
+               pos = readl(bus->remap_addr + AZX_REG_VS_SDXDPIB_XBASE +
                                (AZX_REG_VS_SDXDPIB_XINTERVAL *
                                hdac_stream(hstream)->index));
        } else {
                udelay(20);
-               readl(ebus->bus.remap_addr +
+               readl(bus->remap_addr +
                                AZX_REG_VS_SDXDPIB_XBASE +
                                (AZX_REG_VS_SDXDPIB_XINTERVAL *
                                 hdac_stream(hstream)->index));
 static int skl_pcm_new(struct snd_soc_pcm_runtime *rtd)
 {
        struct snd_soc_dai *dai = rtd->cpu_dai;
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
+       struct hdac_bus *bus = dev_get_drvdata(dai->dev);
        struct snd_pcm *pcm = rtd->pcm;
        unsigned int size;
        int retval = 0;
-       struct skl *skl = ebus_to_skl(ebus);
+       struct skl *skl = bus_to_skl(bus);
 
        if (dai->driver->playback.channels_min ||
                dai->driver->capture.channels_min) {
 
 static int skl_platform_soc_probe(struct snd_soc_component *component)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(component->dev);
-       struct skl *skl = ebus_to_skl(ebus);
+       struct hdac_bus *bus = dev_get_drvdata(component->dev);
+       struct skl *skl = bus_to_skl(bus);
        const struct skl_dsp_ops *ops;
        int ret;
 
        pm_runtime_get_sync(component->dev);
-       if ((ebus_to_hbus(ebus))->ppcap) {
+       if (bus->ppcap) {
                skl->component = component;
 
                /* init debugfs */
                skl->debugfs = skl_debugfs_init(skl);
 
-               ret = skl_tplg_init(component, ebus);
+               ret = skl_tplg_init(component, bus);
                if (ret < 0) {
                        dev_err(component->dev, "Failed to init topology!\n");
                        return ret;
 int skl_platform_register(struct device *dev)
 {
        int ret;
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
-       struct skl *skl = ebus_to_skl(ebus);
        struct snd_soc_dai_driver *dais;
        int num_dais = ARRAY_SIZE(skl_platform_dai);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
+       struct skl *skl = bus_to_skl(bus);
 
        INIT_LIST_HEAD(&skl->ppl_list);
        INIT_LIST_HEAD(&skl->bind_list);
 
 int skl_platform_unregister(struct device *dev)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
-       struct skl *skl = ebus_to_skl(ebus);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
+       struct skl *skl = bus_to_skl(bus);
        struct skl_module_deferred_bind *modules, *tmp;
 
        if (!list_empty(&skl->bind_list)) {
 
        struct soc_bytes_ext *sb = (void *) k->private_value;
        struct skl_algo_data *bc = (struct skl_algo_data *)sb->dobj.private;
        struct skl_kpb_params *uuid_params, *params;
-       struct hdac_bus *bus = ebus_to_hbus(skl_to_ebus(skl));
+       struct hdac_bus *bus = skl_to_bus(skl);
        int i, size, module_id;
 
        if (bc->set_params == SKL_PARAM_BIND && bc->max) {
                                struct snd_soc_tplg_dapm_widget *tplg_w)
 {
        int ret;
-       struct hdac_ext_bus *ebus = snd_soc_component_get_drvdata(cmpnt);
-       struct skl *skl = ebus_to_skl(ebus);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = snd_soc_component_get_drvdata(cmpnt);
+       struct skl *skl = bus_to_skl(bus);
        struct skl_module_cfg *mconfig;
 
        if (!tplg_w->priv.size)
        struct soc_bytes_ext *sb;
        struct snd_soc_tplg_bytes_control *tplg_bc;
        struct snd_soc_tplg_enum_control *tplg_ec;
-       struct hdac_ext_bus *ebus  = snd_soc_component_get_drvdata(cmpnt);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus  = snd_soc_component_get_drvdata(cmpnt);
        struct soc_enum *se;
 
        switch (hdr->ops.info) {
 static int skl_manifest_load(struct snd_soc_component *cmpnt,
                                struct snd_soc_tplg_manifest *manifest)
 {
-       struct hdac_ext_bus *ebus = snd_soc_component_get_drvdata(cmpnt);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
-       struct skl *skl = ebus_to_skl(ebus);
+       struct hdac_bus *bus = snd_soc_component_get_drvdata(cmpnt);
+       struct skl *skl = bus_to_skl(bus);
 
        /* proceed only if we have private data defined */
        if (manifest->priv.size == 0)
 /*
  * SKL topology init routine
  */
-int skl_tplg_init(struct snd_soc_component *component, struct hdac_ext_bus *ebus)
+int skl_tplg_init(struct snd_soc_component *component, struct hdac_bus *bus)
 {
        int ret;
        const struct firmware *fw;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
-       struct skl *skl = ebus_to_skl(ebus);
+       struct skl *skl = bus_to_skl(bus);
        struct skl_pipeline *ppl;
 
        ret = request_firmware(&fw, skl->tplg_name, bus->dev);
 
 
 static inline struct skl *get_skl_ctx(struct device *dev)
 {
-       struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
+       struct hdac_bus *bus = dev_get_drvdata(dev);
 
-       return ebus_to_skl(ebus);
+       return bus_to_skl(bus);
 }
 
 int skl_tplg_be_update_params(struct snd_soc_dai *dai,
 void skl_tplg_set_be_dmic_config(struct snd_soc_dai *dai,
        struct skl_pipe_params *params, int stream);
 int skl_tplg_init(struct snd_soc_component *component,
-                               struct hdac_ext_bus *ebus);
+                               struct hdac_bus *ebus);
 struct skl_module_cfg *skl_tplg_fe_get_cpr_module(
                struct snd_soc_dai *dai, int stream);
 int skl_tplg_update_pipe_params(struct device *dev,
 
 
 static void skl_init_pci(struct skl *skl)
 {
-       struct hdac_ext_bus *ebus = &skl->ebus;
+       struct hdac_bus *bus = skl_to_bus(skl);
 
        /*
         * Clear bits 0-2 of PCI register TCSEL (at offset 0x44)
         * codecs.
         * The PCI register TCSEL is defined in the Intel manuals.
         */
-       dev_dbg(ebus_to_hbus(ebus)->dev, "Clearing TCSEL\n");
+       dev_dbg(bus->dev, "Clearing TCSEL\n");
        skl_update_pci_byte(skl->pci, AZX_PCIREG_TCSEL, 0x07, 0);
 }
 
 static void skl_clock_power_gating(struct device *dev, bool enable)
 {
        struct pci_dev *pci = to_pci_dev(dev);
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
        u32 val;
 
        /* Update PDCGE bit of CGCTL register */
  */
 static int skl_init_chip(struct hdac_bus *bus, bool full_reset)
 {
-       struct hdac_ext_bus *ebus = hbus_to_ebus(bus);
        struct hdac_ext_link *hlink;
        int ret;
 
        ret = snd_hdac_bus_init_chip(bus, full_reset);
 
        /* Reset stream-to-link mapping */
-       list_for_each_entry(hlink, &ebus->hlink_list, list)
+       list_for_each_entry(hlink, &bus->hlink_list, list)
                bus->io_ops->reg_writel(0, hlink->ml_addr + AZX_REG_ML_LOSIDV);
 
        skl_enable_miscbdcge(bus->dev, true);
 void skl_update_d0i3c(struct device *dev, bool enable)
 {
        struct pci_dev *pci = to_pci_dev(dev);
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
        u8 reg;
        int timeout = 50;
 
 
 static irqreturn_t skl_interrupt(int irq, void *dev_id)
 {
-       struct hdac_ext_bus *ebus = dev_id;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = dev_id;
        u32 status;
 
        if (!pm_runtime_active(bus->dev))
 
 static irqreturn_t skl_threaded_handler(int irq, void *dev_id)
 {
-       struct hdac_ext_bus *ebus = dev_id;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = dev_id;
        u32 status;
 
        status = snd_hdac_chip_readl(bus, INTSTS);
        return IRQ_HANDLED;
 }
 
-static int skl_acquire_irq(struct hdac_ext_bus *ebus, int do_disconnect)
+static int skl_acquire_irq(struct hdac_bus *bus, int do_disconnect)
 {
-       struct skl *skl = ebus_to_skl(ebus);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct skl *skl = bus_to_skl(bus);
        int ret;
 
        ret = request_threaded_irq(skl->pci->irq, skl_interrupt,
                        skl_threaded_handler,
                        IRQF_SHARED,
-                       KBUILD_MODNAME, ebus);
+                       KBUILD_MODNAME, bus);
        if (ret) {
                dev_err(bus->dev,
                        "unable to grab IRQ %d, disabling device\n",
 static int skl_suspend_late(struct device *dev)
 {
        struct pci_dev *pci = to_pci_dev(dev);
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct skl *skl = ebus_to_skl(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
+       struct skl *skl = bus_to_skl(bus);
 
        return skl_suspend_late_dsp(skl);
 }
 
 #ifdef CONFIG_PM
-static int _skl_suspend(struct hdac_ext_bus *ebus)
+static int _skl_suspend(struct hdac_bus *bus)
 {
-       struct skl *skl = ebus_to_skl(ebus);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct skl *skl = bus_to_skl(bus);
        struct pci_dev *pci = to_pci_dev(bus->dev);
        int ret;
 
-       snd_hdac_ext_bus_link_power_down_all(ebus);
+       snd_hdac_ext_bus_link_power_down_all(bus);
 
        ret = skl_suspend_dsp(skl);
        if (ret < 0)
        return 0;
 }
 
-static int _skl_resume(struct hdac_ext_bus *ebus)
+static int _skl_resume(struct hdac_bus *bus)
 {
-       struct skl *skl = ebus_to_skl(ebus);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct skl *skl = bus_to_skl(bus);
 
        skl_init_pci(skl);
        skl_init_chip(bus, true);
 static int skl_suspend(struct device *dev)
 {
        struct pci_dev *pci = to_pci_dev(dev);
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct skl *skl  = ebus_to_skl(ebus);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
+       struct skl *skl  = bus_to_skl(bus);
        int ret = 0;
 
        /*
         */
        if (skl->supend_active) {
                /* turn off the links and stop the CORB/RIRB DMA if it is On */
-               snd_hdac_ext_bus_link_power_down_all(ebus);
+               snd_hdac_ext_bus_link_power_down_all(bus);
 
-               if (ebus->cmd_dma_state)
-                       snd_hdac_bus_stop_cmd_io(&ebus->bus);
+               if (bus->cmd_dma_state)
+                       snd_hdac_bus_stop_cmd_io(bus);
 
                enable_irq_wake(bus->irq);
                pci_save_state(pci);
        } else {
-               ret = _skl_suspend(ebus);
+               ret = _skl_suspend(bus);
                if (ret < 0)
                        return ret;
                skl->skl_sst->fw_loaded = false;
 static int skl_resume(struct device *dev)
 {
        struct pci_dev *pci = to_pci_dev(dev);
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct skl *skl  = ebus_to_skl(ebus);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
+       struct skl *skl  = bus_to_skl(bus);
        struct hdac_ext_link *hlink = NULL;
        int ret;
 
         */
        if (skl->supend_active) {
                pci_restore_state(pci);
-               snd_hdac_ext_bus_link_power_up_all(ebus);
+               snd_hdac_ext_bus_link_power_up_all(bus);
                disable_irq_wake(bus->irq);
                /*
                 * turn On the links which are On before active suspend
                 * and start the CORB/RIRB DMA if On before
                 * active suspend.
                 */
-               list_for_each_entry(hlink, &ebus->hlink_list, list) {
+               list_for_each_entry(hlink, &bus->hlink_list, list) {
                        if (hlink->ref_count)
                                snd_hdac_ext_bus_link_power_up(hlink);
                }
 
-               if (ebus->cmd_dma_state)
-                       snd_hdac_bus_init_cmd_io(&ebus->bus);
                ret = 0;
+               if (bus->cmd_dma_state)
+                       snd_hdac_bus_init_cmd_io(bus);
        } else {
-               ret = _skl_resume(ebus);
+               ret = _skl_resume(bus);
 
                /* turn off the links which are off before suspend */
-               list_for_each_entry(hlink, &ebus->hlink_list, list) {
+               list_for_each_entry(hlink, &bus->hlink_list, list) {
                        if (!hlink->ref_count)
                                snd_hdac_ext_bus_link_power_down(hlink);
                }
 
-               if (!ebus->cmd_dma_state)
-                       snd_hdac_bus_stop_cmd_io(&ebus->bus);
+               if (!bus->cmd_dma_state)
+                       snd_hdac_bus_stop_cmd_io(bus);
        }
 
        return ret;
 static int skl_runtime_suspend(struct device *dev)
 {
        struct pci_dev *pci = to_pci_dev(dev);
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
 
        dev_dbg(bus->dev, "in %s\n", __func__);
 
-       return _skl_suspend(ebus);
+       return _skl_suspend(bus);
 }
 
 static int skl_runtime_resume(struct device *dev)
 {
        struct pci_dev *pci = to_pci_dev(dev);
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
 
        dev_dbg(bus->dev, "in %s\n", __func__);
 
-       return _skl_resume(ebus);
+       return _skl_resume(bus);
 }
 #endif /* CONFIG_PM */
 
 /*
  * destructor
  */
-static int skl_free(struct hdac_ext_bus *ebus)
+static int skl_free(struct hdac_bus *bus)
 {
-       struct skl *skl  = ebus_to_skl(ebus);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct skl *skl  = bus_to_skl(bus);
 
        skl->init_done = 0; /* to be sure */
 
-       snd_hdac_ext_stop_streams(ebus);
+       snd_hdac_ext_stop_streams(bus);
 
        if (bus->irq >= 0)
-               free_irq(bus->irq, (void *)ebus);
+               free_irq(bus->irq, (void *)bus);
        snd_hdac_bus_free_stream_pages(bus);
-       snd_hdac_stream_free_all(ebus);
-       snd_hdac_link_free_all(ebus);
+       snd_hdac_stream_free_all(bus);
+       snd_hdac_link_free_all(bus);
 
        if (bus->remap_addr)
                iounmap(bus->remap_addr);
        pci_release_regions(skl->pci);
        pci_disable_device(skl->pci);
 
-       snd_hdac_ext_bus_exit(ebus);
+       snd_hdac_ext_bus_exit(bus);
 
        cancel_work_sync(&skl->probe_work);
        if (IS_ENABLED(CONFIG_SND_SOC_HDAC_HDMI))
-               snd_hdac_i915_exit(&ebus->bus);
+               snd_hdac_i915_exit(bus);
 
        return 0;
 }
 
 static int skl_find_machine(struct skl *skl, void *driver_data)
 {
+       struct hdac_bus *bus = skl_to_bus(skl);
        struct snd_soc_acpi_mach *mach = driver_data;
-       struct hdac_bus *bus = ebus_to_hbus(&skl->ebus);
        struct skl_machine_pdata *pdata;
 
        mach = snd_soc_acpi_find_machine(mach);
 
 static int skl_machine_device_register(struct skl *skl)
 {
-       struct hdac_bus *bus = ebus_to_hbus(&skl->ebus);
+       struct hdac_bus *bus = skl_to_bus(skl);
        struct snd_soc_acpi_mach *mach = skl->mach;
        struct platform_device *pdev;
        int ret;
 
 static int skl_dmic_device_register(struct skl *skl)
 {
-       struct hdac_bus *bus = ebus_to_hbus(&skl->ebus);
+       struct hdac_bus *bus = skl_to_bus(skl);
        struct platform_device *pdev;
        int ret;
 
 /*
  * Probe the given codec address
  */
-static int probe_codec(struct hdac_ext_bus *ebus, int addr)
+static int probe_codec(struct hdac_bus *bus, int addr)
 {
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
        unsigned int cmd = (addr << 28) | (AC_NODE_ROOT << 20) |
                (AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID;
        unsigned int res = -1;
                return -EIO;
        dev_dbg(bus->dev, "codec #%d probed OK\n", addr);
 
-       return snd_hdac_ext_bus_device_init(ebus, addr);
+       return snd_hdac_ext_bus_device_init(bus, addr);
 }
 
 /* Codec initialization */
-static void skl_codec_create(struct hdac_ext_bus *ebus)
+static void skl_codec_create(struct hdac_bus *bus)
 {
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
        int c, max_slots;
 
        max_slots = HDA_MAX_CODECS;
        /* First try to probe all given codec slots */
        for (c = 0; c < max_slots; c++) {
                if ((bus->codec_mask & (1 << c))) {
-                       if (probe_codec(ebus, c) < 0) {
+                       if (probe_codec(bus, c) < 0) {
                                /*
                                 * Some BIOSen give you wrong codec addresses
                                 * that don't exist
 static void skl_probe_work(struct work_struct *work)
 {
        struct skl *skl = container_of(work, struct skl, probe_work);
-       struct hdac_ext_bus *ebus = &skl->ebus;
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = skl_to_bus(skl);
        struct hdac_ext_link *hlink = NULL;
        int err;
 
                dev_info(bus->dev, "no hda codecs found!\n");
 
        /* create codec instances */
-       skl_codec_create(ebus);
+       skl_codec_create(bus);
 
        /* register platform dai and controls */
        err = skl_platform_register(bus->dev);
        /*
         * we are done probing so decrement link counts
         */
-       list_for_each_entry(hlink, &ebus->hlink_list, list)
-               snd_hdac_ext_bus_link_put(ebus, hlink);
+       list_for_each_entry(hlink, &bus->hlink_list, list)
+               snd_hdac_ext_bus_link_put(bus, hlink);
 
        /* configure PM */
        pm_runtime_put_noidle(bus->dev);
                      struct skl **rskl)
 {
        struct skl *skl;
-       struct hdac_ext_bus *ebus;
+       struct hdac_bus *bus;
 
        int err;
 
                pci_disable_device(pci);
                return -ENOMEM;
        }
-       ebus = &skl->ebus;
-       snd_hdac_ext_bus_init(ebus, &pci->dev, &bus_core_ops, io_ops);
-       ebus->bus.use_posbuf = 1;
+
+       bus = skl_to_bus(skl);
+       snd_hdac_ext_bus_init(bus, &pci->dev, &bus_core_ops, io_ops);
+       bus->use_posbuf = 1;
        skl->pci = pci;
        INIT_WORK(&skl->probe_work, skl_probe_work);
-
-       ebus->bus.bdl_pos_adj = 0;
+       bus->bdl_pos_adj = 0;
 
        *rskl = skl;
 
        return 0;
 }
 
-static int skl_first_init(struct hdac_ext_bus *ebus)
+static int skl_first_init(struct hdac_bus *bus)
 {
-       struct skl *skl = ebus_to_skl(ebus);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct skl *skl = bus_to_skl(bus);
        struct pci_dev *pci = skl->pci;
        int err;
        unsigned short gcap;
 
        snd_hdac_bus_parse_capabilities(bus);
 
-       if (skl_acquire_irq(ebus, 0) < 0)
+       if (skl_acquire_irq(bus, 0) < 0)
                return -EBUSY;
 
        pci_set_master(pci);
        if (!pb_streams && !cp_streams)
                return -EIO;
 
-       ebus->num_streams = cp_streams + pb_streams;
+       bus->num_streams = cp_streams + pb_streams;
 
        /* initialize streams */
        snd_hdac_ext_stream_init_all
-               (ebus, 0, cp_streams, SNDRV_PCM_STREAM_CAPTURE);
+               (bus, 0, cp_streams, SNDRV_PCM_STREAM_CAPTURE);
        start_idx = cp_streams;
        snd_hdac_ext_stream_init_all
-               (ebus, start_idx, pb_streams, SNDRV_PCM_STREAM_PLAYBACK);
+               (bus, start_idx, pb_streams, SNDRV_PCM_STREAM_PLAYBACK);
 
        err = snd_hdac_bus_alloc_stream_pages(bus);
        if (err < 0)
                     const struct pci_device_id *pci_id)
 {
        struct skl *skl;
-       struct hdac_ext_bus *ebus = NULL;
        struct hdac_bus *bus = NULL;
        int err;
 
        if (err < 0)
                return err;
 
-       ebus = &skl->ebus;
-       bus = ebus_to_hbus(ebus);
+       bus = skl_to_bus(skl);
 
-       err = skl_first_init(ebus);
+       err = skl_first_init(bus);
        if (err < 0)
                goto out_free;
 
 
        skl_nhlt_update_topology_bin(skl);
 
-       pci_set_drvdata(skl->pci, ebus);
+       pci_set_drvdata(skl->pci, bus);
 
        skl_dmic_data.dmic_num = skl_get_dmic_geo(skl);
 
                skl->skl_sst->clock_power_gating = skl_clock_power_gating;
        }
        if (bus->mlcap)
-               snd_hdac_ext_bus_get_ml_capabilities(ebus);
+               snd_hdac_ext_bus_get_ml_capabilities(bus);
 
        snd_hdac_bus_stop_chip(bus);
 
 out_nhlt_free:
        skl_nhlt_free(skl->nhlt);
 out_free:
-       skl_free(ebus);
+       skl_free(bus);
 
        return err;
 }
 
 static void skl_shutdown(struct pci_dev *pci)
 {
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct hdac_bus *bus = ebus_to_hbus(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
        struct hdac_stream *s;
        struct hdac_ext_stream *stream;
        struct skl *skl;
 
-       if (ebus == NULL)
+       if (!bus)
                return;
 
-       skl = ebus_to_skl(ebus);
+       skl = bus_to_skl(bus);
 
        if (!skl->init_done)
                return;
 
-       snd_hdac_ext_stop_streams(ebus);
+       snd_hdac_ext_stop_streams(bus);
        list_for_each_entry(s, &bus->stream_list, list) {
                stream = stream_to_hdac_ext_stream(s);
-               snd_hdac_ext_stream_decouple(ebus, stream, false);
+               snd_hdac_ext_stream_decouple(bus, stream, false);
        }
 
        snd_hdac_bus_stop_chip(bus);
 
 static void skl_remove(struct pci_dev *pci)
 {
-       struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
-       struct skl *skl = ebus_to_skl(ebus);
+       struct hdac_bus *bus = pci_get_drvdata(pci);
+       struct skl *skl = bus_to_skl(bus);
 
        release_firmware(skl->tplg);
 
        pm_runtime_get_noresume(&pci->dev);
 
        /* codec removal, invoke bus_device_remove */
-       snd_hdac_ext_bus_device_remove(ebus);
+       snd_hdac_ext_bus_device_remove(bus);
 
        skl->debugfs = NULL;
        skl_platform_unregister(&pci->dev);
        skl_clock_device_unregister(skl);
        skl_nhlt_remove_sysfs(skl);
        skl_nhlt_free(skl->nhlt);
-       skl_free(ebus);
+       skl_free(bus);
        dev_set_drvdata(&pci->dev, NULL);
 }
 
 
 };
 
 struct skl {
-       struct hdac_ext_bus ebus;
+       struct hdac_bus hbus;
        struct pci_dev *pci;
 
        unsigned int init_done:1; /* delayed init status */
        struct snd_soc_acpi_mach *mach;
 };
 
-#define skl_to_ebus(s) (&(s)->ebus)
-#define ebus_to_skl(sbus) \
-       container_of(sbus, struct skl, sbus)
+#define skl_to_bus(s)  (&(s)->hbus)
+#define bus_to_skl(bus) container_of(bus, struct skl, hbus)
 
 /* to pass dai dma data */
 struct skl_dma_params {