rt5640 in I2S mode

modulename: snd-soc-avs-rt5640.ko

configname: CONFIG_SND_SOC_INTEL_AVS_MACH_RT5640

Linux Kernel Configuration
└─>Device Drivers
└─>Sound card support
└─>Advanced Linux Sound Architecture
└─>ALSA for SoC audio support
└─>Intel
└─>Intel AVS Machine drivers
└─>rt5640 in I2S mode
In linux kernel since version 6.17 (release Date: 2025-09-28)  
This adds support for ASoC machine board connecting AVS with RT5640,
components representing Intel AudioDSP and Realtek 5640 codec respectively.
The codec chip is present on I2C bus and the streaming occurs over I2S
interface.
Say Y or m if you have such a device.

source code: