SGTL5000 with Jetson Nano emmc

Hi,

I have Jetson Nano emmc connected to my custom carrier board with an SGTL5000 audio codec. I’m trying to test de sound.

My SGTL5000 is connected in I2c-0 (PIN 185 , 187 ) and I2s0 ( PIN 199, 193,195,197) . I’m using a 24Mhz oscillator dedicated to SGTL5000. How can I change the “sound clock-frequency” to 24 Mhz in the device tree?

I made some changes the dts file:
tegra210-p3448-0002-p3449-0000-b00.dts (4.5 KB)

And I generated my custom PINMUX dtsi files :
tegra210-image_box-gpio-default.dtsi (1.7 KB) tegra210-image_box-pinmux.dtsi (38.1 KB)

Hello!

If you have a dedicated external 24MHz clock source for codec then you would add something like the following to device-tree …

clocks {
    sgtl5000_mclk: sgtl5000_mclk {
        compatible = "fixed-clock";
        #clock-cells = <0>;
        clock-frequency = <24000000>;
        clock-output-names = "sgtl5000-mclk";
        status = "okay";
    };
};

You can see an example here. Note that this example is a device-tree overlay and for your purpose you can edit the device-tree source for directly for Jetson and so you do not need to worry about all these fragment/overlay nodes.

Once this is done, then you need to add an initialisation function for the codec to set the sysclk for the codec to 24MHz. An example of this can be found here.

Regards,
Jon

Hello @jonathanh, thanks for your reply.

1- I changed the clock-frequency to 24Mhz.

	clocks {
	    sgtl5000_mclk: sgtl5000_mclk {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency =   <24000000>;
		clock-output-names = "sgtl5000-mclk";
		status = "okay";
	    };
	};

        i2c@7000c000 { /*i2c-0*/
		sgtl5000: sgtl5000@0a {
			compatible = "fsl,sgtl5000";
			reg = <0x0a>;
			clocks = <&sgtl5000_mclk>;
			micbias-resistor-k-ohms = <2>;
			micbias-voltage-m-volts = <3000>;
			VDDA-supply = <&hdr40_vdd_3v3>;
			VDDIO-supply = <&p3449_vdd_1v8>;
			status = "okay";
		};
	}; 

	i2s@702d1300 {
	    status = "okay";
	};


        sound{

		nvidia,audio-routing =
		        "x Headphone",          "x HP_OUT",
		        "x MIC_IN",             "x Mic",
		        "x ADC",                "x Mic Bias",
		        "x LINE_IN",            "x Line In",
		        "x Line Out",           "x LINE_OUT";


		nvidia,dai-link-1{
			link-name = "fe-pi-audio-z-v2";
			codec-dai = <&sgtl5000>;
			codec-dai-name = "sgtl5000";
			bitclock-master;
			frame-master;

		};

	};

2- PinMux here

	           dap4_din_pj5 {
				nvidia,pins = "dap4_din_pj5";
				nvidia,function = "i2s4b";
				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};

			dap4_dout_pj6 {
				nvidia,pins = "dap4_dout_pj6";
				nvidia,function = "i2s4b";
				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};

			dap4_fs_pj4 {
				nvidia,pins = "dap4_fs_pj4";
				nvidia,function = "i2s4b";
				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};

			dap4_sclk_pj7 {
				nvidia,pins = "dap4_sclk_pj7";
				nvidia,function = "i2s4b";
				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};

3- I changed de sysclk in “tegra_machine_fepi_init”, and I flashed the kernel and the dtb.

diff --git a/tegra_machine_driver_mobile.c.old b/tegra_machine_driver_mobile.c
index b999724..1476aee 100644
--- a/tegra_machine_driver_mobile.c.old
+++ b/tegra_machine_driver_mobile.c
 static int tegra_machine_pcm_hw_params(struct snd_pcm_substream *substream,
@@ -505,7 +515,7 @@ static int tegra_machine_fepi_init(struct snd_soc_pcm_runtime *rtd)
 	struct device *dev = rtd->card->dev;
 	int err;
 
-	err = snd_soc_dai_set_sysclk(rtd->codec_dai, SGTL5000_SYSCLK, 12288000,
+	err = snd_soc_dai_set_sysclk(rtd->codec_dai, SGTL5000_SYSCLK, 24000000,

4- I tried to check with these commands.

~$ dmesg | grep sgtl5000
[    2.006151] sgtl5000 0-000a: sgtl5000 revision 0x11
[    2.006679] sgtl5000 0-000a: Using internal LDO instead of VDDD: check ER1

~$ cat /proc/device-tree/sound/nvidia,dai-link-1/link-name 
fe-pi-audio-z-v2

~$ sudo cat /sys/kernel/debug/asoc/codecs
[sudo] password for jetson: 
tegra210-ope.1
tegra210-ope.0
tegra210-mvc.1
tegra210-mvc.0
tegra210-afc.5
tegra210-afc.4
tegra210-afc.3
tegra210-afc.2
tegra210-afc.1
tegra210-afc.0
tegra210-sfc.3
tegra210-sfc.2
tegra210-sfc.1
tegra210-sfc.0
tegra210-mixer
tegra210-adx.1
tegra210-adx.0
tegra210-amx.1
tegra210-amx.0
tegra210-dmic.1
tegra210-dmic.0
tegra210-i2s.3
tegra210-i2s.2
tegra210-admaif
tegra210-axbar
7.spdif-dit.7
6.spdif-dit.6
5.spdif-dit.5
4.spdif-dit.4
3.spdif-dit.3
2.spdif-dit.2
1.spdif-dit.1
0.spdif-dit.0
sgtl5000.0-000a
snd-soc-dummy

5- I tried this test, but it did not work . I don’t hear any sound.

~$ alsactl init tegrasndt210ref
Reset Tegra APE sound-card controls

~$ speaker-test -D hw:tegrasndt210ref,0 -c 2 -r 48000 -F S16_LE -t sine -f 500

speaker-test 1.1.3

Playback device is hw:tegrasndt210ref,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 500,0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 8192
Period size range from 32 to 4096
Using max buffer size 8192
Periods = 4
was set period_size = 2048
was set buffer_size = 8192
 0 - Front Left
 1 - Front Right
Time per period = 0,110265
 0 - Front Left
 1 - Front Right
Write error: -32,Broken pipe
Time per period = 0,114744
 0 - Front Left
Write error: -32,Broken pipe
Write error: -32,Broken pipe
Write error: -32,Broken pipe
 1 - Front Right
Time per period = 0,116368
 0 - Front Left
 1 - Front Right
Write error: -32,Broken pipe
Write error: -32,Broken pipe
Time per period = 0,115444
 0 - Front Left
Write error: -32,Broken pipe
Write error: -32,Broken pipe
 1 - Front Right
Time per period = 0,115453
 0 - Front Left
 1 - Front Right
Time per period = 0,112288
 0 - Front Left
Write error: -32,Broken pipe
Write error: -32,Broken pipe
 1 - Front Right
Time per period = 0,114676
 0 - Front Left
 1 - Front Right
Time per period = 0,113089
 0 - Front Left
 1 - Front Right
Write error: -32,Broken pipe
Write error: -32,Broken pipe
Time per period = 0,116579
 0 - Front Left
Write error: -32,Broken pipe
 1 - Front Right
Time per period = 0,112122
 0 - Front Left
 1 - Front Right
Time per period = 0,112364
 0 - Front Left
 1 - Front Right
Time per period = 0,112466
 0 - Front Left
 1 - Front Right
Time per period = 0,112349
 0 - Front Left
 1 - Front Right
Time per period = 0,112722
 0 - Front Left
 1 - Front Right
Time per period = 0,113509
 0 - Front Left
 1 - Front Right

Do you have any suggestions? Do I need to change anything else?

Hello!

There are a few require properties missing in your dai-link node. Please note that overlay node for the sgtl5000 I referenced, simply replaces the default nodes, however, those that is does not replace, will still remain. So you want something like …

		nvidia,dai-link-1{
                        link-name = "fe-pi-audio-z-v2";
                        cpu-dai = <&tegra_i2s4>;
                        cpu-dai-name = "I2S4";
                        codec-dai = <&sgtl5000>;
                        codec-dai-name = "sgtl5000";
                        bitclock-master;
                        frame-master;
                        bit-format = "s16_le";
                        srate = <48000>;
                        num-channel = <2>;
                        ignore_suspend;
                        name-prefix = "x"
        };

Regards,
Jon

Hello @jonathanh,

These properties are not missing. They are in the “tegra210-porg-p3448-common.dtsi” file. I had changed in my final dts file just some properties, as well as your overlay example, but I will work now in the original dtsi file to avoid doubt.

So, I made this changes.

 diff --git a/tegra210-porg-p3448-common.dtsi.old b/tegra210-porg-p3448-common.dtsi
index 2a7d844..ff58173 100644
--- a/tegra210-porg-p3448-common.dtsi.old
+++ b/tegra210-porg-p3448-common.dtsi
@@ -75,6 +75,16 @@
                };
        };
 
+       clocks {
+           sgtl5000_mclk: sgtl5000_mclk {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency =   <24000000>;
+               clock-output-names = "sgtl5000-mclk";
+               status = "okay";
+           };
+       };
+
        rollback-protection {
                status = "okay";
        };
@@ -398,25 +408,24 @@
                nvidia,num-codec-link = <4>;
 
                nvidia,audio-routing =
-                       "x Headphone",  "x OUT",
-                       "x IN",         "x Mic",
-                       "y Headphone",  "y OUT",
-                       "y IN",         "y Mic",
-                       "a IN",         "a Mic",
-                       "b IN",         "b Mic";
+                       "x Headphone",          "x HP_OUT",
+                       "x MIC_IN",             "x Mic",
+                       "x ADC",                "x Mic Bias",
+                       "x LINE_IN",            "x Line In",
+                       "x Line Out",           "x LINE_OUT";
 
                nvidia,xbar = <&tegra_axbar>;
                mclk-fs = <256>;
 
                hdr40_snd_link_i2s: i2s_dai_link1: nvidia,dai-link-1 {
-                       link-name = "spdif-dit-0";
+                       link-name = "fe-pi-audio-z-v2";
                        cpu-dai = <&tegra_i2s4>;
-                       codec-dai = <&spdif_dit0>;
+                       codec-dai = <&sgtl5000>;
                        cpu-dai-name = "I2S4";
-                       codec-dai-name = "dit-hifi";
+                       codec-dai-name = "sgtl5000";
                        format = "i2s";
-                       bitclock-slave;
-                       frame-slave;
+                       bitclock-master;
+                       frame-master;
                        bitclock-noninversion;
                        frame-noninversion;
                        bit-format = "s16_le";
@@ -766,6 +775,20 @@
                tegra_nct72: temp-sensor@4c {
                        status = "disabled";
                };
+
+               sgtl5000: sgtl5000@0a {
+                       compatible = "fsl,sgtl5000";
+                       reg = <0x0a>;
+                       clocks = <&sgtl5000_mclk>;
+                       micbias-resistor-k-ohms = <2>;
+                       micbias-voltage-m-volts = <3000>;
+                       VDDA-supply = <&hdr40_vdd_3v3>;
+                       /*VDDIO-supply = <&hdr40_vdd_3v3>;*/
+                       VDDIO-supply = <&p3449_vdd_1v8>;
+                       status = "okay";
+               };
+
+
        };
 
        hdr40_i2c1: i2c@7000c400 { };
(END)

I checked in the device-tree directory on Jetson nano and the properties are there. So, the “nvidia, dai-link-1” seems to be right.

~$ ls /proc/device-tree/sound/nvidia,dai-link-1/
bitclock-master        bitclock-slave  codec-dai       cpu-dai       format        frame-noninversion  ignore_suspend  linux,phandle  name-prefix  phandle  status
bitclock-noninversion  bit-format      codec-dai-name  cpu-dai-name  frame-master  frame-slave         link-name       name           num-channel  srate

~$ cat /proc/device-tree/sound/nvidia,dai-link-1/link-name
fe-pi-audio-z-v2

~$ cat /proc/device-tree/sound/nvidia,dai-link-1/cpu-dai-name
I2S4

~$ cat /proc/device-tree/sound/nvidia,dai-link-1/bit-format
s16_le

jetson@image-box:~$ cat /proc/device-tree/sound/nvidia,dai-link-1/name-prefix
x

Do you have any suggestions?

Hello @jonathanh.

My current tegra210-porg-p3448-common.dts. I put this clock “TEGRA210_CLK_PLL_P” on the sound node because my codec audio is 24Mhz, this makes sense?

diff --git a/tegra210-porg-p3448-common.dtsi.old b/tegra210-porg-p3448-common.dtsi
index 2a7d844..5940ff3 100644
--- a/tegra210-porg-p3448-common.dtsi.old
+++ b/tegra210-porg-p3448-common.dtsi
@@ -75,6 +75,16 @@
                };
        };
 
+       clocks {
+           sgtl5000_mclk: sgtl5000_mclk {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency =   <24000000>;
+               clock-output-names = "sgtl5000-mclk";
+               status = "okay";
+           };
+       };
+
        rollback-protection {
                status = "okay";
        };
@@ -385,38 +395,41 @@
                compatible = "nvidia,tegra-audio-t210ref-mobile-rt565x";
                nvidia,model = "tegra-snd-t210ref-mobile-rt565x";
 
-               clocks = <&tegra_car TEGRA210_CLK_PLL_A>,
+               clocks = <&tegra_car TEGRA210_CLK_PLL_P>,
+                        <&tegra_car TEGRA210_CLK_PLL_A>,
                         <&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
                         <&tegra_car TEGRA210_CLK_EXTERN1>;
-               clock-names = "pll_a", "pll_a_out0", "extern1";
-               assigned-clocks = <&tegra_car TEGRA210_CLK_EXTERN1>,
+               clock-names = "pll_p","pll_a", "pll_a_out0", "extern1";
+               assigned-clocks = <&tegra_car TEGRA210_CLK_PLL_P>,
+                                 <&tegra_car TEGRA210_CLK_EXTERN1>,
                                  <&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
                                  <&tegra_car TEGRA210_CLK_PLL_A>;
-               assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
-               assigned-clock-rates = <12288000>, <49152000>, <368640000>;
+               assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_P>,<&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
+               assigned-clock-rates = <24000000>,<12288000>, <49152000>, <368640000>;
 
                nvidia,num-codec-link = <4>;
 
                nvidia,audio-routing =
-                       "x Headphone",  "x OUT",
-                       "x IN",         "x Mic",
-                       "y Headphone",  "y OUT",
-                       "y IN",         "y Mic",
-                       "a IN",         "a Mic",
-                       "b IN",         "b Mic";
+                       "x Headphone",          "x HP_OUT",
+                       "x MIC_IN",             "x Mic",
+                       "x ADC",                "x Mic Bias",
+                       "x LINE_IN",            "x Line In",
+                       "x Line Out",           "x LINE_OUT";
 
                nvidia,xbar = <&tegra_axbar>;
                mclk-fs = <256>;
 
                hdr40_snd_link_i2s: i2s_dai_link1: nvidia,dai-link-1 {
-                       link-name = "spdif-dit-0";
+                       link-name = "fe-pi-audio-z-v2";
                        cpu-dai = <&tegra_i2s4>;
-                       codec-dai = <&spdif_dit0>;
+                       codec-dai = <&sgtl5000>;
                        cpu-dai-name = "I2S4";
-                       codec-dai-name = "dit-hifi";
+                       codec-dai-name = "sgtl5000";
                        format = "i2s";
-                       bitclock-slave;
-                       frame-slave;
+                        bitclock-slave;
+                        frame-slave;
+                       bitclock-master;
+                       frame-master;
                        bitclock-noninversion;
                        frame-noninversion;
                        bit-format = "s16_le";
@@ -766,6 +779,20 @@
                tegra_nct72: temp-sensor@4c {
                        status = "disabled";
                };
+
+               sgtl5000: sgtl5000@0a {
+                       compatible = "fsl,sgtl5000";
+                       reg = <0x0a>;
+                       clocks = <&sgtl5000_mclk>;
+                       micbias-resistor-k-ohms = <2>;
+                       micbias-voltage-m-volts = <3000>;
+                       VDDA-supply = <&hdr40_vdd_3v3>;
+                       /*VDDIO-supply = <&hdr40_vdd_3v3>;*/
+                       VDDIO-supply = <&p3449_vdd_1v8>;
+                       status = "okay";
+               };
+
+
        };
 
        hdr40_i2c1: i2c@7000c400 { };
(END)

I made some changes in “tegra_machine_driver_mobile.c” .

    diff --git a/tegra_machine_driver_mobile.c.old b/tegra_machine_driver_mobile.c
    index b999724..7b9d6bf 100644
    --- a/tegra_machine_driver_mobile.c.old
    +++ b/tegra_machine_driver_mobile.c
    @@ -297,6 +297,8 @@ static int tegra_machine_dai_init(struct snd_soc_pcm_runtime *runtime,
            int err;
            struct snd_soc_pcm_runtime *rtd;
     
    +       printk(KERN_ERR "%s - debug sgtl5000\n", __func__);
    +
            srate = (machine->rate_via_kcontrol) ?
                            tegra_machine_srate_values[machine->rate_via_kcontrol] :
                            rate;
    @@ -375,7 +377,48 @@ static int tegra_machine_dai_init(struct snd_soc_pcm_runtime *runtime,
                    }
            }
     
        
    +        rtd = snd_soc_get_pcm_runtime(card, "fe-pi-audio-z-v2");
    +        if (rtd) {
    +                dai_params =
    +                (struct snd_soc_pcm_stream *)rtd->dai_link->params;
    + 
    +                dai_params->rate_min = rate;
    +                dai_params->channels_min = channels;
    +                dai_params->formats = formats;
    +               printk(KERN_ERR "%s - debug sgtl5000\n", __func__);
    +        }
    +
    +
            return 0;
     }
 
 static int tegra_machine_pcm_hw_params(struct snd_pcm_substream *substream,
@@ -384,7 +427,7 @@ static int tegra_machine_pcm_hw_params(struct snd_pcm_substream *substream,
        struct snd_soc_pcm_runtime *rtd = substream->private_data;
        struct snd_soc_card *card = rtd->card;
        int err;
-
+       printk(KERN_ERR "%s - debug sgtl5000\n", __func__);
        err = tegra_machine_dai_init(rtd, params_rate(params),
                                     params_channels(params),
                                     1ULL << params_format(params));
@@ -468,7 +511,7 @@ static int tegra_machine_compr_set_params(struct snd_compr_stream *cstream)
                dev_err(card->dev, "compr ops not set\n");
                return -EINVAL;
        }
-
+       printk(KERN_ERR "%s - debug sgtl5000\n", __func__);
        err = tegra_machine_dai_init(rtd, codec_params.sample_rate,
                                     codec_params.ch_out,
                                     SNDRV_PCM_FMTBIT_S16_LE);
@@ -505,7 +548,7 @@ static int tegra_machine_fepi_init(struct snd_soc_pcm_runtime *rtd)
        struct device *dev = rtd->card->dev;
        int err;
 
-       err = snd_soc_dai_set_sysclk(rtd->codec_dai, SGTL5000_SYSCLK, 12288000,
+       err = snd_soc_dai_set_sysclk(rtd->codec_dai, SGTL5000_SYSCLK, 24000000,
                                     SND_SOC_CLOCK_IN);
        if (err) {
                dev_err(dev, "failed to set sgtl5000 sysclk!\n");
@@ -515,6 +558,23 @@ static int tegra_machine_fepi_init(struct snd_soc_pcm_runtime *rtd)
        return 0;
 }
 
+static int tegra_machine_sgtl5000_init(struct snd_soc_pcm_runtime *rtd)
+{
+    struct device *dev = rtd->card->dev;
+    int err;
+                       
+    printk(KERN_ERR "%s - debug sgtl5000\n", __func__);
+                                         
+    err = snd_soc_dai_set_sysclk(rtd->codec_dai, SGTL5000_SYSCLK, 24000000,
+                                SND_SOC_CLOCK_IN);
+    if (err) {
+        dev_err(dev, "failed to set sgtl5000 sysclk!\n");
+        return err;
+    }
+
+    return 0;
+}
+
 static int tegra_machine_rt565x_init(struct snd_soc_pcm_runtime *rtd)
 {
        struct snd_soc_card *card = rtd->card;

@@ -598,7 +661,7 @@ static struct snd_soc_compr_ops tegra_machine_compr_ops = {
 static void set_dai_ops(struct tegra_machine *machine)
 {
        int i;
-
+       printk(KERN_ERR "%s - debug sgtl5000\n", __func__);
        /* set ADMAIF dai_ops */
        for (i = machine->soc_data->admaif_dai_link_start;
             i <= machine->soc_data->admaif_dai_link_end; i++)
@@ -653,7 +716,7 @@ static int add_dai_links(struct platform_device *pdev)
        ret = codec_init(machine);
        if (ret < 0)
                return ret;
-
+       printk(KERN_ERR "%s - debug sgtl5000\n", __func__);
        set_dai_ops(machine);
 
        return 0;
@@ -695,6 +758,8 @@ static int tegra_machine_driver_probe(struct platform_device *pdev)
        int ret = 0;
        const struct of_device_id *match;
 
+       printk(KERN_ERR "%s - debug sgtl5000\n", __func__);
+
        card->dev = &pdev->dev;
        /* parse card name first to log errors with proper device name */
        ret = snd_soc_of_parse_card_name(card, "nvidia,model");

(END)

I put some debug messages on the driver “tegra_machine_driver_mobile.c”, and I realized that the function “tegra_machine_dai_init” is not being called. What do you think? Any suggestion? Do I need to enable this “CONFIG_SND_SOC_TEGRA210_ADSP_ALT” ?

~$ dmesg | grep sgtl5000
[ 1.996913] sgtl5000 0-000a: sgtl5000 revision 0x11
[ 1.997439] sgtl5000 0-000a: Using internal LDO instead of VDDD: check ER1
[ 2.032852] tegra_machine_driver_probe - debug sgtl5000
[ 2.038511] tegra-asoc: sound: add_dai_links - debug1 sgtl5000
[ 2.044347] set_dai_ops - debug sgtl5000

Hello!

The function tegra_machine_dai_init() is called by tegra_machine_pcm_hw_params() and this occurs when playback/capture is initiated. You do not need to enable CONFIG_SND_SOC_TEGRA210_ADSP_ALT. I don’t see anywhere where the function tegra_machine_sgtl5000_init() is being called. In fact given you should not need to add this function because you have modified tegra_machine_fepi_init(). You should verify that this is being called.

Otherwise you should trace the dapm widgets when starting playback to see what is happening. This will give us a bit more insight to what is happening …

echo 0 | sudo tee /sys/kernel/debug/tracing/trace
echo 0 | sudo tee /sys/kernel/debug/tracing/events/enable
echo 1 | sudo tee /sys/kernel/debug/tracing/tracing_on
echo 1 | sudo tee /sys/kernel/debug/tracing/events/asoc/snd_soc_dapm_widget_power/enable
speaker-test -D hw:tegrasndt210ref,0 -c 2 -r 48000 -F S16_LE -t sine -f 500 -l 2
sudo cat /sys/kernel/debug/tracing/trace

Regards,
Jon

Hello @jonathanh.

This is the result

jetson@image-box:~$ speaker-test -D hw:tegrasndt210ref,0 -c 2 -r 48000 -F S16_LE -t sine -f 500 -l 2

speaker-test 1.1.3

Playback device is hw:tegrasndt210ref,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 500,0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 8192
Period size range from 32 to 4096
Using max buffer size 8192
Periods = 4
was set period_size = 2048
was set buffer_size = 8192
 0 - Front Left
 1 - Front Right
Time per period = 0,110358
 0 - Front Left
 1 - Front Right
Time per period = 0,112441
jetson@image-box:~$ sudo cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 530/530   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
      pulseaudio-19120 [000] .... 49490.245761: snd_soc_dapm_widget_power: widget=Capture 1 val=1
      pulseaudio-19120 [000] .... 49490.245764: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
      pulseaudio-19120 [000] .... 49490.245765: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
      pulseaudio-19120 [000] .... 49490.245767: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
      pulseaudio-19120 [000] .... 49490.245775: snd_soc_dapm_widget_power: widget=I2S4 RX val=1
      pulseaudio-19120 [000] .... 49490.245777: snd_soc_dapm_widget_power: widget=I2S4 Receive val=1
      pulseaudio-19120 [000] .... 49490.245778: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=1
      pulseaudio-19120 [000] .... 49490.245779: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=1
      pulseaudio-19120 [000] .... 49490.245779: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=1
      pulseaudio-19120 [000] .... 49490.245780: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=1
      pulseaudio-19120 [000] .... 49490.245781: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=1
      pulseaudio-19120 [000] .... 49490.245782: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=1
      pulseaudio-19120 [000] .... 49490.245782: snd_soc_dapm_widget_power: widget=x Capture val=1
      pulseaudio-19120 [000] .... 49490.245783: snd_soc_dapm_widget_power: widget=x ADC val=1
      pulseaudio-19120 [000] .... 49490.245784: snd_soc_dapm_widget_power: widget=x AIFOUT val=1
      pulseaudio-19120 [000] .... 49490.245786: snd_soc_dapm_widget_power: widget=x Mic Bias val=1
      pulseaudio-19120 [000] .... 49490.245786: snd_soc_dapm_widget_power: widget=x Capture Mux val=1
      pulseaudio-19120 [000] .... 49490.245787: snd_soc_dapm_widget_power: widget=x MIC_IN val=1
      pulseaudio-19120 [000] .... 49490.245788: snd_soc_dapm_widget_power: widget=x Mic val=1
      pulseaudio-19120 [003] .... 49490.465159: snd_soc_dapm_widget_power: widget=Capture 1 val=0
      pulseaudio-19120 [003] .... 49490.465163: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
      pulseaudio-19120 [003] .... 49490.465164: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
      pulseaudio-19120 [003] .... 49490.465165: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
      pulseaudio-19120 [003] .... 49490.465173: snd_soc_dapm_widget_power: widget=I2S4 RX val=0
      pulseaudio-19120 [003] .... 49490.465174: snd_soc_dapm_widget_power: widget=I2S4 Receive val=0
      pulseaudio-19120 [003] .... 49490.465175: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=0
      pulseaudio-19120 [003] .... 49490.465176: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=0
      pulseaudio-19120 [003] .... 49490.465177: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=0
      pulseaudio-19120 [003] .... 49490.465178: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=0
      pulseaudio-19120 [003] .... 49490.465179: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=0
      pulseaudio-19120 [003] .... 49490.465180: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=0
      pulseaudio-19120 [003] .... 49490.465181: snd_soc_dapm_widget_power: widget=x Capture val=0
      pulseaudio-19120 [003] .... 49490.465182: snd_soc_dapm_widget_power: widget=x ADC val=0
      pulseaudio-19120 [003] .... 49490.465183: snd_soc_dapm_widget_power: widget=x AIFOUT val=0
      pulseaudio-19120 [003] .... 49490.465184: snd_soc_dapm_widget_power: widget=x Mic Bias val=0
      pulseaudio-19120 [003] .... 49490.465185: snd_soc_dapm_widget_power: widget=x Capture Mux val=0
      pulseaudio-19120 [003] .... 49490.465186: snd_soc_dapm_widget_power: widget=x MIC_IN val=0
      pulseaudio-19120 [003] .... 49490.465187: snd_soc_dapm_widget_power: widget=x Mic val=0
      pulseaudio-19120 [003] .... 49491.020390: snd_soc_dapm_widget_power: widget=Capture 1 val=1
      pulseaudio-19120 [003] .... 49491.020394: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
      pulseaudio-19120 [003] .... 49491.020396: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
      pulseaudio-19120 [003] .... 49491.020397: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
      pulseaudio-19120 [003] .... 49491.020408: snd_soc_dapm_widget_power: widget=I2S4 RX val=1
      pulseaudio-19120 [003] .... 49491.020410: snd_soc_dapm_widget_power: widget=I2S4 Receive val=1
      pulseaudio-19120 [003] .... 49491.020412: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=1
      pulseaudio-19120 [003] .... 49491.020413: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=1
      pulseaudio-19120 [003] .... 49491.020414: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=1
      pulseaudio-19120 [003] .... 49491.020416: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=1
      pulseaudio-19120 [003] .... 49491.020417: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=1
      pulseaudio-19120 [003] .... 49491.020418: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=1
      pulseaudio-19120 [003] .... 49491.020419: snd_soc_dapm_widget_power: widget=x Capture val=1
      pulseaudio-19120 [003] .... 49491.020421: snd_soc_dapm_widget_power: widget=x ADC val=1
      pulseaudio-19120 [003] .... 49491.020422: snd_soc_dapm_widget_power: widget=x AIFOUT val=1
      pulseaudio-19120 [003] .... 49491.020424: snd_soc_dapm_widget_power: widget=x Mic Bias val=1
      pulseaudio-19120 [003] .... 49491.020425: snd_soc_dapm_widget_power: widget=x Capture Mux val=1
      pulseaudio-19120 [003] .... 49491.020427: snd_soc_dapm_widget_power: widget=x MIC_IN val=1
      pulseaudio-19120 [003] .... 49491.020428: snd_soc_dapm_widget_power: widget=x Mic val=1
      pulseaudio-19120 [000] .... 49491.228887: snd_soc_dapm_widget_power: widget=Capture 1 val=0
      pulseaudio-19120 [000] .... 49491.228890: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
      pulseaudio-19120 [000] .... 49491.228891: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
      pulseaudio-19120 [000] .... 49491.228892: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
      pulseaudio-19120 [000] .... 49491.228901: snd_soc_dapm_widget_power: widget=I2S4 RX val=0
      pulseaudio-19120 [000] .... 49491.228902: snd_soc_dapm_widget_power: widget=I2S4 Receive val=0
      pulseaudio-19120 [000] .... 49491.228903: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=0
      pulseaudio-19120 [000] .... 49491.228904: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=0
      pulseaudio-19120 [000] .... 49491.228905: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=0
      pulseaudio-19120 [000] .... 49491.228906: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=0
      pulseaudio-19120 [000] .... 49491.228907: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=0
      pulseaudio-19120 [000] .... 49491.228908: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=0
      pulseaudio-19120 [000] .... 49491.228909: snd_soc_dapm_widget_power: widget=x Capture val=0
      pulseaudio-19120 [000] .... 49491.228910: snd_soc_dapm_widget_power: widget=x ADC val=0
      pulseaudio-19120 [000] .... 49491.228911: snd_soc_dapm_widget_power: widget=x AIFOUT val=0
      pulseaudio-19120 [000] .... 49491.228912: snd_soc_dapm_widget_power: widget=x Mic Bias val=0
      pulseaudio-19120 [000] .... 49491.228913: snd_soc_dapm_widget_power: widget=x Capture Mux val=0
      pulseaudio-19120 [000] .... 49491.228914: snd_soc_dapm_widget_power: widget=x MIC_IN val=0
      pulseaudio-19120 [000] .... 49491.228915: snd_soc_dapm_widget_power: widget=x Mic val=0
      pulseaudio-19120 [001] .... 49491.780114: snd_soc_dapm_widget_power: widget=Playback 1 val=1
      pulseaudio-19120 [001] .... 49491.780119: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
      pulseaudio-19120 [001] .... 49491.780121: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
      pulseaudio-19120 [001] .... 49491.780130: snd_soc_dapm_widget_power: widget=I2S4 Mux val=1
      pulseaudio-19120 [001] .... 49491.780133: snd_soc_dapm_widget_power: widget=I2S4 TX val=1
      pulseaudio-19120 [001] .... 49491.780134: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=1
      pulseaudio-19120 [001] .... 49491.780136: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=1
      pulseaudio-19120 [001] .... 49491.780138: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=1
      pulseaudio-19120 [001] .... 49491.780139: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=1
      pulseaudio-19120 [001] .... 49491.780141: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=1
      pulseaudio-19120 [001] .... 49491.780143: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=1
      pulseaudio-19120 [001] .... 49491.780145: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=1
      pulseaudio-19120 [001] .... 49491.780146: snd_soc_dapm_widget_power: widget=x Playback val=1
      pulseaudio-19120 [001] .... 49491.780149: snd_soc_dapm_widget_power: widget=x DAC val=1
      pulseaudio-19120 [001] .... 49491.780151: snd_soc_dapm_widget_power: widget=x AIFIN val=1
      pulseaudio-19120 [001] .... 49491.780152: snd_soc_dapm_widget_power: widget=x LO val=1
      pulseaudio-19120 [001] .... 49491.780154: snd_soc_dapm_widget_power: widget=x Headphone Mux val=1
      pulseaudio-19120 [001] .... 49491.780156: snd_soc_dapm_widget_power: widget=x LINE_OUT val=1
      pulseaudio-19120 [001] .... 49491.780158: snd_soc_dapm_widget_power: widget=x HP val=1
      pulseaudio-19120 [001] .... 49491.780160: snd_soc_dapm_widget_power: widget=x Line Out val=1
      pulseaudio-19120 [001] .... 49491.780161: snd_soc_dapm_widget_power: widget=x HP_OUT val=1
      pulseaudio-19120 [001] .... 49491.780163: snd_soc_dapm_widget_power: widget=x Headphone val=1
      pulseaudio-19120 [000] .... 49492.019489: snd_soc_dapm_widget_power: widget=Capture 1 val=1
      pulseaudio-19120 [000] .... 49492.019493: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
      pulseaudio-19120 [000] .... 49492.019494: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
      pulseaudio-19120 [000] .... 49492.019495: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
      pulseaudio-19120 [000] .... 49492.019504: snd_soc_dapm_widget_power: widget=I2S4 RX val=1
      pulseaudio-19120 [000] .... 49492.019505: snd_soc_dapm_widget_power: widget=I2S4 Receive val=1
      pulseaudio-19120 [000] .... 49492.019506: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=1
      pulseaudio-19120 [000] .... 49492.019507: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=1
      pulseaudio-19120 [000] .... 49492.019508: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=1
      pulseaudio-19120 [000] .... 49492.019509: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=1
      pulseaudio-19120 [000] .... 49492.019510: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=1
      pulseaudio-19120 [000] .... 49492.019511: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=1
      pulseaudio-19120 [000] .... 49492.019512: snd_soc_dapm_widget_power: widget=x Capture val=1
      pulseaudio-19120 [000] .... 49492.019513: snd_soc_dapm_widget_power: widget=x ADC val=1
      pulseaudio-19120 [000] .... 49492.019514: snd_soc_dapm_widget_power: widget=x AIFOUT val=1
      pulseaudio-19120 [000] .... 49492.019516: snd_soc_dapm_widget_power: widget=x Mic Bias val=1
      pulseaudio-19120 [000] .... 49492.019516: snd_soc_dapm_widget_power: widget=x Capture Mux val=1
      pulseaudio-19120 [000] .... 49492.019517: snd_soc_dapm_widget_power: widget=x MIC_IN val=1
      pulseaudio-19120 [000] .... 49492.019518: snd_soc_dapm_widget_power: widget=x Mic val=1
      pulseaudio-19120 [000] .... 49492.120056: snd_soc_dapm_widget_power: widget=Capture 1 val=0
      pulseaudio-19120 [000] .... 49492.120059: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
      pulseaudio-19120 [000] .... 49492.120060: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
      pulseaudio-19120 [000] .... 49492.120061: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
      pulseaudio-19120 [000] .... 49492.120068: snd_soc_dapm_widget_power: widget=I2S4 RX val=0
      pulseaudio-19120 [000] .... 49492.120069: snd_soc_dapm_widget_power: widget=I2S4 Receive val=0
      pulseaudio-19120 [000] .... 49492.120070: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=0
      pulseaudio-19120 [000] .... 49492.120071: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=0
      pulseaudio-19120 [000] .... 49492.120072: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=0
      pulseaudio-19120 [000] .... 49492.120072: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=0
      pulseaudio-19120 [000] .... 49492.120073: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=0
      pulseaudio-19120 [000] .... 49492.120074: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=0
      pulseaudio-19120 [000] .... 49492.120075: snd_soc_dapm_widget_power: widget=x Capture val=0
      pulseaudio-19120 [000] .... 49492.120076: snd_soc_dapm_widget_power: widget=x ADC val=0
      pulseaudio-19120 [000] .... 49492.120077: snd_soc_dapm_widget_power: widget=x AIFOUT val=0
      pulseaudio-19120 [000] .... 49492.120078: snd_soc_dapm_widget_power: widget=x Mic Bias val=0
      pulseaudio-19120 [000] .... 49492.120079: snd_soc_dapm_widget_power: widget=x Capture Mux val=0
      pulseaudio-19120 [000] .... 49492.120079: snd_soc_dapm_widget_power: widget=x MIC_IN val=0
      pulseaudio-19120 [000] .... 49492.120080: snd_soc_dapm_widget_power: widget=x Mic val=0
      pulseaudio-19120 [000] .... 49492.137554: snd_soc_dapm_widget_power: widget=Capture 1 val=1
      pulseaudio-19120 [000] .... 49492.137557: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
      pulseaudio-19120 [000] .... 49492.137558: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
      pulseaudio-19120 [000] .... 49492.137559: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
      pulseaudio-19120 [000] .... 49492.137567: snd_soc_dapm_widget_power: widget=I2S4 RX val=1
      pulseaudio-19120 [000] .... 49492.137568: snd_soc_dapm_widget_power: widget=I2S4 Receive val=1
      pulseaudio-19120 [000] .... 49492.137569: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=1
      pulseaudio-19120 [000] .... 49492.137570: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=1
      pulseaudio-19120 [000] .... 49492.137571: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=1
      pulseaudio-19120 [000] .... 49492.137572: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=1
      pulseaudio-19120 [000] .... 49492.137573: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=1
      pulseaudio-19120 [000] .... 49492.137574: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=1
      pulseaudio-19120 [000] .... 49492.137574: snd_soc_dapm_widget_power: widget=x Capture val=1
      pulseaudio-19120 [000] .... 49492.137575: snd_soc_dapm_widget_power: widget=x ADC val=1
      pulseaudio-19120 [000] .... 49492.137576: snd_soc_dapm_widget_power: widget=x AIFOUT val=1
      pulseaudio-19120 [000] .... 49492.137577: snd_soc_dapm_widget_power: widget=x Mic Bias val=1
      pulseaudio-19120 [000] .... 49492.137578: snd_soc_dapm_widget_power: widget=x Capture Mux val=1
      pulseaudio-19120 [000] .... 49492.137579: snd_soc_dapm_widget_power: widget=x MIC_IN val=1
      pulseaudio-19120 [000] .... 49492.137580: snd_soc_dapm_widget_power: widget=x Mic val=1
      pulseaudio-19120 [000] .... 49492.237789: snd_soc_dapm_widget_power: widget=Capture 1 val=0
      pulseaudio-19120 [000] .... 49492.237792: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
      pulseaudio-19120 [000] .... 49492.237793: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
      pulseaudio-19120 [000] .... 49492.237793: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
      pulseaudio-19120 [000] .... 49492.237798: snd_soc_dapm_widget_power: widget=I2S4 RX val=0
      pulseaudio-19120 [000] .... 49492.237799: snd_soc_dapm_widget_power: widget=I2S4 Receive val=0
      pulseaudio-19120 [000] .... 49492.237800: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=0
      pulseaudio-19120 [000] .... 49492.237801: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=0
      pulseaudio-19120 [000] .... 49492.237802: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=0
      pulseaudio-19120 [000] .... 49492.237803: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=0
      pulseaudio-19120 [000] .... 49492.237803: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=0
      pulseaudio-19120 [000] .... 49492.237804: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=0
      pulseaudio-19120 [000] .... 49492.237805: snd_soc_dapm_widget_power: widget=x Capture val=0
      pulseaudio-19120 [000] .... 49492.237806: snd_soc_dapm_widget_power: widget=x ADC val=0
      pulseaudio-19120 [000] .... 49492.237807: snd_soc_dapm_widget_power: widget=x AIFOUT val=0
      pulseaudio-19120 [000] .... 49492.237808: snd_soc_dapm_widget_power: widget=x Mic Bias val=0
      pulseaudio-19120 [000] .... 49492.237809: snd_soc_dapm_widget_power: widget=x Capture Mux val=0
      pulseaudio-19120 [000] .... 49492.237809: snd_soc_dapm_widget_power: widget=x MIC_IN val=0
      pulseaudio-19120 [000] .... 49492.237810: snd_soc_dapm_widget_power: widget=x Mic val=0
      pulseaudio-19120 [000] .... 49492.238559: snd_soc_dapm_widget_power: widget=Playback 1 val=0
      pulseaudio-19120 [000] .... 49492.238561: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
      pulseaudio-19120 [000] .... 49492.238563: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
      pulseaudio-19120 [000] .... 49492.238569: snd_soc_dapm_widget_power: widget=I2S4 Mux val=0
      pulseaudio-19120 [000] .... 49492.238570: snd_soc_dapm_widget_power: widget=I2S4 TX val=0
      pulseaudio-19120 [000] .... 49492.238571: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=0
      pulseaudio-19120 [000] .... 49492.238572: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=0
      pulseaudio-19120 [000] .... 49492.238573: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=0
      pulseaudio-19120 [000] .... 49492.238574: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=0
      pulseaudio-19120 [000] .... 49492.238575: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=0
      pulseaudio-19120 [000] .... 49492.238575: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=0
      pulseaudio-19120 [000] .... 49492.238576: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=0
      pulseaudio-19120 [000] .... 49492.238577: snd_soc_dapm_widget_power: widget=x Playback val=0
      pulseaudio-19120 [000] .... 49492.238578: snd_soc_dapm_widget_power: widget=x DAC val=0
      pulseaudio-19120 [000] .... 49492.238579: snd_soc_dapm_widget_power: widget=x AIFIN val=0
      pulseaudio-19120 [000] .... 49492.238580: snd_soc_dapm_widget_power: widget=x LO val=0
      pulseaudio-19120 [000] .... 49492.238581: snd_soc_dapm_widget_power: widget=x Headphone Mux val=0
      pulseaudio-19120 [000] .... 49492.238582: snd_soc_dapm_widget_power: widget=x LINE_OUT val=0
      pulseaudio-19120 [000] .... 49492.238583: snd_soc_dapm_widget_power: widget=x HP val=0
      pulseaudio-19120 [000] .... 49492.238584: snd_soc_dapm_widget_power: widget=x Line Out val=0
      pulseaudio-19120 [000] .... 49492.238585: snd_soc_dapm_widget_power: widget=x HP_OUT val=0
      pulseaudio-19120 [000] .... 49492.238586: snd_soc_dapm_widget_power: widget=x Headphone val=0
      pulseaudio-19120 [000] .... 49492.773017: snd_soc_dapm_widget_power: widget=Playback 1 val=1
      pulseaudio-19120 [000] .... 49492.773021: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
      pulseaudio-19120 [000] .... 49492.773022: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
      pulseaudio-19120 [000] .... 49492.773026: snd_soc_dapm_widget_power: widget=I2S4 Mux val=1
      pulseaudio-19120 [000] .... 49492.773028: snd_soc_dapm_widget_power: widget=I2S4 TX val=1
      pulseaudio-19120 [000] .... 49492.773028: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=1
      pulseaudio-19120 [000] .... 49492.773029: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=1
      pulseaudio-19120 [000] .... 49492.773030: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=1
      pulseaudio-19120 [000] .... 49492.773031: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=1
      pulseaudio-19120 [000] .... 49492.773032: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=1
      pulseaudio-19120 [000] .... 49492.773032: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=1
      pulseaudio-19120 [000] .... 49492.773033: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=1
      pulseaudio-19120 [000] .... 49492.773034: snd_soc_dapm_widget_power: widget=x Playback val=1
      pulseaudio-19120 [000] .... 49492.773035: snd_soc_dapm_widget_power: widget=x DAC val=1
      pulseaudio-19120 [000] .... 49492.773036: snd_soc_dapm_widget_power: widget=x AIFIN val=1
      pulseaudio-19120 [000] .... 49492.773037: snd_soc_dapm_widget_power: widget=x LO val=1
      pulseaudio-19120 [000] .... 49492.773038: snd_soc_dapm_widget_power: widget=x Headphone Mux val=1
      pulseaudio-19120 [000] .... 49492.773039: snd_soc_dapm_widget_power: widget=x LINE_OUT val=1
      pulseaudio-19120 [000] .... 49492.773039: snd_soc_dapm_widget_power: widget=x HP val=1
      pulseaudio-19120 [000] .... 49492.773040: snd_soc_dapm_widget_power: widget=x Line Out val=1
      pulseaudio-19120 [000] .... 49492.773041: snd_soc_dapm_widget_power: widget=x HP_OUT val=1
      pulseaudio-19120 [000] .... 49492.773042: snd_soc_dapm_widget_power: widget=x Headphone val=1
      pulseaudio-19120 [001] .... 49492.993052: snd_soc_dapm_widget_power: widget=Capture 1 val=1
      pulseaudio-19120 [001] .... 49492.993056: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
      pulseaudio-19120 [001] .... 49492.993057: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
      pulseaudio-19120 [001] .... 49492.993058: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
      pulseaudio-19120 [001] .... 49492.993067: snd_soc_dapm_widget_power: widget=I2S4 RX val=1
      pulseaudio-19120 [001] .... 49492.993068: snd_soc_dapm_widget_power: widget=I2S4 Receive val=1
      pulseaudio-19120 [001] .... 49492.993069: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=1
      pulseaudio-19120 [001] .... 49492.993070: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=1
      pulseaudio-19120 [001] .... 49492.993071: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=1
      pulseaudio-19120 [001] .... 49492.993072: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=1
      pulseaudio-19120 [001] .... 49492.993073: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=1
      pulseaudio-19120 [001] .... 49492.993074: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=1
      pulseaudio-19120 [001] .... 49492.993075: snd_soc_dapm_widget_power: widget=x Capture val=1
      pulseaudio-19120 [001] .... 49492.993076: snd_soc_dapm_widget_power: widget=x ADC val=1
      pulseaudio-19120 [001] .... 49492.993077: snd_soc_dapm_widget_power: widget=x AIFOUT val=1
      pulseaudio-19120 [001] .... 49492.993078: snd_soc_dapm_widget_power: widget=x Mic Bias val=1
      pulseaudio-19120 [001] .... 49492.993079: snd_soc_dapm_widget_power: widget=x Capture Mux val=1
      pulseaudio-19120 [001] .... 49492.993080: snd_soc_dapm_widget_power: widget=x MIC_IN val=1
      pulseaudio-19120 [001] .... 49492.993080: snd_soc_dapm_widget_power: widget=x Mic val=1
      pulseaudio-19120 [002] .... 49493.093186: snd_soc_dapm_widget_power: widget=Capture 1 val=0
      pulseaudio-19120 [002] .... 49493.093188: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
      pulseaudio-19120 [002] .... 49493.093189: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
      pulseaudio-19120 [002] .... 49493.093190: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
      pulseaudio-19120 [002] .... 49493.093194: snd_soc_dapm_widget_power: widget=I2S4 RX val=0
      pulseaudio-19120 [002] .... 49493.093195: snd_soc_dapm_widget_power: widget=I2S4 Receive val=0
      pulseaudio-19120 [002] .... 49493.093196: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=0
      pulseaudio-19120 [002] .... 49493.093197: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=0
      pulseaudio-19120 [002] .... 49493.093198: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=0
      pulseaudio-19120 [002] .... 49493.093198: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=0
      pulseaudio-19120 [002] .... 49493.093199: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=0
      pulseaudio-19120 [002] .... 49493.093200: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=0
      pulseaudio-19120 [002] .... 49493.093201: snd_soc_dapm_widget_power: widget=x Capture val=0
      pulseaudio-19120 [002] .... 49493.093202: snd_soc_dapm_widget_power: widget=x ADC val=0
      pulseaudio-19120 [002] .... 49493.093202: snd_soc_dapm_widget_power: widget=x AIFOUT val=0
      pulseaudio-19120 [002] .... 49493.093203: snd_soc_dapm_widget_power: widget=x Mic Bias val=0
      pulseaudio-19120 [002] .... 49493.093204: snd_soc_dapm_widget_power: widget=x Capture Mux val=0
      pulseaudio-19120 [002] .... 49493.093205: snd_soc_dapm_widget_power: widget=x MIC_IN val=0
      pulseaudio-19120 [002] .... 49493.093205: snd_soc_dapm_widget_power: widget=x Mic val=0
      pulseaudio-19120 [001] .... 49493.110448: snd_soc_dapm_widget_power: widget=Capture 1 val=1
      pulseaudio-19120 [001] .... 49493.110451: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
      pulseaudio-19120 [001] .... 49493.110452: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
      pulseaudio-19120 [001] .... 49493.110453: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
      pulseaudio-19120 [001] .... 49493.110460: snd_soc_dapm_widget_power: widget=I2S4 RX val=1
      pulseaudio-19120 [001] .... 49493.110461: snd_soc_dapm_widget_power: widget=I2S4 Receive val=1
      pulseaudio-19120 [001] .... 49493.110462: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=1
      pulseaudio-19120 [001] .... 49493.110463: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=1
      pulseaudio-19120 [001] .... 49493.110464: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=1
      pulseaudio-19120 [001] .... 49493.110464: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=1
      pulseaudio-19120 [001] .... 49493.110465: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=1
      pulseaudio-19120 [001] .... 49493.110466: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=1
      pulseaudio-19120 [001] .... 49493.110467: snd_soc_dapm_widget_power: widget=x Capture val=1
      pulseaudio-19120 [001] .... 49493.110468: snd_soc_dapm_widget_power: widget=x ADC val=1
      pulseaudio-19120 [001] .... 49493.110469: snd_soc_dapm_widget_power: widget=x AIFOUT val=1
      pulseaudio-19120 [001] .... 49493.110470: snd_soc_dapm_widget_power: widget=x Mic Bias val=1
      pulseaudio-19120 [001] .... 49493.110471: snd_soc_dapm_widget_power: widget=x Capture Mux val=1
      pulseaudio-19120 [001] .... 49493.110471: snd_soc_dapm_widget_power: widget=x MIC_IN val=1
      pulseaudio-19120 [001] .... 49493.110472: snd_soc_dapm_widget_power: widget=x Mic val=1
      pulseaudio-19120 [000] .... 49493.211104: snd_soc_dapm_widget_power: widget=Capture 1 val=0
      pulseaudio-19120 [000] .... 49493.211107: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
      pulseaudio-19120 [000] .... 49493.211108: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
      pulseaudio-19120 [000] .... 49493.211109: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
      pulseaudio-19120 [000] .... 49493.211113: snd_soc_dapm_widget_power: widget=I2S4 RX val=0
      pulseaudio-19120 [000] .... 49493.211114: snd_soc_dapm_widget_power: widget=I2S4 Receive val=0
      pulseaudio-19120 [000] .... 49493.211115: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=0
      pulseaudio-19120 [000] .... 49493.211116: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=0
      pulseaudio-19120 [000] .... 49493.211117: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=0
      pulseaudio-19120 [000] .... 49493.211117: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=0
      pulseaudio-19120 [000] .... 49493.211118: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=0
      pulseaudio-19120 [000] .... 49493.211119: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=0
      pulseaudio-19120 [000] .... 49493.211120: snd_soc_dapm_widget_power: widget=x Capture val=0
      pulseaudio-19120 [000] .... 49493.211121: snd_soc_dapm_widget_power: widget=x ADC val=0
      pulseaudio-19120 [000] .... 49493.211122: snd_soc_dapm_widget_power: widget=x AIFOUT val=0
      pulseaudio-19120 [000] .... 49493.211123: snd_soc_dapm_widget_power: widget=x Mic Bias val=0
      pulseaudio-19120 [000] .... 49493.211124: snd_soc_dapm_widget_power: widget=x Capture Mux val=0
      pulseaudio-19120 [000] .... 49493.211124: snd_soc_dapm_widget_power: widget=x MIC_IN val=0
      pulseaudio-19120 [000] .... 49493.211125: snd_soc_dapm_widget_power: widget=x Mic val=0
      pulseaudio-19120 [000] .... 49493.211889: snd_soc_dapm_widget_power: widget=Playback 1 val=0
      pulseaudio-19120 [000] .... 49493.211891: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
      pulseaudio-19120 [000] .... 49493.211892: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
      pulseaudio-19120 [000] .... 49493.211898: snd_soc_dapm_widget_power: widget=I2S4 Mux val=0
      pulseaudio-19120 [000] .... 49493.211899: snd_soc_dapm_widget_power: widget=I2S4 TX val=0
      pulseaudio-19120 [000] .... 49493.211899: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=0
      pulseaudio-19120 [000] .... 49493.211900: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=0
      pulseaudio-19120 [000] .... 49493.211901: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=0
      pulseaudio-19120 [000] .... 49493.211902: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=0
      pulseaudio-19120 [000] .... 49493.211902: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=0
      pulseaudio-19120 [000] .... 49493.211903: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=0
      pulseaudio-19120 [000] .... 49493.211904: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=0
      pulseaudio-19120 [000] .... 49493.211905: snd_soc_dapm_widget_power: widget=x Playback val=0
      pulseaudio-19120 [000] .... 49493.211906: snd_soc_dapm_widget_power: widget=x DAC val=0
      pulseaudio-19120 [000] .... 49493.211906: snd_soc_dapm_widget_power: widget=x AIFIN val=0
      pulseaudio-19120 [000] .... 49493.211907: snd_soc_dapm_widget_power: widget=x LO val=0
      pulseaudio-19120 [000] .... 49493.211908: snd_soc_dapm_widget_power: widget=x Headphone Mux val=0
      pulseaudio-19120 [000] .... 49493.211909: snd_soc_dapm_widget_power: widget=x LINE_OUT val=0
      pulseaudio-19120 [000] .... 49493.211909: snd_soc_dapm_widget_power: widget=x HP val=0
      pulseaudio-19120 [000] .... 49493.211910: snd_soc_dapm_widget_power: widget=x Line Out val=0
      pulseaudio-19120 [000] .... 49493.211911: snd_soc_dapm_widget_power: widget=x HP_OUT val=0
      pulseaudio-19120 [000] .... 49493.211911: snd_soc_dapm_widget_power: widget=x Headphone val=0
      pulseaudio-19120 [002] .... 49493.783758: snd_soc_dapm_widget_power: widget=Playback 1 val=1
      pulseaudio-19120 [002] .... 49493.783762: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
      pulseaudio-19120 [002] .... 49493.783763: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
      pulseaudio-19120 [002] .... 49493.783769: snd_soc_dapm_widget_power: widget=I2S4 Mux val=1
      pulseaudio-19120 [002] .... 49493.783770: snd_soc_dapm_widget_power: widget=I2S4 TX val=1
      pulseaudio-19120 [002] .... 49493.783771: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=1
      pulseaudio-19120 [002] .... 49493.783772: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=1
      pulseaudio-19120 [002] .... 49493.783773: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=1
      pulseaudio-19120 [002] .... 49493.783774: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=1
      pulseaudio-19120 [002] .... 49493.783775: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=1
      pulseaudio-19120 [002] .... 49493.783776: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=1
      pulseaudio-19120 [002] .... 49493.783777: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=1
      pulseaudio-19120 [002] .... 49493.783777: snd_soc_dapm_widget_power: widget=x Playback val=1
      pulseaudio-19120 [002] .... 49493.783779: snd_soc_dapm_widget_power: widget=x DAC val=1
      pulseaudio-19120 [002] .... 49493.783780: snd_soc_dapm_widget_power: widget=x AIFIN val=1
      pulseaudio-19120 [002] .... 49493.783781: snd_soc_dapm_widget_power: widget=x LO val=1
      pulseaudio-19120 [002] .... 49493.783782: snd_soc_dapm_widget_power: widget=x Headphone Mux val=1
      pulseaudio-19120 [002] .... 49493.783783: snd_soc_dapm_widget_power: widget=x LINE_OUT val=1
      pulseaudio-19120 [002] .... 49493.783783: snd_soc_dapm_widget_power: widget=x HP val=1
      pulseaudio-19120 [002] .... 49493.783784: snd_soc_dapm_widget_power: widget=x Line Out val=1
      pulseaudio-19120 [002] .... 49493.783785: snd_soc_dapm_widget_power: widget=x HP_OUT val=1
      pulseaudio-19120 [002] .... 49493.783786: snd_soc_dapm_widget_power: widget=x Headphone val=1
      pulseaudio-19120 [001] .... 49494.051792: snd_soc_dapm_widget_power: widget=Capture 1 val=1
      pulseaudio-19120 [001] .... 49494.051795: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
      pulseaudio-19120 [001] .... 49494.051796: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
      pulseaudio-19120 [001] .... 49494.051797: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
      pulseaudio-19120 [001] .... 49494.051806: snd_soc_dapm_widget_power: widget=I2S4 RX val=1
      pulseaudio-19120 [001] .... 49494.051807: snd_soc_dapm_widget_power: widget=I2S4 Receive val=1
      pulseaudio-19120 [001] .... 49494.051808: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=1
      pulseaudio-19120 [001] .... 49494.051809: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=1
      pulseaudio-19120 [001] .... 49494.051810: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=1
      pulseaudio-19120 [001] .... 49494.051810: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=1
      pulseaudio-19120 [001] .... 49494.051811: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=1
      pulseaudio-19120 [001] .... 49494.051812: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=1
      pulseaudio-19120 [001] .... 49494.051813: snd_soc_dapm_widget_power: widget=x Capture val=1
      pulseaudio-19120 [001] .... 49494.051814: snd_soc_dapm_widget_power: widget=x ADC val=1
      pulseaudio-19120 [001] .... 49494.051815: snd_soc_dapm_widget_power: widget=x AIFOUT val=1
      pulseaudio-19120 [001] .... 49494.051816: snd_soc_dapm_widget_power: widget=x Mic Bias val=1
      pulseaudio-19120 [001] .... 49494.051817: snd_soc_dapm_widget_power: widget=x Capture Mux val=1
      pulseaudio-19120 [001] .... 49494.051817: snd_soc_dapm_widget_power: widget=x MIC_IN val=1
      pulseaudio-19120 [001] .... 49494.051818: snd_soc_dapm_widget_power: widget=x Mic val=1
 alsa-source-ADM-19157 [000] .... 49499.320012: snd_soc_dapm_widget_power: widget=Capture 1 val=0
 alsa-source-ADM-19157 [000] .... 49499.320041: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
 alsa-source-ADM-19157 [000] .... 49499.320053: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
 alsa-source-ADM-19157 [000] .... 49499.320064: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
 alsa-source-ADM-19157 [000] .... 49499.320112: snd_soc_dapm_widget_power: widget=I2S4 RX val=0
 alsa-source-ADM-19157 [000] .... 49499.320223: snd_soc_dapm_widget_power: widget=I2S4 Receive val=0
 alsa-source-ADM-19157 [000] .... 49499.320235: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit-I2S4 Receive val=0
 alsa-source-ADM-19157 [000] .... 49499.320246: snd_soc_dapm_widget_power: widget=I2S4 CIF Transmit val=0
 alsa-source-ADM-19157 [000] .... 49499.320259: snd_soc_dapm_widget_power: widget=I2S4 CIF TX val=0
 alsa-source-ADM-19157 [000] .... 49499.320269: snd_soc_dapm_widget_power: widget=I2S4 DAP RX val=0
 alsa-source-ADM-19157 [000] .... 49499.320280: snd_soc_dapm_widget_power: widget=I2S4 DAP Receive val=0
 alsa-source-ADM-19157 [000] .... 49499.320292: snd_soc_dapm_widget_power: widget=x Capture-I2S4 DAP Receive val=0
 alsa-source-ADM-19157 [000] .... 49499.320303: snd_soc_dapm_widget_power: widget=x Capture val=0
 alsa-source-ADM-19157 [000] .... 49499.320316: snd_soc_dapm_widget_power: widget=x ADC val=0
 alsa-source-ADM-19157 [000] .... 49499.320326: snd_soc_dapm_widget_power: widget=x AIFOUT val=0
 alsa-source-ADM-19157 [000] .... 49499.320339: snd_soc_dapm_widget_power: widget=x Mic Bias val=0
 alsa-source-ADM-19157 [000] .... 49499.320351: snd_soc_dapm_widget_power: widget=x Capture Mux val=0
 alsa-source-ADM-19157 [000] .... 49499.320362: snd_soc_dapm_widget_power: widget=x MIC_IN val=0
 alsa-source-ADM-19157 [000] .... 49499.320372: snd_soc_dapm_widget_power: widget=x Mic val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332304: snd_soc_dapm_widget_power: widget=Playback 1 val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332325: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332338: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332377: snd_soc_dapm_widget_power: widget=I2S4 Mux val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332392: snd_soc_dapm_widget_power: widget=I2S4 TX val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332403: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332413: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332425: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332436: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332446: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332458: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332469: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332481: snd_soc_dapm_widget_power: widget=x Playback val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332493: snd_soc_dapm_widget_power: widget=x DAC val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332504: snd_soc_dapm_widget_power: widget=x AIFIN val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332525: snd_soc_dapm_widget_power: widget=x LO val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332877: snd_soc_dapm_widget_power: widget=x Headphone Mux val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332889: snd_soc_dapm_widget_power: widget=x LINE_OUT val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332899: snd_soc_dapm_widget_power: widget=x HP val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332908: snd_soc_dapm_widget_power: widget=x Line Out val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332917: snd_soc_dapm_widget_power: widget=x HP_OUT val=0
 alsa-sink-ADMAI-19156 [000] .... 49499.332927: snd_soc_dapm_widget_power: widget=x Headphone val=0
    speaker-test-19202 [001] .... 49704.095188: snd_soc_dapm_widget_power: widget=Playback 1 val=1
    speaker-test-19202 [001] .... 49704.095192: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
    speaker-test-19202 [001] .... 49704.095193: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
    speaker-test-19202 [001] .... 49704.095199: snd_soc_dapm_widget_power: widget=I2S4 Mux val=1
    speaker-test-19202 [001] .... 49704.095200: snd_soc_dapm_widget_power: widget=I2S4 TX val=1
    speaker-test-19202 [001] .... 49704.095201: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=1
    speaker-test-19202 [001] .... 49704.095202: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=1
    speaker-test-19202 [001] .... 49704.095203: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=1
    speaker-test-19202 [001] .... 49704.095204: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=1
    speaker-test-19202 [001] .... 49704.095205: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=1
    speaker-test-19202 [001] .... 49704.095206: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=1
    speaker-test-19202 [001] .... 49704.095207: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=1
    speaker-test-19202 [001] .... 49704.095208: snd_soc_dapm_widget_power: widget=x Playback val=1
    speaker-test-19202 [001] .... 49704.095209: snd_soc_dapm_widget_power: widget=x DAC val=1
    speaker-test-19202 [001] .... 49704.095210: snd_soc_dapm_widget_power: widget=x AIFIN val=1
    speaker-test-19202 [001] .... 49704.095211: snd_soc_dapm_widget_power: widget=x LO val=1
    speaker-test-19202 [001] .... 49704.095212: snd_soc_dapm_widget_power: widget=x Headphone Mux val=1
    speaker-test-19202 [001] .... 49704.095213: snd_soc_dapm_widget_power: widget=x LINE_OUT val=1
    speaker-test-19202 [001] .... 49704.095214: snd_soc_dapm_widget_power: widget=x HP val=1
    speaker-test-19202 [001] .... 49704.095215: snd_soc_dapm_widget_power: widget=x Line Out val=1
    speaker-test-19202 [001] .... 49704.095216: snd_soc_dapm_widget_power: widget=x HP_OUT val=1
    speaker-test-19202 [001] .... 49704.095217: snd_soc_dapm_widget_power: widget=x Headphone val=1
    speaker-test-19202 [001] .... 49704.424710: snd_soc_dapm_widget_power: widget=Playback 1 val=0
    speaker-test-19202 [001] .... 49704.424714: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
    speaker-test-19202 [001] .... 49704.424716: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
    speaker-test-19202 [001] .... 49704.424725: snd_soc_dapm_widget_power: widget=I2S4 Mux val=0
    speaker-test-19202 [001] .... 49704.424727: snd_soc_dapm_widget_power: widget=I2S4 TX val=0
    speaker-test-19202 [001] .... 49704.424729: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=0
    speaker-test-19202 [001] .... 49704.424730: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=0
    speaker-test-19202 [001] .... 49704.424731: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=0
    speaker-test-19202 [001] .... 49704.424733: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=0
    speaker-test-19202 [001] .... 49704.424734: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=0
    speaker-test-19202 [001] .... 49704.424735: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=0
    speaker-test-19202 [001] .... 49704.424737: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=0
    speaker-test-19202 [001] .... 49704.424738: snd_soc_dapm_widget_power: widget=x Playback val=0
    speaker-test-19202 [001] .... 49704.424740: snd_soc_dapm_widget_power: widget=x DAC val=0
    speaker-test-19202 [001] .... 49704.424741: snd_soc_dapm_widget_power: widget=x AIFIN val=0
    speaker-test-19202 [001] .... 49704.424744: snd_soc_dapm_widget_power: widget=x LO val=0
    speaker-test-19202 [001] .... 49704.424745: snd_soc_dapm_widget_power: widget=x Headphone Mux val=0
    speaker-test-19202 [001] .... 49704.424746: snd_soc_dapm_widget_power: widget=x LINE_OUT val=0
    speaker-test-19202 [001] .... 49704.424747: snd_soc_dapm_widget_power: widget=x HP val=0
    speaker-test-19202 [001] .... 49704.424748: snd_soc_dapm_widget_power: widget=x Line Out val=0
    speaker-test-19202 [001] .... 49704.424749: snd_soc_dapm_widget_power: widget=x HP_OUT val=0
    speaker-test-19202 [001] .... 49704.424751: snd_soc_dapm_widget_power: widget=x Headphone val=0
    speaker-test-19214 [002] .... 49869.628242: snd_soc_dapm_widget_power: widget=Playback 1 val=1
    speaker-test-19214 [002] .... 49869.628245: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
    speaker-test-19214 [002] .... 49869.628246: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
    speaker-test-19214 [002] .... 49869.628252: snd_soc_dapm_widget_power: widget=I2S4 Mux val=1
    speaker-test-19214 [002] .... 49869.628253: snd_soc_dapm_widget_power: widget=I2S4 TX val=1
    speaker-test-19214 [002] .... 49869.628254: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=1
    speaker-test-19214 [002] .... 49869.628255: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=1
    speaker-test-19214 [002] .... 49869.628255: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=1
    speaker-test-19214 [002] .... 49869.628256: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=1
    speaker-test-19214 [002] .... 49869.628257: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=1
    speaker-test-19214 [002] .... 49869.628258: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=1
    speaker-test-19214 [002] .... 49869.628258: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=1
    speaker-test-19214 [002] .... 49869.628259: snd_soc_dapm_widget_power: widget=x Playback val=1
    speaker-test-19214 [002] .... 49869.628260: snd_soc_dapm_widget_power: widget=x DAC val=1
    speaker-test-19214 [002] .... 49869.628261: snd_soc_dapm_widget_power: widget=x AIFIN val=1
    speaker-test-19214 [002] .... 49869.628262: snd_soc_dapm_widget_power: widget=x LO val=1
    speaker-test-19214 [002] .... 49869.628263: snd_soc_dapm_widget_power: widget=x Headphone Mux val=1
    speaker-test-19214 [002] .... 49869.628264: snd_soc_dapm_widget_power: widget=x LINE_OUT val=1
    speaker-test-19214 [002] .... 49869.628264: snd_soc_dapm_widget_power: widget=x HP val=1
    speaker-test-19214 [002] .... 49869.628265: snd_soc_dapm_widget_power: widget=x Line Out val=1
    speaker-test-19214 [002] .... 49869.628266: snd_soc_dapm_widget_power: widget=x HP_OUT val=1
    speaker-test-19214 [002] .... 49869.628267: snd_soc_dapm_widget_power: widget=x Headphone val=1
    speaker-test-19214 [001] .... 49869.955678: snd_soc_dapm_widget_power: widget=Playback 1 val=0
    speaker-test-19214 [001] .... 49869.955683: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
    speaker-test-19214 [001] .... 49869.955685: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
    speaker-test-19214 [001] .... 49869.955691: snd_soc_dapm_widget_power: widget=I2S4 Mux val=0
    speaker-test-19214 [001] .... 49869.955694: snd_soc_dapm_widget_power: widget=I2S4 TX val=0
    speaker-test-19214 [001] .... 49869.955695: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=0
    speaker-test-19214 [001] .... 49869.955696: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=0
    speaker-test-19214 [001] .... 49869.955698: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=0
    speaker-test-19214 [001] .... 49869.955700: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=0
    speaker-test-19214 [001] .... 49869.955701: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=0
    speaker-test-19214 [001] .... 49869.955703: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=0
    speaker-test-19214 [001] .... 49869.955704: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=0
    speaker-test-19214 [001] .... 49869.955706: snd_soc_dapm_widget_power: widget=x Playback val=0
    speaker-test-19214 [001] .... 49869.955708: snd_soc_dapm_widget_power: widget=x DAC val=0
    speaker-test-19214 [001] .... 49869.955710: snd_soc_dapm_widget_power: widget=x AIFIN val=0
    speaker-test-19214 [001] .... 49869.955711: snd_soc_dapm_widget_power: widget=x LO val=0
    speaker-test-19214 [001] .... 49869.955713: snd_soc_dapm_widget_power: widget=x Headphone Mux val=0
    speaker-test-19214 [001] .... 49869.955714: snd_soc_dapm_widget_power: widget=x LINE_OUT val=0
    speaker-test-19214 [001] .... 49869.955716: snd_soc_dapm_widget_power: widget=x HP val=0
    speaker-test-19214 [001] .... 49869.955717: snd_soc_dapm_widget_power: widget=x Line Out val=0
    speaker-test-19214 [001] .... 49869.955719: snd_soc_dapm_widget_power: widget=x HP_OUT val=0
    speaker-test-19214 [001] .... 49869.955720: snd_soc_dapm_widget_power: widget=x Headphone val=0
    speaker-test-19215 [003] .... 49882.667635: snd_soc_dapm_widget_power: widget=Playback 1 val=1
    speaker-test-19215 [003] .... 49882.667655: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
    speaker-test-19215 [003] .... 49882.667664: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
    speaker-test-19215 [003] .... 49882.667701: snd_soc_dapm_widget_power: widget=I2S4 Mux val=1
    speaker-test-19215 [003] .... 49882.667710: snd_soc_dapm_widget_power: widget=I2S4 TX val=1
    speaker-test-19215 [003] .... 49882.667716: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=1
    speaker-test-19215 [003] .... 49882.667722: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=1
    speaker-test-19215 [003] .... 49882.667728: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=1
    speaker-test-19215 [003] .... 49882.667735: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=1
    speaker-test-19215 [003] .... 49882.667741: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=1
    speaker-test-19215 [003] .... 49882.667747: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=1
    speaker-test-19215 [003] .... 49882.667754: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=1
    speaker-test-19215 [003] .... 49882.667760: snd_soc_dapm_widget_power: widget=x Playback val=1
    speaker-test-19215 [003] .... 49882.667768: snd_soc_dapm_widget_power: widget=x DAC val=1
    speaker-test-19215 [003] .... 49882.667774: snd_soc_dapm_widget_power: widget=x AIFIN val=1
    speaker-test-19215 [003] .... 49882.667781: snd_soc_dapm_widget_power: widget=x LO val=1
    speaker-test-19215 [003] .... 49882.667788: snd_soc_dapm_widget_power: widget=x Headphone Mux val=1
    speaker-test-19215 [003] .... 49882.667795: snd_soc_dapm_widget_power: widget=x LINE_OUT val=1
    speaker-test-19215 [003] .... 49882.667802: snd_soc_dapm_widget_power: widget=x HP val=1
    speaker-test-19215 [003] .... 49882.667808: snd_soc_dapm_widget_power: widget=x Line Out val=1
    speaker-test-19215 [003] .... 49882.667814: snd_soc_dapm_widget_power: widget=x HP_OUT val=1
    speaker-test-19215 [003] .... 49882.667819: snd_soc_dapm_widget_power: widget=x Headphone val=1
    speaker-test-19215 [001] .... 49882.999149: snd_soc_dapm_widget_power: widget=Playback 1 val=0
    speaker-test-19215 [001] .... 49882.999154: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
    speaker-test-19215 [001] .... 49882.999156: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
    speaker-test-19215 [001] .... 49882.999164: snd_soc_dapm_widget_power: widget=I2S4 Mux val=0
    speaker-test-19215 [001] .... 49882.999167: snd_soc_dapm_widget_power: widget=I2S4 TX val=0
    speaker-test-19215 [001] .... 49882.999168: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=0
    speaker-test-19215 [001] .... 49882.999170: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=0
    speaker-test-19215 [001] .... 49882.999172: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=0
    speaker-test-19215 [001] .... 49882.999174: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=0
    speaker-test-19215 [001] .... 49882.999176: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=0
    speaker-test-19215 [001] .... 49882.999178: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=0
    speaker-test-19215 [001] .... 49882.999180: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=0
    speaker-test-19215 [001] .... 49882.999182: snd_soc_dapm_widget_power: widget=x Playback val=0
    speaker-test-19215 [001] .... 49882.999184: snd_soc_dapm_widget_power: widget=x DAC val=0
    speaker-test-19215 [001] .... 49882.999186: snd_soc_dapm_widget_power: widget=x AIFIN val=0
    speaker-test-19215 [001] .... 49882.999188: snd_soc_dapm_widget_power: widget=x LO val=0
    speaker-test-19215 [001] .... 49882.999190: snd_soc_dapm_widget_power: widget=x Headphone Mux val=0
    speaker-test-19215 [001] .... 49882.999192: snd_soc_dapm_widget_power: widget=x LINE_OUT val=0
    speaker-test-19215 [001] .... 49882.999193: snd_soc_dapm_widget_power: widget=x HP val=0
    speaker-test-19215 [001] .... 49882.999195: snd_soc_dapm_widget_power: widget=x Line Out val=0
    speaker-test-19215 [001] .... 49882.999196: snd_soc_dapm_widget_power: widget=x HP_OUT val=0
    speaker-test-19215 [001] .... 49882.999198: snd_soc_dapm_widget_power: widget=x Headphone val=0

Hello!

You mentioned before that you have a dedicated 24MHz clock for the codec that is external and if that is the case, you should not add the above clock to the sound node.

From the trace it does appear that it is turning on the codec and so that is a good sign. I see that pulseaudio is also usnig this device. Are you able to open up the ‘Sound’ setting under the Ubuntu desktop GUI and change the default playback device to be the HDMI/DP device? That will prevent pulseaudio trying to use the codec.

Regards,
Jon

Hello @jonathanh,

The HDMI Display shows me this error screen below, instead of the jetson Ubuntu desktop screen. I dont know why.

So, I used these commands to change the default playback device:

jetson@image-box:~$ pactl list short sinks
0	alsa_output.platform-sound.analog-stereo	module-alsa-card.c	s16le 2ch 44100Hz	SUSPENDED
1	alsa_output.platform-70030000.hda.hdmi-stereo	module-alsa-card.c	s16le 2ch 44100Hz	SUSPENDED
jetson@image-box:~$ pacmd set-default-source 1

this is the trace output now.

jetson@image-box:~$ speaker-test -D hw:tegrasndt210ref,0 -c 2 -r 48000 -F S16_LE -t sine -f 500 -l 2

speaker-test 1.1.3

Playback device is hw:tegrasndt210ref,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 500,0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 8192
Period size range from 32 to 4096
Using max buffer size 8192
Periods = 4
was set period_size = 2048
was set buffer_size = 8192
 0 - Front Left
 1 - Front Right
Time per period = 0,110378
 0 - Front Left
 1 - Front Right
Time per period = 0,112419
jetson@image-box:~$ sudo cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 44/44   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
    speaker-test-16523 [003] ....   801.798641: snd_soc_dapm_widget_power: widget=Playback 1 val=1
    speaker-test-16523 [003] ....   801.798645: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
    speaker-test-16523 [003] ....   801.798646: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
    speaker-test-16523 [003] ....   801.798655: snd_soc_dapm_widget_power: widget=I2S4 Mux val=1
    speaker-test-16523 [003] ....   801.798656: snd_soc_dapm_widget_power: widget=I2S4 TX val=1
    speaker-test-16523 [003] ....   801.798657: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=1
    speaker-test-16523 [003] ....   801.798658: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=1
    speaker-test-16523 [003] ....   801.798658: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=1
    speaker-test-16523 [003] ....   801.798659: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=1
    speaker-test-16523 [003] ....   801.798660: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=1
    speaker-test-16523 [003] ....   801.798661: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=1
    speaker-test-16523 [003] ....   801.798662: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=1
    speaker-test-16523 [003] ....   801.798663: snd_soc_dapm_widget_power: widget=x Playback val=1
    speaker-test-16523 [003] ....   801.798664: snd_soc_dapm_widget_power: widget=x DAC val=1
    speaker-test-16523 [003] ....   801.798665: snd_soc_dapm_widget_power: widget=x AIFIN val=1
    speaker-test-16523 [003] ....   801.798665: snd_soc_dapm_widget_power: widget=x LO val=1
    speaker-test-16523 [003] ....   801.798667: snd_soc_dapm_widget_power: widget=x Headphone Mux val=1
    speaker-test-16523 [003] ....   801.798668: snd_soc_dapm_widget_power: widget=x LINE_OUT val=1
    speaker-test-16523 [003] ....   801.798668: snd_soc_dapm_widget_power: widget=x HP val=1
    speaker-test-16523 [003] ....   801.798669: snd_soc_dapm_widget_power: widget=x Line Out val=1
    speaker-test-16523 [003] ....   801.798670: snd_soc_dapm_widget_power: widget=x HP_OUT val=1
    speaker-test-16523 [003] ....   801.798671: snd_soc_dapm_widget_power: widget=x Headphone val=1
    speaker-test-16523 [000] ....   802.126657: snd_soc_dapm_widget_power: widget=Playback 1 val=0
    speaker-test-16523 [000] ....   802.126661: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
    speaker-test-16523 [000] ....   802.126662: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
    speaker-test-16523 [000] ....   802.126671: snd_soc_dapm_widget_power: widget=I2S4 Mux val=0
    speaker-test-16523 [000] ....   802.126673: snd_soc_dapm_widget_power: widget=I2S4 TX val=0
    speaker-test-16523 [000] ....   802.126674: snd_soc_dapm_widget_power: widget=I2S4 Transmit val=0
    speaker-test-16523 [000] ....   802.126675: snd_soc_dapm_widget_power: widget=I2S4 Transmit-I2S4 CIF Receive val=0
    speaker-test-16523 [000] ....   802.126676: snd_soc_dapm_widget_power: widget=I2S4 CIF Receive val=0
    speaker-test-16523 [000] ....   802.126678: snd_soc_dapm_widget_power: widget=I2S4 CIF RX val=0
    speaker-test-16523 [000] ....   802.126679: snd_soc_dapm_widget_power: widget=I2S4 DAP TX val=0
    speaker-test-16523 [000] ....   802.126680: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit val=0
    speaker-test-16523 [000] ....   802.126681: snd_soc_dapm_widget_power: widget=I2S4 DAP Transmit-x Playback val=0
    speaker-test-16523 [000] ....   802.126682: snd_soc_dapm_widget_power: widget=x Playback val=0
    speaker-test-16523 [000] ....   802.126684: snd_soc_dapm_widget_power: widget=x DAC val=0
    speaker-test-16523 [000] ....   802.126685: snd_soc_dapm_widget_power: widget=x AIFIN val=0
    speaker-test-16523 [000] ....   802.126686: snd_soc_dapm_widget_power: widget=x LO val=0
    speaker-test-16523 [000] ....   802.126687: snd_soc_dapm_widget_power: widget=x Headphone Mux val=0
    speaker-test-16523 [000] ....   802.126689: snd_soc_dapm_widget_power: widget=x LINE_OUT val=0
    speaker-test-16523 [000] ....   802.126690: snd_soc_dapm_widget_power: widget=x HP val=0
    speaker-test-16523 [000] ....   802.126691: snd_soc_dapm_widget_power: widget=x Line Out val=0
    speaker-test-16523 [000] ....   802.126692: snd_soc_dapm_widget_power: widget=x HP_OUT val=0
    speaker-test-16523 [000] ....   802.126693: snd_soc_dapm_widget_power: widget=x Headphone val=0

So, I found this fault below. Any suggestion?

jetson@image-box:~$ dmesg | grep failed
[    0.000000] OF: fdt:Reserved memory: failed to reserve memory for node 'fb1_carveout': base 0x0000000000000000, size 0 MiB
[    0.000000] OF: fdt:Reserved memory: failed to reserve memory for node 'fb1_carveout': base 0x0000000000000000, size 0 MiB
[    1.626254] tegradc tegradc.1: dp: failed to exit panel power save mode (0xfffffff2)
[    1.816392] tegradc tegradc.1: dp: failed to exit panel power save mode (0xfffffff2)
[    1.824140] hpd: edid read prepare failed
[    1.936663] imx219 7-0010: board setup failed
[    1.941111] imx219: probe of 7-0010 failed with error -121
[    1.973075] imx219 8-0010: board setup failed
[    1.977543] imx219: probe of 8-0010 failed with error -121
[    1.982742] tegra_soctherm 700e2000.soctherm: failed to register sensor: -19
[    2.048451] clk: failed to reparent pll_a_out0 to pll_a_out0: -22
[  430.961762] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  431.753680] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  432.514091] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  432.741734] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  432.858219] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  433.526766] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  433.746260] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  433.863193] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  434.550305] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  434.817908] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  674.634670] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  801.891161] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22

Hello!

Have you reverted the clock changes you made to the sound node? If not please remove these.

Regards,
Jon

Yes @jonathanh , I reverted the clock changes in the sound node.

This is my current dtsi.

diff --git a/tegra210-porg-p3448-common.dtsi.old b/tegra210-porg-p3448-common.dtsi
index 2a7d844..2d7cdd0 100644
--- a/tegra210-porg-p3448-common.dtsi.old
+++ b/tegra210-porg-p3448-common.dtsi
@@ -75,6 +75,16 @@
                };
        };
 
+       clocks {
+           sgtl5000_mclk: sgtl5000_mclk {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency =   <24000000>;
+               clock-output-names = "sgtl5000-mclk";
+               status = "okay";
+           };
+       };
+
        rollback-protection {
                status = "okay";
        };
@@ -398,25 +408,26 @@
                nvidia,num-codec-link = <4>;
 
                nvidia,audio-routing =
-                       "x Headphone",  "x OUT",
-                       "x IN",         "x Mic",
-                       "y Headphone",  "y OUT",
-                       "y IN",         "y Mic",
-                       "a IN",         "a Mic",
-                       "b IN",         "b Mic";
+                       "x Headphone",          "x HP_OUT",
+                       "x MIC_IN",             "x Mic",
+                       "x ADC",                "x Mic Bias",
+                       "x LINE_IN",            "x Line In",
+                       "x Line Out",           "x LINE_OUT";
 
                nvidia,xbar = <&tegra_axbar>;
                mclk-fs = <256>;
 
                hdr40_snd_link_i2s: i2s_dai_link1: nvidia,dai-link-1 {
-                       link-name = "spdif-dit-0";
+                       link-name = "fe-pi-audio-z-v2";
                        cpu-dai = <&tegra_i2s4>;
-                       codec-dai = <&spdif_dit0>;
+                       codec-dai = <&sgtl5000>;
                        cpu-dai-name = "I2S4";
-                       codec-dai-name = "dit-hifi";
+                       codec-dai-name = "sgtl5000";
                        format = "i2s";
                        bitclock-slave;
                        frame-slave;
+                       bitclock-master;
+                       frame-master;
                        bitclock-noninversion;
                        frame-noninversion;
                        bit-format = "s16_le";
@@ -766,6 +777,20 @@
                tegra_nct72: temp-sensor@4c {
                        status = "disabled";
                };
+
+               sgtl5000: sgtl5000@0a {
+                       compatible = "fsl,sgtl5000";
+                       reg = <0x0a>;
+                       clocks = <&sgtl5000_mclk>;
+                       micbias-resistor-k-ohms = <2>;
+                       micbias-voltage-m-volts = <3000>;
+                       VDDA-supply = <&hdr40_vdd_3v3>;
+                       /*VDDIO-supply = <&hdr40_vdd_3v3>;*/
+                       VDDIO-supply = <&p3449_vdd_1v8>;
+                       status = "okay";
+               };
+
+
        };
 
        hdr40_i2c1: i2c@7000c400 { };
(END)

Any suggestion?

Hello!

Are you still seeing …

[    2.048451] clk: failed to reparent pll_a_out0 to pll_a_out0: -22

If so then, I would recommend you revert all your changes and figure out which change is causing this.

Regards,
Jon

Hello @jonathanh.

There is no failure about “pll_a_out0” now. Just failure about “I2S4”.

Look at my current log below.

jetson@image-box:~$ dmesg | grep failed
[    0.000000] OF: fdt:Reserved memory: failed to reserve memory for node 'fb0_carveout': base 0x0000000000000000, size 0 MiB
[    0.000000] OF: fdt:Reserved memory: failed to reserve memory for node 'fb0_carveout': base 0x0000000000000000, size 0 MiB
[    0.000000] OF: fdt:Reserved memory: failed to reserve memory for node 'fb1_carveout': base 0x0000000000000000, size 0 MiB
[    0.000000] OF: fdt:Reserved memory: failed to reserve memory for node 'fb1_carveout': base 0x0000000000000000, size 0 MiB
[    1.622699] tegradc tegradc.1: dp: failed to exit panel power save mode (0xfffffff2)
[    1.813036] tegradc tegradc.1: dp: failed to exit panel power save mode (0xfffffff2)
[    1.820787] hpd: edid read prepare failed
[    1.947659] imx219 7-0010: board setup failed
[    1.952107] imx219: probe of 7-0010 failed with error -121
[    1.983642] imx219 8-0010: board setup failed
[    1.988094] imx219: probe of 8-0010 failed with error -121
[    1.992954] tegra_soctherm 700e2000.soctherm: failed to register sensor: -19
[  140.453658] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  141.217342] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  141.985513] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  142.211175] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  142.305797] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  142.942547] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  143.164799] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  143.284595] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  143.945659] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  144.227231] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  232.342794] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  299.667548] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  301.949611] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22

Look at my current dtsi:

diff --git a/tegra210-porg-p3448-common.dtsi.old b/tegra210-porg-p3448-common.dtsi
index 2a7d844..2d7cdd0 100644
--- a/tegra210-porg-p3448-common.dtsi.old
+++ b/tegra210-porg-p3448-common.dtsi
@@ -75,6 +75,16 @@
                };
        };
 
+       clocks {
+           sgtl5000_mclk: sgtl5000_mclk {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency =   <24000000>;
+               clock-output-names = "sgtl5000-mclk";
+               status = "okay";
+           };
+       };
+
        rollback-protection {
                status = "okay";
        };
@@ -398,25 +408,26 @@
                nvidia,num-codec-link = <4>;
 
                nvidia,audio-routing =
-                       "x Headphone",  "x OUT",
-                       "x IN",         "x Mic",
-                       "y Headphone",  "y OUT",
-                       "y IN",         "y Mic",
-                       "a IN",         "a Mic",
-                       "b IN",         "b Mic";
+                       "x Headphone",          "x HP_OUT",
+                       "x MIC_IN",             "x Mic",
+                       "x ADC",                "x Mic Bias",
+                       "x LINE_IN",            "x Line In",
+                       "x Line Out",           "x LINE_OUT";
 
                nvidia,xbar = <&tegra_axbar>;
                mclk-fs = <256>;
 
                hdr40_snd_link_i2s: i2s_dai_link1: nvidia,dai-link-1 {
-                       link-name = "spdif-dit-0";
+                       link-name = "fe-pi-audio-z-v2";
                        cpu-dai = <&tegra_i2s4>;
-                       codec-dai = <&spdif_dit0>;
+                       codec-dai = <&sgtl5000>;
                        cpu-dai-name = "I2S4";
-                       codec-dai-name = "dit-hifi";
+                       codec-dai-name = "sgtl5000";
                        format = "i2s";
                        bitclock-slave;
                        frame-slave;
+                       bitclock-master;
+                       frame-master;
                        bitclock-noninversion;
                        frame-noninversion;
                        bit-format = "s16_le";
@@ -766,6 +777,20 @@
                tegra_nct72: temp-sensor@4c {
                        status = "disabled";
                };
+
+               sgtl5000: sgtl5000@0a {
+                       compatible = "fsl,sgtl5000";
+                       reg = <0x0a>;
+                       clocks = <&sgtl5000_mclk>;
+                       micbias-resistor-k-ohms = <2>;
+                       micbias-voltage-m-volts = <3000>;
+                       VDDA-supply = <&hdr40_vdd_3v3>;
+                       /*VDDIO-supply = <&hdr40_vdd_3v3>;*/
+                       VDDIO-supply = <&p3449_vdd_1v8>;
+                       status = "okay";
+               };
+
+
        };
 
        hdr40_i2c1: i2c@7000c400 { };
(END)

Hello!

This would typically indicate that it is failing to enable the I2S. However, if this fails I would also expect to see this error. So it would be interesting to see if the tegra210_i2s_tx_stop() is returning an error. If it is, then the most likely cause is that the codec is not generating the bit clock or the pinmux is not setup correctly. The settings you shared for the pinmux previously looked fine, but always worth dumping the following …

sudo grep dap4 /sys/kernel/debug/tegra_pinctrl_reg

Regards,
Jon

@jonathanh,

jetson@image-box:~$ sudo grep dap4 /sys/kernel/debug/tegra_pinctrl_reg
[sudo] password for jetson: 
Bank: 1 Reg: 0x70003144 Val: 0x00000044 -> dap4_fs_pj4
Bank: 1 Reg: 0x70003148 Val: 0x00000044 -> dap4_din_pj5
Bank: 1 Reg: 0x7000314c Val: 0x00000044 -> dap4_dout_pj6
Bank: 1 Reg: 0x70003150 Val: 0x00000044 -> dap4_sclk_pj7

there are 1.5Mhz in the pin “dap4_sclk_pj7” :

@jonathanh,

I changed a little bit the PINMUX. Now I have the values below. I think these are the correct values, that right?

jetson@image-box:~$ sudo grep dap4 /sys/kernel/debug/tegra_pinctrl_reg
[sudo] password for jetson: 
Bank: 1 Reg: 0x70003144 Val: 0x00000044 -> dap4_fs_pj4
Bank: 1 Reg: 0x70003148 Val: 0x00000054 -> dap4_din_pj5
Bank: 1 Reg: 0x7000314c Val: 0x00000004 -> dap4_dout_pj6
Bank: 1 Reg: 0x70003150 Val: 0x00000044 -> dap4_sclk_pj7

I’m still having the error below.

 jetson@image-box:~$ dmesg | grep I2S
[  176.167922] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP RX sw reset
[  176.174540] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  176.946176] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP RX sw reset
[  176.952805] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  177.700695] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  177.707311] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  177.928740] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP RX sw reset
[  177.935358] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  178.045596] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP RX sw reset
[  178.052212] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  178.690867] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  178.697483] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  178.909922] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP RX sw reset
[  178.916580] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  179.028732] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP RX sw reset
[  179.035349] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  179.703840] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  179.710458] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  179.968077] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP RX sw reset
[  179.974779] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP RX event failed: -22
[  186.417868] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  186.424489] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  190.949821] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  190.956440] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  203.462973] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  203.469593] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  210.492219] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  210.498837] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  212.887240] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  212.893859] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  214.113688] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  214.120345] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  215.384829] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  215.391447] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  216.764970] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  216.771588] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  332.977268] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  332.983920] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  347.962936] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  347.969556] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  357.347280] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  357.353904] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  358.676093] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  358.682713] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  360.515538] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  360.522156] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  367.265388] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  367.272007] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  368.858455] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  368.865073] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  370.121625] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  370.128252] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  371.954050] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  371.960670] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  392.580357] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  392.587219] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  394.099615] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  394.106234] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  395.311348] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  395.317967] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  405.075127] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  405.082000] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  421.600402] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  421.607020] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  501.359106] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  501.365727] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  503.480711] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  503.487330] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  507.113215] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  507.119833] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  524.778000] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  524.784625] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  527.613285] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  527.619904] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  529.937551] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  529.944208] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  531.836503] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  531.843122] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  539.477752] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  539.484370] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  541.578143] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  541.584769] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  543.559449] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  543.566068] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  768.863939] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  768.870557] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[  771.437283] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[  771.443901] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[ 1115.035720] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[ 1115.042338] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[ 1182.513674] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[ 1182.520292] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22
[ 1369.181757] tegra210-i2s tegra210-i2s.3: Failed at I2S4 DAP TX sw reset
[ 1369.188377] tegra210-i2s tegra210-i2s.3: ASoC: PRE_PMU: I2S4 DAP TX event failed: -22

Hello @jonathanh.

There are bit clock and FS signals, but there are no signal in data out and data in. The failure still there. Any suggestion?

Regards

Hello!

Sorry for the delay. Can you also dump the following?

sudo cat /sys/kernel/debug/tegra_gpio

This will tell us if the pins are being configured as GPIO.

Regards
Jon

@jonathanh

These is the GPIO dump:

jetson@image-box:~$ sudo cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-255, parent: platform/6000d000.gpio, tegra-gpio:
 gpio-0   (                    )
 gpio-1   (                    )
 gpio-2   (                    |pcie_wake           ) in  hi    
 gpio-3   (                    )
 gpio-4   (                    )
 gpio-5   (                    )
 gpio-6   (                    |system-suspend-gpio ) out hi    
 gpio-7   (                    )
 gpio-8   (                    )
 gpio-9   (                    )
 gpio-10  (                    )
 gpio-11  (                    )
 gpio-12  (SPI1_MOSI           )
 gpio-13  (SPI1_MISO           )
 gpio-14  (SPI1_SCK            )
 gpio-15  (SPI1_CS0            )
 gpio-16  (SPI0_MOSI           )
 gpio-17  (SPI0_MISO           )
 gpio-18  (SPI0_SCK            )
 gpio-19  (SPI0_CS0            )
 gpio-20  (SPI0_CS1            )
 gpio-21  (                    )
 gpio-22  (                    )
 gpio-23  (                    )
 gpio-24  (                    )
 gpio-25  (                    )
 gpio-26  (                    )
 gpio-27  (                    )
 gpio-28  (                    )
 gpio-29  (                    )
 gpio-30  (                    )
 gpio-31  (                    )
 gpio-32  (                    )
 gpio-33  (                    )
 gpio-34  (                    )
 gpio-35  (                    )
 gpio-36  (                    )
 gpio-37  (                    )
 gpio-38  (GPIO13              )
 gpio-39  (                    )
 gpio-40  (                    )
 gpio-41  (                    )
 gpio-42  (                    )
 gpio-43  (                    )
 gpio-44  (                    )
 gpio-45  (                    )
 gpio-46  (                    )
 gpio-47  (                    )
 gpio-48  (                    )
 gpio-49  (                    )
 gpio-50  (UART1_RTS           )
 gpio-51  (UART1_CTS           )
 gpio-52  (                    )
 gpio-53  (                    )
 gpio-54  (                    )
 gpio-55  (                    )
 gpio-56  (                    )
 gpio-57  (                    )
 gpio-58  (                    )
 gpio-59  (                    )
 gpio-60  (                    )
 gpio-61  (                    )
 gpio-62  (                    )
 gpio-63  (                    )
 gpio-64  (                    |i2c-mux-gpio        ) out hi    
 gpio-65  (                    |?                   ) out hi    
 gpio-66  (                    )
 gpio-67  (                    )
 gpio-68  (                    )
 gpio-69  (                    )
 gpio-70  (                    )
 gpio-71  (                    )
 gpio-72  (                    )
 gpio-73  (                    )
 gpio-74  (                    )
 gpio-75  (                    )
 gpio-76  (I2S0_FS             )
 gpio-77  (I2S0_DIN            )
 gpio-78  (I2S0_DOUT           )
 gpio-79  (I2S0_SCLK           )
 gpio-80  (                    )
 gpio-81  (                    )
 gpio-82  (                    )
 gpio-83  (                    )
 gpio-84  (                    )
 gpio-85  (                    )
 gpio-86  (                    )
 gpio-87  (                    )
 gpio-88  (                    )
 gpio-89  (                    )
 gpio-90  (                    )
 gpio-91  (                    )
 gpio-92  (                    )
 gpio-93  (                    )
 gpio-94  (                    )
 gpio-95  (                    )
 gpio-96  (                    )
 gpio-97  (                    )
 gpio-98  (                    )
 gpio-99  (                    )
 gpio-100 (                    )
 gpio-101 (                    )
 gpio-102 (                    )
 gpio-103 (                    )
 gpio-104 (                    )
 gpio-105 (                    )
 gpio-106 (                    )
 gpio-107 (                    )
 gpio-108 (                    )
 gpio-109 (                    )
 gpio-110 (                    )
 gpio-111 (                    )
 gpio-112 (                    )
 gpio-113 (                    )
 gpio-114 (                    )
 gpio-115 (                    )
 gpio-116 (                    )
 gpio-117 (                    )
 gpio-118 (                    )
 gpio-119 (                    )
 gpio-120 (                    )
 gpio-121 (                    )
 gpio-122 (                    )
 gpio-123 (                    )
 gpio-124 (                    )
 gpio-125 (                    )
 gpio-126 (                    )
 gpio-127 (                    )
 gpio-128 (                    )
 gpio-129 (                    )
 gpio-130 (                    )
 gpio-131 (                    )
 gpio-132 (                    )
 gpio-133 (                    )
 gpio-134 (                    )
 gpio-135 (                    )
 gpio-136 (                    )
 gpio-137 (                    )
 gpio-138 (                    )
 gpio-139 (                    )
 gpio-140 (                    )
 gpio-141 (                    )
 gpio-142 (                    )
 gpio-143 (                    )
 gpio-144 (                    )
 gpio-145 (                    )
 gpio-146 (                    )
 gpio-147 (                    )
 gpio-148 (                    )
 gpio-149 (GPIO01              )
 gpio-150 (                    )
 gpio-151 (                    )
 gpio-152 (                    )
 gpio-153 (                    )
 gpio-154 (                    )
 gpio-155 (                    )
 gpio-156 (                    )
 gpio-157 (                    )
 gpio-158 (                    )
 gpio-159 (                    )
 gpio-160 (                    )
 gpio-161 (                    )
 gpio-162 (                    )
 gpio-163 (                    )
 gpio-164 (                    )
 gpio-165 (                    )
 gpio-166 (                    )
 gpio-167 (                    )
 gpio-168 (GPIO07              )
 gpio-169 (                    )
 gpio-170 (                    )
 gpio-171 (                    )
 gpio-172 (                    )
 gpio-173 (                    )
 gpio-174 (                    )
 gpio-175 (                    )
 gpio-176 (                    )
 gpio-177 (                    )
 gpio-178 (                    )
 gpio-179 (                    )
 gpio-180 (                    )
 gpio-181 (                    )
 gpio-182 (                    )
 gpio-183 (                    )
 gpio-184 (                    )
 gpio-185 (                    )
 gpio-186 (                    )
 gpio-187 (                    )
 gpio-188 (                    )
 gpio-189 (                    |Power               ) in  lo IRQ
 gpio-190 (                    |Forcerecovery       ) in  hi IRQ
 gpio-191 (                    )
 gpio-192 (                    )
 gpio-193 (                    )
 gpio-194 (GPIO12              )
 gpio-195 (                    )
 gpio-196 (                    )
 gpio-197 (                    )
 gpio-198 (                    )
 gpio-199 (                    )
 gpio-200 (GPIO11              )
 gpio-201 (                    )
 gpio-202 (                    |pwm-fan-tach        ) in  hi IRQ
 gpio-203 (                    |vdd-3v3-sd          ) out lo    
 gpio-204 (                    )
 gpio-205 (                    )
 gpio-206 (                    )
 gpio-207 (                    )
 gpio-208 (                    )
 gpio-209 (                    )
 gpio-210 (                    )
 gpio-211 (                    )
 gpio-212 (                    )
 gpio-213 (                    )
 gpio-214 (                    )
 gpio-215 (                    )
 gpio-216 (GPIO09              )
 gpio-217 (                    )
 gpio-218 (                    )
 gpio-219 (                    )
 gpio-220 (                    )
 gpio-221 (                    )
 gpio-222 (                    )
 gpio-223 (                    )
 gpio-224 (                    )
 gpio-225 (                    |hdmi2.0_hpd         ) in  hi IRQ
 gpio-226 (                    )
 gpio-227 (                    )
 gpio-228 (                    |extcon:extcon@1     ) in  lo IRQ
 gpio-229 (                    )
 gpio-230 (                    )
 gpio-231 (                    |?                   ) out hi    
 gpio-232 (SPI1_CS1            )
 gpio-233 (                    )
 gpio-234 (                    )
 gpio-235 (                    )
 gpio-236 (                    )
 gpio-237 (                    )
 gpio-238 (                    )
 gpio-239 (                    )

gpiochip1: GPIOs 504-511, parent: platform/max77620-gpio, max77620-gpio, can sleep:
 gpio-505 (                    |spmic-default-output) out hi    
 gpio-507 (                    |vdd-3v3-sys         ) out hi    
 gpio-510 (                    |enable              ) out lo    
 gpio-511 (                    |avdd-io-edp-1v05    ) out lo