Some functions and structures are not found in l4t 32.5.1 compared to L4T 32.4.3

Hi, I was trying to apply my patches to audio codec for Jetson xavier AGX l4t 32.5.1 sources, I found some functions/structures are not present

static void dai_link_setup(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
@@ -912,6 +943,10 @@ static void dai_link_setup(struct platform_device *pdev)
“dspk-playback-l”))
tegra_machine_codec_links[i].init =
tegra_machine_dspk_init;

  •        else if (strstr(tegra_machine_codec_links[i].name,
    
  •            "sgtl5000-playback"))
    
  •           tegra_machine_codec_links[i].init =
    
  •                tegra_machine_sgtl5000_init;
      }
    
    }

is my patch file and I am not finding static void dai_link_setup(struct platform_device *pdev) in /kernel/nvidia/sound/soc/tegra-alt/machine_drivers/tegra_machine_driver_mobile.c

Can you help on this? is this structure modified, moved or something?

Can you firstly give a clean format of your patch? Your patch is like this to me.

Also, what was the software version you patch using?

patch-audio-codec.diff (5.7 KB) oh sorry, here I have attached it

I don’t see rel-32.4.3 has dai_link_setup in tegra_machine_driver_mobile.c . Are you sure the codebase was rel-32.4.3?

oh ok,let me check that, Where can I get details of what changed from version to version? change log etc

Please answer this:

And yes you are right, dai_link_setup is not present in tegra_machine_driver_mobile.c in 32.4.3

You can find the git log from here.

https://nv-tegra.nvidia.com/gitweb/?p=linux-nvidia.git;a=summary

and what about this file? /kernel/kernel-4.9/drivers/net/ethernet/nvidia/eqos/mdio.c this has been removed or replaced in 32.4.3 and later on?

Search the file mdio.c under kernel/nvidia and you will find the answer.

sure, thanks for that