Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5216

Device Tree • Passing "argument" to "kernel module"

$
0
0
I'm placing "argument" and "kernel module" in quotes here because I'm not sure if these are actually the names for what I am referring to below.

I am trying to get a DA7213 codec (on an IQAudio Codec Zero HAT) to operate as the I2S master. Looking at the da7213.c source code (https://github.com/raspberrypi/linux/bl ... 213.c#L744), I see:

Code:

        switch (event) {        case SND_SOC_DAPM_PRE_PMU:                /* Enable DAI clks for master mode */                if (da7213->master)                        snd_soc_component_update_bits(component, DA7213_DAI_CLK_MODE,                                            DA7213_DAI_CLK_EN_MASK,                                            DA7213_DAI_CLK_EN_MASK);                                            
Is the da7213->master part something that I can set via something like a Device Tree Overlay? How do I set this to true? Furthermore, it may be worth mentioning that in my particular case, the "da7213" code is being "used" or "invoked" by the iqaudio-codec code (https://github.com/raspberrypi/linux/bl ... io-codec.c).

Statistics: Posted by dpie — Sat Jan 06, 2024 1:43 am



Viewing all articles
Browse latest Browse all 5216

Trending Articles