Driver installation failed

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

kbabu123

  • Posts: 2
  • Joined: Thu Dec 20, 2018 1:04 pm
  • Real Name: Babu Krishnappa

Driver installation failed

PostFri Dec 21, 2018 3:25 am

Driver installation failed using "rpm/x86_64/desktopvideo-10.11.4a9.x86_64.rpm"
CPU: AMD Ryzen 3 2200G
OS: CentOS Linux release 7.6.1810
Kernel: 3.10.0-957.1.3.el7.x86_64
Blackmagic product: Decklink SDI 4K

Here's the dkms "make.log"
---------------------
make -C /lib/modules/3.10.0-957.1.3.el7.x86_64/build M=/var/lib/dkms/blackmagic-io/10.11.4a9/build
make[1]: Entering directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'
LD /var/lib/dkms/blackmagic-io/10.11.4a9/build/built-in.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_client.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_dev.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_device.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_driver.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_export.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_serial.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_pci_ids.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_locks.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_mm.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_pci.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_util.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.o
/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.c: In function 'create_sound_card':
/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.c:373:2: error: implicit declaration of function 'snd_card_create' [-Werror=implicit-function-declaration]
int r = snd_card_create(idx, xid, module, extra_size, card_ret);
^
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/lib/dkms/blackmagic-io/10.11.4a9/build] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'
make: *** [all] Error 2
---------------------
Offline

kbabu123

  • Posts: 2
  • Joined: Thu Dec 20, 2018 1:04 pm
  • Real Name: Babu Krishnappa

Re: Driver installation failed

PostMon Dec 24, 2018 6:25 pm

Installation is failing only on "3.10.0-957". Driving installation is working on "3.10.0-862"
Is this due to the fact that the deprecated snd_card_create() has been removed in 957?
Offline

max_verem

  • Posts: 13
  • Joined: Tue Nov 05, 2013 3:10 pm

Re: Driver installation failed

PostMon Jan 14, 2019 12:40 pm

it seems there is a JUMP of ALSA API using by centos releases

possible solution would be:

Code: Select all
--- bmio_audio.c.origin 2018-10-23 04:47:02.000000000 +0200
+++ bmio_audio.c        2019-01-14 13:27:31.308845856 +0100
@@ -367,7 +367,7 @@

        return 0;
 }
-#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && (!defined(RHEL_RELEASE_CODE) || RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,6))
 static int create_sound_card(struct device *parent, int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret)
 {
        int r = snd_card_create(idx, xid, module, extra_size, card_ret);

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 3 guests