ASoC: SOF: Intel: override mclk_id for ES8336 support
[sfrench/cifs-2.6.git] / sound / soc / sof / intel / hda.c
index dfb3b424fb5e3d4a799767ec1a36e6cb29af2d1c..eec54c8bb0e9a2f51535c0e15e0fc321a2a0c5fa 100644 (file)
@@ -31,6 +31,9 @@
 #include "../ops.h"
 #include "hda.h"
 
+#define CREATE_TRACE_POINTS
+#include <trace/events/sof_intel.h>
+
 #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
 #include <sound/soc-acpi-intel-match.h>
 #endif
@@ -954,17 +957,25 @@ static irqreturn_t hda_dsp_interrupt_thread(int irq, void *context)
        struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata;
 
        /* deal with streams and controller first */
-       if (hda_dsp_check_stream_irq(sdev))
+       if (hda_dsp_check_stream_irq(sdev)) {
+               trace_sof_intel_hda_irq(sdev, "stream");
                hda_dsp_stream_threaded_handler(irq, sdev);
+       }
 
-       if (hda_check_ipc_irq(sdev))
+       if (hda_check_ipc_irq(sdev)) {
+               trace_sof_intel_hda_irq(sdev, "ipc");
                sof_ops(sdev)->irq_thread(irq, sdev);
+       }
 
-       if (hda_dsp_check_sdw_irq(sdev))
+       if (hda_dsp_check_sdw_irq(sdev)) {
+               trace_sof_intel_hda_irq(sdev, "sdw");
                hda_dsp_sdw_thread(irq, hdev->sdw);
+       }
 
-       if (hda_sdw_check_wakeen_irq(sdev))
+       if (hda_sdw_check_wakeen_irq(sdev)) {
+               trace_sof_intel_hda_irq(sdev, "wakeen");
                hda_sdw_process_wakeen(sdev);
+       }
 
        hda_check_for_state_change(sdev);