You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I am having problems building the linux_media project for RedHat Enterprise Linux 9 (RHEL 9).
I've successfully built linux_media for RHEL < 9.5 (with some backport patches handling), but now, in RHEL 9.5, kernel 5.14.0-503.15.1.el9_5 has backported changes from kernel 6.6 and the snd_pcm_opts struct has the field copy_user renamed to copy.
@crazycat69 Are you sure? The general approach seems right as snd_pcm_ops->copy was introduced in kernel 6.6.0. It is RedHat that backported this change to RHEL 9.5 (5.14.0-503.15.1.el9_5)
Hello
I am having problems building the
linux_media
project for RedHat Enterprise Linux 9 (RHEL 9).I've successfully built
linux_media
for RHEL < 9.5 (with some backport patches handling), but now, in RHEL 9.5, kernel5.14.0-503.15.1.el9_5
has backported changes from kernel 6.6 and thesnd_pcm_opts
struct has the fieldcopy_user
renamed tocopy
.This line tries to handle that: https://github.com/tbsdtv/linux_media/blob/latest/drivers/media/pci/tbscapture/tbs_pcie.c#L1518 but fails for RHEL's kernel because it's version is 5.14.0 while at the same time the
copy
field should be used.How to handle that case? Should we remove the
#if LINUX_VERSION_CODE
completely and rely only on backport patches in the media_build project (maybe this patch should be extended: https://github.com/tbsdtv/media_build/blob/latest/backports/v6.5_pcm_copy.patch)?The text was updated successfully, but these errors were encountered: