HinTak / seeed-voicecard

This is an enhancement fork with the explicit aim of supporting current shipping Raspbian/Ubuntu kernels without requiring downgrading. Please donate at https://hintak.github.io/ if it works for you. Use vX.Y branch for kernel version vX.Y
GNU General Public License v3.0
201 stars 78 forks source link

Bugfix/uninitialized cpu codec platform #1

Closed rotdrop closed 4 years ago

rotdrop commented 4 years ago

Commit 37a37a6d1645da7a83957b358ef73857161f114f moved to "modern style dai_link". However, for doing so adi_link->cpus etc. needs to be provided with backing storage. This is not done automatically, at least not in 5.4. Please compare KERNEL/sound/soc/generic/simple-card-utils.c, function asoc_simple_init_priv(). Without this patch module loading immediately result in NULL-pointer dereference.

rotdrop commented 4 years ago

Branch mismatch, closing and reopen.