ALSA/ASoC: hda: ext: add 'ext' prefix to snd_hdac_link_free_all
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 19 Oct 2022 16:21:10 +0000 (11:21 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Oct 2022 12:31:41 +0000 (14:31 +0200)
No functionality change, just prefix addition to clearly identify that
the helper only applies to the 'ext' part for Intel platforms.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20221019162115.185917-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio_ext.h
sound/hda/ext/hdac_ext_controller.c
sound/soc/intel/avs/core.c
sound/soc/intel/skylake/skl.c
sound/soc/sof/intel/hda.c

index 397ab4fc98283968856dc18b808e439071905d0b..f0edbadc990235b566cd577e505ee28c5896434d 100644 (file)
@@ -80,7 +80,7 @@ struct hdac_ext_stream {
 int snd_hdac_ext_stream_init_all(struct hdac_bus *bus, int start_idx,
                                 int num_stream, int dir);
 void snd_hdac_ext_stream_free_all(struct hdac_bus *bus);
-void snd_hdac_link_free_all(struct hdac_bus *bus);
+void snd_hdac_ext_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);
index 3730c30470f12f9ebd5a506d07fb117771f6275d..c0b801fa93c0923d5a018ffd7a26d5c5dd9355c4 100644 (file)
@@ -108,12 +108,12 @@ int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_bus *bus)
 EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_get_ml_capabilities);
 
 /**
- * snd_hdac_link_free_all- free hdac extended link objects
+ * snd_hdac_ext_link_free_all- free hdac extended link objects
  *
  * @bus: the pointer to HDAC bus object
  */
 
-void snd_hdac_link_free_all(struct hdac_bus *bus)
+void snd_hdac_ext_link_free_all(struct hdac_bus *bus)
 {
        struct hdac_ext_link *hlink;
 
@@ -123,7 +123,7 @@ void snd_hdac_link_free_all(struct hdac_bus *bus)
                kfree(hlink);
        }
 }
-EXPORT_SYMBOL_GPL(snd_hdac_link_free_all);
+EXPORT_SYMBOL_GPL(snd_hdac_ext_link_free_all);
 
 /**
  * snd_hdac_ext_bus_get_hlink_by_addr - get hlink at specified address
index bb0719c58ca49673fe6e9a029549a86130233998..8d502fee38b53cbfe1c9e86836fb3ac764e9436c 100644 (file)
@@ -504,7 +504,7 @@ static void avs_pci_remove(struct pci_dev *pci)
        snd_hdac_bus_free_stream_pages(bus);
        snd_hdac_ext_stream_free_all(bus);
        /* reverse ml_capabilities */
-       snd_hdac_link_free_all(bus);
+       snd_hdac_ext_link_free_all(bus);
        snd_hdac_ext_bus_exit(bus);
 
        avs_dsp_core_disable(adev, GENMASK(adev->hw_cfg.dsp_cores - 1, 0));
index bbba2df33aaf0b198e829af1f41a8a3191bde448..780207fe814fab61f7f99753b36f5d517b8c93ea 100644 (file)
@@ -445,7 +445,7 @@ static int skl_free(struct hdac_bus *bus)
                free_irq(bus->irq, (void *)bus);
        snd_hdac_bus_free_stream_pages(bus);
        snd_hdac_ext_stream_free_all(bus);
-       snd_hdac_link_free_all(bus);
+       snd_hdac_ext_link_free_all(bus);
 
        if (bus->remap_addr)
                iounmap(bus->remap_addr);
index 1188ec51816bd38217fd5b8a84231a75f2a3e3d3..c6c6ea8a73f60f6322e37cbef0de870a0563c62f 100644 (file)
@@ -1224,7 +1224,7 @@ int hda_dsp_remove(struct snd_sof_dev *sdev)
 
        hda_dsp_stream_free(sdev);
 #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
-       snd_hdac_link_free_all(bus);
+       snd_hdac_ext_link_free_all(bus);
 #endif
 
        iounmap(sdev->bar[HDA_DSP_BAR]);