Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HiFi 7.1 Not Working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Mon Jan 13, 2025 9:37 pm    Post subject: HiFi 7.1 Not Working Reply with quote

Hello Gentoo community.
I just got some HiFi 7.1 compatible wired headphones, and it would seem that they are only partially working: going into KDE audio settings and changing it to work with HiFi 2.0 works perfectly fine. On 7.1, only front-right and front-left work. The headphones came with a USB adapter, which includes a controller, DAC etc, but when I try to use it, it doesn't work. I imagine that there's a kernel option that I need to enable, but I really don't know, I've never really messed around with audio before.
Here's my kernel config by the way: http://0x0.st/8oH1.txt
This is `dmesg`: http://0x0.st/8oHj.txt
I looked it over, and I think this is interesting:
Code:
leyvi ~ $ dmesg | grep -i "error"
[    9.786410] snd-usb-audio 5-2.3.2:1.0: cannot find the slot for index -1 (range 0-3), error: -19
[  307.838941] usb 5-2.2: device not accepting address 3, error -22
[  309.031961] usb 5-2.2: device not accepting address 3, error -22
[  309.791992] usb 5-2.2: device descriptor read/all, error -71
[  310.862993] usb 5-2.2: device not accepting address 10, error -71
[  338.492493] usb 5-2.2: device descriptor read/64, error -71
[  338.924502] usb 5-2.2: device descriptor read/64, error -71
[  340.328499] usb 5-2.2: device not accepting address 15, error -71
[  536.821442] usb 5-2.2: hub failed to enable device, error -22
[  537.329428] usb 5-2.2: device not accepting address 18, error -22
[  538.306427] usb 5-2.2: device not accepting address 18, error -22
[  560.817646] usb 5-2.2: device not accepting address 19, error -71
[  566.630726] usb 5-2.2: device descriptor read/64, error -71
[  567.241717] usb 5-2.2: device not accepting address 23, error -71
[  569.137800] usb 5-2.2: device descriptor read/all, error -71
[  570.978760] usb 5-2.2: device not accepting address 28, error -71
[  571.725774] usb 5-2.2: device descriptor read/64, error -71
[  572.390782] usb 5-2.2: device descriptor read/64, error -71
[  573.429499] snd-usb-audio 5-2.4:1.0: cannot find the slot for index -1 (range 0-3), error: -19
[  576.902845] usb 5-2.2: device descriptor read/64, error -71
[  579.892464] usb 5-2.2: can't set config #1, error -71
[ 1745.722851] usb 5-2.2: device descriptor read/64, error -71
[ 1765.220591] snd-usb-audio 1-3:1.0: cannot find the slot for index -1 (range 0-3), error: -19
[ 1921.264434] usb 5-2.2: can't read configurations, error -71
[ 1921.454651] usb 5-2.2: device descriptor read/64, error -71
[14833.952824] usb 5-2.2: device not accepting address 42, error -22
[14835.161826] usb 5-2.2: device not accepting address 42, error -22
[14837.674572] usb 5-2.2: can't read configurations, error -71
leyvi ~ $ dmesg | grep -i "headset"
[  573.365481] usb 5-2.4: Product: G432 Gaming Headset
[  573.726635] input: Logitech G432 Gaming Headset Consumer Control as /devices/pci0000:00/0000:00:08.1/0000:0f:00.4/usb5/5-2/5-2.4/5-2.4:1.3/0003:046D:0A9C.0009/input/input20
[  573.776803] input: Logitech G432 Gaming Headset as /devices/pci0000:00/0000:00:08.1/0000:0f:00.4/usb5/5-2/5-2.4/5-2.4:1.3/0003:046D:0A9C.0009/input/input21
[  573.782829] hid-generic 0003:046D:0A9C.0009: input,hiddev101,hidraw8: USB HID v1.11 Device [Logitech G432 Gaming Headset] on usb-0000:0f:00.4-2.4/input3
[ 1765.211813] usb 1-3: Product: G432 Gaming Headset
[ 1765.522740] input: Logitech G432 Gaming Headset Consumer Control as /devices/pci0000:00/0000:00:02.1/0000:04:00.0/0000:05:0c.0/0000:0c:00.0/usb1/1-3/1-3:1.3/0003:046D:0A9C.000A/input/input24
[ 1765.573050] input: Logitech G432 Gaming Headset as /devices/pci0000:00/0000:00:02.1/0000:04:00.0/0000:05:0c.0/0000:0c:00.0/usb1/1-3/1-3:1.3/0003:046D:0A9C.000A/input/input25
[ 1765.585071] hid-generic 0003:046D:0A9C.000A: input,hiddev101,hidraw8: USB HID v1.11 Device [Logitech G432 Gaming Headset] on usb-0000:0c:00.0-3/input3
Help would be greatly appreciated.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5314
Location: Bavaria

PostPosted: Mon Jan 13, 2025 11:48 pm    Post subject: Reply with quote

Hmmm ... the default value here is 32 ... why you have changed it to 4 ?
Code:
CONFIG_SND_MAX_CARDS=4

Usually the I801 is working only on Intel machines; MANY (but not all) AMD machines use PIIX4:
Code:
CONFIG_I2C_I801=y
# CONFIG_I2C_PIIX4 is not set

I suggest to boot with our GentoLiveCD and check with "lsmod" which module was loaded (because it could be also a special AMD driver; but you will see it in this output)( + notice all modules and check if all of them are enbled in your .config).

Do also this query:
Code:
# cpuid | grep x2APIC
      x2APIC: extended xAPIC support          = true

... and change it if you get the same "true" message:
Code:
# CONFIG_X86_X2APIC is not set

In every case I would enable these:
Code:
# CONFIG_SPI is not set
-> AMD SPI ... OR  ... special driver ... see in your "lsmod"-list
# CONFIG_I2C_HID_ACPI is not set

... check also if in your "lsmod"-list
Code:
# CONFIG_USB_XHCI_PCI_RENESAS is not set

... and maybe also these (check with "lsmod" AFTER you have connected AND used your headphone-USB adapter)
Code:
# CONFIG_USB_AUDIO is not set

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Tue Jan 14, 2025 2:21 pm    Post subject: Reply with quote

OK, I'll give it a shot. Here's the output of `cpuid | grep x2APIC`:
Code:
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
      x2APIC: extended xAPIC support          = false
   x2APIC features / processor topology (0xb):
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Tue Jan 14, 2025 4:06 pm    Post subject: Reply with quote

OK, here's how it went:
Headphones are now picked up by the OS when plugged in with USB (before it was just with the 3.5mm). I get several options: Analog Stereo Output, Digital Stereo Output (IEC958), and Digital Surround HiFi 5.1 (IEC958/AC3) Output. Analog sound good, Digital is basically the same as Analog, but where is HiFi 7.1? And why is it that when I set the headphones to use HiFi 5.1, and try to test it, my ears are violently raped?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5314
Location: Bavaria

PostPosted: Tue Jan 14, 2025 6:17 pm    Post subject: Reply with quote

I cannot answer your questions. What says "aplay -L" (and "aplay -l") and "alsactl info" ? Does "lsusb -v" tell us something? Something in your "dmesg"?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Tue Jan 14, 2025 7:57 pm    Post subject: Reply with quote

aplay -L.
aplay -l.
This is the USB DAC/sound card that came with the headphones: lsusb --verbose -s 001:007.
This is my motherboard's audio port: lsusb --verbose -s 005:006.
Here's some stuff I sifted out of `dmesg`:
Code:
leyvi ~ $ dmesg | grep -i error
[  517.314400] usb 5-2.2: device descriptor read/64, error -71
[  521.591467] usb 5-2.2: device descriptor read/all, error -71
[  523.893505] usb 5-2.2: device not accepting address 14, error -71
[14200.959886] usb 6-2: device not accepting address 2, error -62
[14212.224086] usb 6-2: device not accepting address 2, error -62
[14223.489268] usb 6-2: device not accepting address 2, error -62
[14234.753459] usb 6-2: device not accepting address 2, error -62
[14246.016649] usb 6-2: device not accepting address 4, error -62
[14257.281841] usb 6-2: device not accepting address 5, error -62
[14269.057041] usb 6-2: device not accepting address 6, error -62
[14280.322232] usb 6-2: device not accepting address 7, error -62
leyvi ~ $ dmesg | grep -i audio
[    1.563556] UDC core: g_audio: couldn't find an available UDC
[    1.579000] snd_hda_intel 0000:03:00.1: Handle vga_switcheroo audio client
[    1.579686] snd_hda_intel 0000:0f:00.1: Handle vga_switcheroo audio client
[    1.579929] usbcore: registered new interface driver snd-usb-audio
[    1.584974] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:0f:00.1/sound/card1/input4
[    1.586055] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:0f:00.1/sound/card1/input5
[    1.614187]   #1: HD-Audio Generic at 0xf6a80000 irq 107
[    2.484373] usb 5-2.2: SerialNumber: PC-LM1E Audio
[    3.755387] usb 1-6: Product: USB Audio
[    4.709967] usb 5-2.3.2: Product: Giga-Byte USB Audio
[    9.247053] hid-generic 0003:0B05:1A52.0004: hiddev97,hidraw3: USB HID v1.11 Device [Generic USB Audio] on usb-0000:0c:00.0-6/input7
[    9.488548] input: Generic Giga-Byte USB Audio Consumer Control as /devices/pci0000:00/0000:00:08.1/0000:0f:00.4/usb5/5-2/5-2.3/5-2.3.2/5-2.3.2:1.2/0003:0BDA:4CB9.0005/input/input12
[    9.539345] input: Generic Giga-Byte USB Audio as /devices/pci0000:00/0000:00:08.1/0000:0f:00.4/usb5/5-2/5-2.3/5-2.3.2/5-2.3.2:1.2/0003:0BDA:4CB9.0005/input/input13
[    9.539360] hid-generic 0003:0BDA:4CB9.0005: input,hiddev98,hidraw4: USB HID v1.11 Device [Generic Giga-Byte USB Audio] on usb-0000:0f:00.4-2.3.2/input2
[   10.144288] elogind-daemon[1835]: Watching system buttons on /dev/input/event12 (Generic Giga-Byte USB Audio Consumer Control)
[  520.941022] usb 5-2.2: SerialNumber: PC-LM1E Audio
[  524.248040] usb 5-2.2: SerialNumber: PC-LM1E Audio
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5314
Location: Bavaria

PostPosted: Tue Jan 14, 2025 10:24 pm    Post subject: Reply with quote

Hmmm ... looks good:
Code:
card 2: Headset [G432 Gaming Headset], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

surround71:CARD=Headset,DEV=0
    G432 Gaming Headset, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers

(alsamixer?)

... maybe you have many devices attached via USB ... what I recommend now is just a shot in the dark ... enable this: CONFIG_USB_DYNAMIC_MINORS
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Wed Jan 15, 2025 4:04 pm    Post subject: Reply with quote

Unfortunately, `CONFIG_USB_DYNAMIC_MINORS=y` did not do the trick. Here's the new config. Note that I made some other small changes that I thought might fix the problem. I wonder: is the problem that I'm missing support for a codec, in the kernel or elsewhere? The ear-rape that I get when I enable HiFi sounds exactly the same, no matter what I play. I wonder if those horrid sounds are actually a miss-interpreted codec?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5314
Location: Bavaria

PostPosted: Thu Jan 16, 2025 12:21 am    Post subject: Reply with quote

You have a monolithic kernel (like me) and I understand that very well. Unfortunately I don't know what to do. In such a case, the last thing to do is to investigate:

Boot with our GentoooLIVE-CD and check if this gaming headset is working properly. If not, we've lost anyway. If yes, then you can do the following:
1. chroot into your Gentoo system ( https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo#Pause_during_Installation )
2. go into /usr/src/linux-6.12.9-gentoo and
3. save your old .config (e.g. to /root)
4. make distclean
5. make localmodconfig (please NO localyesconfig) ->

You now have all necessary drivers as a module in this new config + everything that is STATICALLY activated in our Gentoo distribution kernel.

6. now check both:
6a. Do you have everything with =m ALSO in YOUR .config ? If yes, then that's done.
6b. Check whether everything that concerns USB and SND (and is static in this new config) is ALSO in YOUR old config.

Don't worry, you don't have to use this new config. When you have checked everything, you can do another “make distclean”, copy back your old .config (and apply it with “make oldconfig”).
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Thu Jan 16, 2025 12:59 pm    Post subject: Reply with quote

I found something else: if you look at the files I sent earlier, you'll see something about 'iec958'. I tried searching for a kernel option related to it, and found this: `CONFIG_SND_PCM_IEC958`. It seems to be disabled in my kernel. Maybe enabling it would help? Problem is, the option doesn't appear as a direct option; it seems to be an "implied" option, or something. Does anyone know how to enable it?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54706
Location: 56N 3W

PostPosted: Thu Jan 16, 2025 1:16 pm    Post subject: Reply with quote

leyvi,

Sound cards can do two broad sound standards.

1. Analogue, sampled an 44.1kHz as per CD Digital Audio.
2. Digital, sampled at 48kHz and higher.
Most sound cards cannot do both at the same time. There is a trap for the unwary here as making digital outputs active (Unmuted) disables analogue outputs.

Digital is used for HDMI audio outputs and the like.
In mixers, the controls are labelled IEC958 or S/PDIF, they mean the same thing.
Note that volume control in the digital domain is difficult, so controls are limited to a Mute switch.

The help on SND_PCM_IEC958 says
Code:
 Symbol: SND_PCM_IEC958 [=n]                                                                                                                │ 
  │ Type  : bool                                                                                                                               │ 
  │ Defined at sound/core/Kconfig:13                                                                                                           │ 
  │   Depends on: SOUND [=y] && SND [=m]                                                                                                       │ 
  │ Selected by [n]:                                                                                                                           │ 
  │   - DRM_DW_HDMI_AHB_AUDIO [=n] && HAS_IOMEM [=y] && DRM [=y] && DRM_BRIDGE [=y] && DRM_DW_HDMI [=n] && SND [=m]                            │ 
  │   - DRM_DW_HDMI_GP_AUDIO [=n] && HAS_IOMEM [=y] && DRM [=y] && DRM_BRIDGE [=y] && DRM_DW_HDMI [=n] && SND [=m]                             │ 
  │   - SND_MESON_AIU [=n] && SOUND [=y] && SND [=m] && SND_SOC [=n] && (ARCH_MESON || COMPILE_TEST [=n] && COMMON_CLK [=y])                   │ 
  │   - SND_MESON_AXG_SPDIFOUT [=n] && SOUND [=y] && SND [=m] && SND_SOC [=n] && (ARCH_MESON || COMPILE_TEST [=n] && COMMON_CLK [=y])          │ 
  │   - SND_SOC_STM32_SAI [=n] && SOUND [=y] && SND [=m] && (ARCH_STM32 && OF [=n] || COMPILE_TEST [=n]) && COMMON_CLK [=y] && SND_SOC [=n]    │ 
  │   - SND_SOC_HDMI_CODEC [=n] && SOUND [=y] && SND [=m] && SND_SOC [=n] 


It will be forced on if that huge boolean expression is true.

I don't think its what you want. Your headset should operate just with
Code:
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y
which you have.

Lets start at the beginning,
What does
Code:
cat /proc/asound/devices
tell?

The ear-rape you refer to could just be a wrong sample rate.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.


Last edited by NeddySeagoon on Thu Jan 16, 2025 1:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Thu Jan 16, 2025 1:19 pm    Post subject: Reply with quote

Short of booting a LiveCD (which I don't have time for today, I'd have to do it some other time, and I'd like this to work today if possible), what can I do to make this work? Trying to enable the previously mentioned kernel option would take all day...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54706
Location: 56N 3W

PostPosted: Thu Jan 16, 2025 1:24 pm    Post subject: Reply with quote

leyvi,

See my edit ^^^
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Thu Jan 16, 2025 2:41 pm    Post subject: Reply with quote

Here is is:
Code:
leyvi ~ $ cat /proc/asound/devices
  1:        : sequencer
  2: [ 1- 3]: digital audio playback
  3: [ 1- 7]: digital audio playback
  4: [ 1- 0]: hardware dependent
  5: [ 1]   : control
  6: [ 0- 3]: digital audio playback
  7: [ 0- 7]: digital audio playback
  8: [ 0- 8]: digital audio playback
  9: [ 0- 9]: digital audio playback
 10: [ 0- 0]: hardware dependent
 11: [ 0]   : control
 12: [ 2- 0]: digital audio capture
 13: [ 2]   : control
 14: [ 3- 0]: digital audio playback
 15: [ 3- 0]: digital audio capture
 16: [ 3- 1]: digital audio playback
 17: [ 3- 1]: digital audio capture
 18: [ 3- 2]: digital audio playback
 19: [ 3- 2]: digital audio capture
 20: [ 3- 3]: digital audio playback
 21: [ 3]   : control
 22: [ 4- 0]: digital audio capture
 23: [ 4]   : control
 24: [ 5- 0]: digital audio playback
 25: [ 5- 0]: digital audio capture
 26: [ 5]   : control
 33:        : timer
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5314
Location: Bavaria

PostPosted: Thu Jan 16, 2025 2:46 pm    Post subject: Reply with quote

What happens if you give CONFIG_SND_MAX_CARDS a higher value than 32 (e.g. 64) ?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Thu Jan 16, 2025 2:55 pm    Post subject: Reply with quote

One second, let me give that a shot...
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 122

PostPosted: Thu Jan 16, 2025 4:15 pm    Post subject: Reply with quote

Unfortunately, it had no effect. My ears still got raped when I tried to use HiFi. Here's something else I found: when I plug the headphones in with the USB adapter that came with it, and try to use HiFi, my ears get raped, but when I plug it in to the sound card built-in to my motherboard and enable HiFi 7.1, Front-Right and Front-Left work fine, and everything else is silent. Very strange, since these headphones are advertised to support HiFi 7.1...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum