[Solved] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

Need help with peripherals or devices?
Post Reply
Message
Author
only_someone
Posts: 3
Joined: 2023-01-24 22:12
Has thanked: 2 times

[Solved] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#1 Post by only_someone »

Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).


I have a motherboard with a Creative Sound Blaster R3Di sound card, it is recognized by the system and after a few settings in the AlsaMixer it can also output sound, but the e.g. microphone input does not work and all other connections are also not recognized. I have already downloaded the ALSA firmware, configured it (./configure) and built it (make) and moved the ctefx-r3di.bin for my audio card (Creative Sound Blaster Recon3Di) to the /usr/lib/firmware folder. However, everything is still unchanged.

I have also found this problem in this and other forums entries but there were no solutions.

I must admit that I recently tried the Ubuntu based distribution called Pop!_OS and noticed that the audio card is immediately recognized and works without problems, all inputs and outputs are recognized and work without problems. Since Ubuntu is based on Debian, isn't there any way to trace how Pop!_OS drives the audio card in this case to transfer it to Debian ?
That it is possible to get the audio card to work on a Debian based distribution at least gave me some hope to get it to work on Debian itself.

If someone can help me with this it would be very nice, with thanks in advance and kind regards.
Last edited by only_someone on 2023-01-30 13:02, edited 1 time in total.

Aki
Posts: 453
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 6 times
Been thanked: 59 times

Re: [Hardware] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#2 Post by Aki »

Hello,

You can query the Linux Hardware Database [1] (I used ID 1102:0012) to verify if some user was able to make the microphone work.

A kernel bug report is opened [2], some configuration tips are given, but it is not reported as solved: you can check if some of them apply to you.

A newer kernel could help (from bullseye-backports, e.g.).

HTH

---
[1] https://linux-hardware.org/?id=pci:1102-0012-1102-0010
[2] https://bugzilla.kernel.org/show_bug.cgi?id=112851
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
FreewheelinFrank
Section Moderator
Section Moderator
Posts: 1320
Joined: 2010-06-07 16:59
Has thanked: 17 times
Been thanked: 106 times

Re: [Hardware] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#3 Post by FreewheelinFrank »

You posted this at StackExchange and from there I can see that Pop!_OS has kernel 6, so as Aki suggested, kernel 6 from backports would be the first thing to try. It probably has a patch for this device.

https://unix.stackexchange.com/question ... r-recon3di

only_someone
Posts: 3
Joined: 2023-01-24 22:12
Has thanked: 2 times

Re: [Hardware] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#4 Post by only_someone »

Thank you for your replys and sorry for my late reply, it took longer to test everything.

Just to mention I've been using Debian and GNU/Linux in general for a long time but I haven't dug deep into device management yet so this is new territory for me.


Aki wrote: 2023-01-25 07:11
You can query the Linux Hardware Database [1] (I used ID 1102:0012) to verify if some user was able to make the microphone work.
To find out the device ID I used the hw-probe program recommended by the linux-hardware.org site. In the created devices file I searched for everything that has to do with audio and the only thing that fits is the entry:
"pci:8086-8d20-1458-a036;04-03;detected;sound;snd_hda_intel;Intel Corporation;C610/X99 series chipset HD Audio Controller;Gigabyte Technology Co., Ltd;C610/X99 series chipset HD Audio Controller".

With the "8086-8d20-1458-a036" ID's I was able to find this entry https://linux-hardware.org/?id=pci:8086-8d20-1458-a036, but it doesn't look like someone has already made it work.

Aki wrote: 2023-01-25 07:11
A kernel bug report is opened [2], some configuration tips are given, but it is not reported as solved: you can check if some of them apply to you.
The tips in the comments on the bug report could not help me until now.

Aki wrote: 2023-01-25 07:11
A newer kernel could help (from bullseye-backports, e.g.).
FreewheelinFrank wrote: 2023-01-25 11:06
You posted this at StackExchange and from there I can see that Pop!_OS has kernel 6, so as Aki suggested, kernel 6 from backports would be the first thing to try. It probably has a patch for this device.
Upgrading to the latest available kernel from backports has interestingly made the microphone input work, but nothing else has changed, the other outputs are still not recognized.

But what I noticed interestingly when I searched the journalctl, in Pop!_OS I get an entry that he has set the autoconfig and that correctly, although an error occurred when loading the firmware. In Debian I get only one entry.

Pop!_OS:

Code: Select all

snd_hda_codec_ca0132 hdaudioC0D2: autoconfig for Recon3Di: line_outs=3 (0xb/0x11/0x10/0x0/0x0) type:line
snd_hda_codec_ca0132 hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
snd_hda_codec_ca0132 hdaudioC0D2:    hp_outs=1 (0xf/0x0/0x0/0x0/0x0)
snd_hda_codec_ca0132 hdaudioC0D2:    mono: mono_out=0x0
snd_hda_codec_ca0132 hdaudioC0D2:    dig-out=0xc/0xd
snd_hda_codec_ca0132 hdaudioC0D2:    inputs:
snd_hda_codec_ca0132 hdaudioC0D2:      Mic=0x12
snd_hda_codec_ca0132 hdaudioC0D2:      Line=0x13
snd_hda_intel 0000:00:1b.0: Direct firmware load for ctefx-r3di.bin failed with error -2
Debian:

Code: Select all

snd_hda_intel 0000:00:1b.0: Direct firmware load for ctefx-r3di.bin failed with error -2

Aki
Posts: 453
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 6 times
Been thanked: 59 times

Re: [Hardware] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#5 Post by Aki »

Hello,

Probably it is worth installing the missing firmware file: I have found it here [1]. It should be installed in /lib/firmware (as reported in the README in [1]).

A bug report is opened [2] in Debian BTS about the missing firmware.

HTH

- - -
[1] https://git.alsa-project.org/?p=alsa-fi ... 9f07a0d624
[2] https://bugs.debian.org/cgi-bin/bugrepo ... ug=1023631
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

only_someone
Posts: 3
Joined: 2023-01-24 22:12
Has thanked: 2 times

Re: [Hardware] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#6 Post by only_someone »

Aki wrote: 2023-01-25 20:40 Hello,

Probably it is worth installing the missing firmware file: I have found it here [1]. It should be installed in /lib/firmware (as reported in the README in [1]).

A bug report is opened [2] in Debian BTS about the missing firmware.

HTH

- - -
[1] https://git.alsa-project.org/?p=alsa-fi ... 9f07a0d624
[2] https://bugs.debian.org/cgi-bin/bugrepo ... ug=1023631
I have already done that, the only difference is that I have compiled the binary file on my computer and not downloaded it directly. But the binary files are the same, I checked both with sha256sum.
only_someone wrote: 2023-01-24 22:33
I have a motherboard with a Creative Sound Blaster R3Di sound card, it is recognized by the system and after a few settings in the AlsaMixer it can also output sound, but the e.g. microphone input does not work and all other connections are also not recognized. I have already downloaded the ALSA firmware, configured it (./configure) and built it (make) and moved the ctefx-r3di.bin for my audio card (Creative Sound Blaster Recon3Di) to the /usr/lib/firmware folder. However, everything is still unchanged.
**** Edited: ****

I made a mistake I had read from the very first boot the journalctl of the Debian system, sorry.

but this output confuses me even more [current journalctl from Debian system]:

Code: Select all

kernel: snd_hda_codec_ca0132 hdaudioC0D2: autoconfig for Recon3Di: line_outs=3 (0xb/0x11/0x10/0x0/0x0) type:line
kernel: snd_hda_codec_ca0132 hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
kernel: snd_hda_codec_ca0132 hdaudioC0D2:    hp_outs=1 (0xf/0x0/0x0/0x0/0x0)
kernel: snd_hda_codec_ca0132 hdaudioC0D2:    mono: mono_out=0x0
kernel: snd_hda_codec_ca0132 hdaudioC0D2:    dig-out=0xc/0xd
kernel: snd_hda_codec_ca0132 hdaudioC0D2:    inputs:
kernel: snd_hda_codec_ca0132 hdaudioC0D2:      Mic=0x12
kernel: snd_hda_codec_ca0132 hdaudioC0D2:      Line=0x13
...

kernel: snd_hda_intel 0000:00:1b.0: firmware: direct-loading firmware ctefx-r3di.bin
it indicates everything correctly, however, it is not displayed in the system.
Last edited by only_someone on 2023-01-25 21:49, edited 1 time in total.

Aki
Posts: 453
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 6 times
Been thanked: 59 times

Re: [Hardware] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#7 Post by Aki »

Hello,
only_someone wrote: 2023-01-25 18:27 But what I noticed interestingly when I searched the journalctl, in Pop!_OS I get an entry that he has set the autoconfig and that correctly, although an error occurred when loading the firmware. In Debian I get only one entry.

Code: Select all

Pop!_OS:
[code]snd_hda_codec_ca0132 hdaudioC0D2: autoconfig for Recon3Di: line_outs=3 (0xb/0x11/0x10/0x0/0x0) type:line
snd_hda_codec_ca0132 hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
snd_hda_codec_ca0132 hdaudioC0D2:    hp_outs=1 (0xf/0x0/0x0/0x0/0x0)
snd_hda_codec_ca0132 hdaudioC0D2:    mono: mono_out=0x0
snd_hda_codec_ca0132 hdaudioC0D2:    dig-out=0xc/0xd
snd_hda_codec_ca0132 hdaudioC0D2:    inputs:
snd_hda_codec_ca0132 hdaudioC0D2:      Mic=0x12
snd_hda_codec_ca0132 hdaudioC0D2:      Line=0x13
snd_hda_intel 0000:00:1b.0: Direct firmware load for ctefx-r3di.bin failed with error -2
[/code]Debian:

Code: Select all

snd_hda_intel 0000:00:1b.0: Direct firmware load for ctefx-r3di.bin failed with error -2
if the previous settings make the audio card work, you can pass them to the kernel driver using a configuration file in /etc/modprobe.d/ (see [1]).

The kernel module should be "snd-hda-codec-ca0132.ko". You should be able to get more info about parameters with the command:

Code: Select all

modinfo snd-hda-codec-ca0132
---
[1] https://manpages.debian.org/stretch/kmo ... .5.en.html
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

only_someone
Posts: 3
Joined: 2023-01-24 22:12
Has thanked: 2 times

Re: [Hardware] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#8 Post by only_someone »

I have made everything work and have completely reinstalled my system to repeat everything to be able to make a guide after which it should work (for those who have the same problem).

When installing via the net-installer of Debian 11 it can be that it recognizes that the audio card needs additional drivers and that you can load the missing drivers (ctefx.bin, ctefx-r3di.bin) via another data carrier. When I did this, nothing worked and the microphone input was very distorted. I don't know exactly what happens but when adding the files during the installation via the net-installer something is configured completely wrong.

Directly after the installation I downloaded the ALSA firmware [1] and built it manually.

1. Extract the downloaded alsa-firmware-X.X.X.tar.bz2

2. Go to the newly created folder alsa-firmware-X.X.X

Code: Select all

cd alsa-firmware-X.X.X/
3 To build the binarys (.bin) you need the gcc (GNU Compiler Collection) this and other needed programs you can install with the packet "build-essential"

Code: Select all

sudo apt-get install build-essential
4. Run

Code: Select all

./configure
, if it has no execute permissions you can simply type

Code: Select all

chmod u+x ./configure

5. Run

Code: Select all

make
6. You can also run "sudo make install" afterwards but then also firmware parts you don't need will be installed. To use only the needed parts you have to copy the binaries ctefx-r3di.bin, ctefx.bin and maybe also ctefx-desktop.bin, ctspeq.bin from the folder ca0132/ to the directory /usr/lib/firmware/

Code: Select all

sudo cp ca0132/{ctefx-r3di.bin,ctefx.bin,ctefx-desktop.bin,ctspeq.bin} /usr/lib/firmware/
7. Reboot, and it may be that you have to set the output to "Headphone" in the alsamixer under "Output Select".

Now the headphone and speaker output (depending on what you have chosen) should work as well as the microphone input. However, the other channels are not displayed if available. For me it was a solution to take the latest kernel from the bullseye-backports (linux-image-6.0.0-0) and install PipeWire with PipeWire-PulseAudio and PipeWire-ALSA [2].


I would like to thank Aki and FreewheelinFrank, because I would never have thought of upgrading the kernel myself and especially I would like to thank Aki that he has made the effort and has looked at my problem more closely!


---

[1] https://www.alsa-project.org/files/pub/firmware/
[2] https://wiki.debian.org/PipeWire

Aki
Posts: 453
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 6 times
Been thanked: 59 times

Re: [Hardware] Audio card driver problems Debian 11 (Creative Sound Blaster Recon3Di).

#9 Post by Aki »

Hello,
We did a good teamwork. I'm happy we were able to sort it out, at least partially. Happy Debian & Happy Hacking.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply