Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #269109 > unrolled thread

speaker-test: no correct sound output on LFE and others speakers

Started byFranco Martelli <martellif67@gmail.com>
First post2024-04-29 21:40 +0200
Last post2024-05-17 16:20 +0200
Articles 7 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  speaker-test: no correct sound output on LFE and others speakers Franco Martelli <martellif67@gmail.com> - 2024-04-29 21:40 +0200
    Re: speaker-test: no correct sound output on LFE and others speakers Alexandre Rossi <niol@zincube.net> - 2024-04-30 14:10 +0200
      Re: speaker-test: no correct sound output on LFE and others speakers Franco Martelli <martellif67@gmail.com> - 2024-05-01 15:30 +0200
        Re: speaker-test: no correct sound output on LFE and others speakers Alexandre Rossi <niol@zincube.net> - 2024-05-02 09:20 +0200
          Re: speaker-test: no correct sound output on LFE and others speakers Franco Martelli <martellif67@gmail.com> - 2024-05-06 17:40 +0200
            Re: speaker-test: no correct sound output on LFE and others speakers Alexandre Rossi <niol@zincube.net> - 2024-05-07 12:00 +0200
      [SOLVED] Re: speaker-test: no correct sound output on LFE and others  speakers Franco Martelli <martellif67@gmail.com> - 2024-05-17 16:20 +0200

#269109 — speaker-test: no correct sound output on LFE and others speakers

FromFranco Martelli <martellif67@gmail.com>
Date2024-04-29 21:40 +0200
Subjectspeaker-test: no correct sound output on LFE and others speakers
Message-ID<IyF0Z-9SVb-5@gated-at.bofh.it>
Hi everyone,

Basically I've the same issue described here:
https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers

The speaker-test program is provided by the alsa-utils package. I'm 
using Debian 12 Bookworm, I've no ~/.asoundrc file. My 
/proc/asound/cards returns:

~$ cat /proc/asound/cards
  0 [SB             ]: HDA-Intel - HDA ATI SB
                       HDA ATI SB at 0xfe400000 irq 16
  1 [NVidia         ]: HDA-Intel - HDA NVidia
                       HDA NVidia at 0xfe080000 irq 57

I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3 
jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).

Clementine ¹  audio player seems it works well, but I'm unsure that the 
sound go to the correct speaker.

The issue is that speaker-test doesn't play sound to the correct 
speaker. If I run:

~$ speaker-test -Dplug:surround51 -c6 -s3 -f75

speaker-test 1.2.8

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
   - Front Right

The sound comes from (Center), (Front right), (Rear left) and (Rear 
right) speakers instead (Front right) only. If I run:

~$ speaker-test -Dplug:surround51 -c6 -s6 -f75

speaker-test 1.2.8

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
   - LFE

I've no sound from the Subwoofer. Does anybody know how can I test the 
speakers of my 3D Dolby surround system? Please help.


¹ https://packages.debian.org/bookworm/clementine
-- 
Franco Martelli

[toc] | [next] | [standalone]


#269110

FromAlexandre Rossi <niol@zincube.net>
Date2024-04-30 14:10 +0200
Message-ID<IyUt3-a2Un-5@gated-at.bofh.it>
In reply to#269109
Hi,

> Basically I've the same issue described here:
> https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers
> 
> The speaker-test program is provided by the alsa-utils package. I'm using
> Debian 12 Bookworm, I've no ~/.asoundrc file. My /proc/asound/cards returns:
> 
> ~$ cat /proc/asound/cards
>  0 [SB             ]: HDA-Intel - HDA ATI SB
>                       HDA ATI SB at 0xfe400000 irq 16
>  1 [NVidia         ]: HDA-Intel - HDA NVidia
>                       HDA NVidia at 0xfe080000 irq 57
> 
> I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3
> jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).

I assume your cabling is right and your SB soundcard has surround out
(3 jacks as you describe it, and not mic and line out for instance). The labels
on the jacks would confirm that, so would the user manual of your motherboard or
sound card.

> The issue is that speaker-test doesn't play sound to the correct speaker. If
> I run:
> 
> ~$ speaker-test -Dplug:surround51 -c6 -s3 -f75
> 
> The sound comes from (Center), (Front right), (Rear left) and (Rear right)
> speakers instead (Front right) only.

What's bothering me is that you get sound from multiple speakers while
instructing out on only one.

The usual issues of these setups with surround analog out are:
- channel mapping issues (driver/hardware mismatch)
- software downmixing to stereo

There are other usual issues with surrount digital out but this is not
your setup.

You can have a look at [1] for software fixes on this.

[1] https://alsa.opensrc.org/SurroundSound

Thanks,

Alex

[toc] | [prev] | [next] | [standalone]


#269125

FromFranco Martelli <martellif67@gmail.com>
Date2024-05-01 15:30 +0200
Message-ID<Izic2-ahyF-5@gated-at.bofh.it>
In reply to#269110
Hi Alexandre,

On 30/04/24 at 14:07, Alexandre Rossi wrote:
> Hi,
> 
>> Basically I've the same issue described here:
>> https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers
>>
>> The speaker-test program is provided by the alsa-utils package. I'm using
>> Debian 12 Bookworm, I've no ~/.asoundrc file. My /proc/asound/cards returns:
>>
>> ~$ cat /proc/asound/cards
>>   0 [SB             ]: HDA-Intel - HDA ATI SB
>>                        HDA ATI SB at 0xfe400000 irq 16
>>   1 [NVidia         ]: HDA-Intel - HDA NVidia
>>                        HDA NVidia at 0xfe080000 irq 57
>>
>> I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3
>> jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).
> 
> I assume your cabling is right and your SB soundcard has surround out
> (3 jacks as you describe it, and not mic and line out for instance). The labels
> on the jacks would confirm that, so would the user manual of your motherboard or
> sound card.

The MoBo is an old ASUSTeK Computer Inc. M5A99X EVO (R1.0) and it has 
three jacks of different colors to connect to the Logitech Z906 case, 
there aren't labels, only colored jacks: Orange, Black and Lime there is 
also a Gray jack for "Side speakers" so the hardware support up to 
Surround 7.1 in addition it also have an optical S/PDIF out port unused.
The audio device is:

~# lspci -nnv -s 00:14.2
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] 
SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
         Subsystem: ASUSTeK Computer Inc. SBx00 Azalia (Intel HDA) 
[1043:84fb]
         Flags: bus master, slow devsel, latency 32, IRQ 16, NUMA node 
0, IOMMU group 10
         Memory at fe400000 (64-bit, non-prefetchable) [size=16K]
         Capabilities: [50] Power Management version 2
         Kernel driver in use: snd_hda_intel
         Kernel modules: snd_hda_intel


> 
>> The issue is that speaker-test doesn't play sound to the correct speaker. If
>> I run:
>>
>> ~$ speaker-test -Dplug:surround51 -c6 -s3 -f75
>>
>> The sound comes from (Center), (Front right), (Rear left) and (Rear right)
>> speakers instead (Front right) only.
> 
> What's bothering me is that you get sound from multiple speakers while
> instructing out on only one.
> 
> The usual issues of these setups with surround analog out are:
> - channel mapping issues (driver/hardware mismatch)
> - software downmixing to stereo
> 
> There are other usual issues with surrount digital out but this is not
> your setup.
> 
> You can have a look at [1] for software fixes on this.
> 
> [1] https://alsa.opensrc.org/SurroundSound

The link you posted it shows rather outdated fixes, it talked about 
Jackd daemon and surround, but I have pulseaudio daemon, maybe I've 
pulseaudio daemon misconfiguration, I tried what suggested here:

https://askubuntu.com/a/1304054

but unluckily  it doesn't work, this is what's enabled in 
/etc/pulse/daemon.conf:

~$ grep -v "^#\|^;\|^[[:space:]]*$" /etc/pulse/daemon.conf
remixing-produce-lfe = yes
remixing-consume-lfe = yes
lfe-crossover-freq = 80

and this is what's in the log after a reboot:

~# journalctl -b | grep pulseaudio
mag 01 14:57:28 itek systemd[1254]: Listening on pulseaudio.socket - 
Sound System.
mag 01 14:57:28 itek systemd[1254]: Starting pulseaudio.service - Sound 
Service...
mag 01 14:57:32 itek systemd[1254]: Started pulseaudio.service - Sound 
Service.
mag 01 14:57:48 itek pulseaudio[1273]: Hole in stream, cannot fast 
forward LFE filter
mag 01 14:57:48 itek pulseaudio[1273]: Hole in stream, cannot fast 
forward LFE filter
mag 01 14:57:54 itek plasmashell[1390]: org.kde.plasma.pulseaudio: No 
object for name "alsa_output.pci-0000_00_14.2.analog-surround-51.monitor"

any clue? Thank you very much

-- 
Franco Martelli

[toc] | [prev] | [next] | [standalone]


#269147

FromAlexandre Rossi <niol@zincube.net>
Date2024-05-02 09:20 +0200
Message-ID<IzyTv-aump-9@gated-at.bofh.it>
In reply to#269125
Hi,

> > > The issue is that speaker-test doesn't play sound to the correct speaker. If
> > > I run:
> > > 
> > > ~$ speaker-test -Dplug:surround51 -c6 -s3 -f75
> > > 
> > > The sound comes from (Center), (Front right), (Rear left) and (Rear right)
> > > speakers instead (Front right) only.
> > 
> > What's bothering me is that you get sound from multiple speakers while
> > instructing out on only one.
> > 
> > The usual issues of these setups with surround analog out are:
> > - channel mapping issues (driver/hardware mismatch)
> > - software downmixing to stereo
> > 
> > There are other usual issues with surrount digital out but this is not
> > your setup.
> > 
> > You can have a look at [1] for software fixes on this.
> > 
> > [1] https://alsa.opensrc.org/SurroundSound
> 
> The link you posted it shows rather outdated fixes, it talked about Jackd
> daemon and surround, but I have pulseaudio daemon, maybe I've pulseaudio
> daemon misconfiguration

My understanding is that pulseaudio uses alsa for kernel interface and
that speaker-test uses alsa directly. So if one cannot get speaker-test
to sound right, it cannot work with pulseaudio. That why I suggest workarounds
in alsa conf (asoundrc).

Alex

[toc] | [prev] | [next] | [standalone]


#269211

FromFranco Martelli <martellif67@gmail.com>
Date2024-05-06 17:40 +0200
Message-ID<IB8BA-bvLw-9@gated-at.bofh.it>
In reply to#269147
On 02/05/24 at 09:10, Alexandre Rossi wrote:
>>> What's bothering me is that you get sound from multiple speakers while
>>> instructing out on only one.
>>>
>>> The usual issues of these setups with surround analog out are:
>>> - channel mapping issues (driver/hardware mismatch)
>>> - software downmixing to stereo
>>>
>>> There are other usual issues with surrount digital out but this is not
>>> your setup.
>>>
>>> You can have a look at [1] for software fixes on this.
>>>
>>> [1]https://alsa.opensrc.org/SurroundSound
>> The link you posted it shows rather outdated fixes, it talked about Jackd
>> daemon and surround, but I have pulseaudio daemon, maybe I've pulseaudio
>> daemon misconfiguration
> My understanding is that pulseaudio uses alsa for kernel interface and
> that speaker-test uses alsa directly. So if one cannot get speaker-test
> to sound right, it cannot work with pulseaudio. That why I suggest workarounds
> in alsa conf (asoundrc).

I tried several configurations of ~/.asoundrc in these days but nothing 
works with "speaker-test". Well some configurations let "aplay" to use 
rear-left, rear-right, front-center speakers but "speaker-test" never 
sends sound to front-center, rear-left, rear-right and LFE with this 
command:

~$ LC_ALL=C speaker-test -c 6 -D surround51 -t wav

speaker-test 1.2.8

Playback device is surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
  0 - Front Left
  4 - Front Center
  1 - Front Right
  3 - Rear Right
  2 - Rear Left
  5 - LFE
Time per period = 21.908826
  0 - Front Left
^C 4 - Front Center
Transfer failed: Bad address

In place of "surround51" I've set the pcm.XXXXX  specified in 
~/.asoundrc trying so several configurations.
Just now, checking the ALSA configuration in /etc/alsa/conf.d/ I found 
the 99-pulse.conf file:

~# cat /etc/alsa/conf.d/99-pulse.conf
# PulseAudio alsa plugin configuration file to set the pulseaudio plugin as
# default output for applications using alsa when pulseaudio is running.
hook_func.pulse_load_if_running {
         lib "libasound_module_conf_pulse.so"
         func "conf_pulse_hook_load_if_running"
}

@hooks [
         {
                 func pulse_load_if_running
                 files [
                         "/usr/share/alsa/pulse-alsa.conf"
                 ]
                 errors false
         }
]

Does Debian use Pulseaudio daemon as default output for ALSA 
applications? Could it be a Pulseaudio misconfiguration? Should I try to 
uninstall it or how can I stop Pulseaudio? If I do "killall pulseaudio" 
it re-spawns immediately and "systemctl" doesn't work:

~# systemctl stop pulseaudio
Failed to stop pulseaudio.service: Unit pulseaudio.service not loaded.

Any help it's very appreciated, thanks in advance.
-- 
Franco Martelli

[toc] | [prev] | [next] | [standalone]


#269221

FromAlexandre Rossi <niol@zincube.net>
Date2024-05-07 12:00 +0200
Message-ID<IBpM5-bGdK-5@gated-at.bofh.it>
In reply to#269211
Hi,

> > My understanding is that pulseaudio uses alsa for kernel interface and
> > that speaker-test uses alsa directly. So if one cannot get speaker-test
> > to sound right, it cannot work with pulseaudio. That why I suggest workarounds
> > in alsa conf (asoundrc).
> 
> I tried several configurations of ~/.asoundrc in these days but nothing
> works with "speaker-test". Well some configurations let "aplay" to use
> rear-left, rear-right, front-center speakers but "speaker-test" never sends
> sound to front-center, rear-left, rear-right and LFE with this command:
> [...]
> Just now, checking the ALSA configuration in /etc/alsa/conf.d/ I found the
> 99-pulse.conf file:
> 
> ~# cat /etc/alsa/conf.d/99-pulse.conf
> # PulseAudio alsa plugin configuration file to set the pulseaudio plugin as
> # default output for applications using alsa when pulseaudio is running.
> [...]
> 
> Does Debian use Pulseaudio daemon as default output for ALSA applications?
> Could it be a Pulseaudio misconfiguration? Should I try to uninstall it or
> how can I stop Pulseaudio? If I do "killall pulseaudio" it re-spawns
> immediately and "systemctl" doesn't work:

My hypothesis: speaker-test outputs directly to ALSA (kernel) but ALSA redirects
to pulseaudio (the 99-pulse.conf file) and pulseaudio Output profile is stereo.
Therefore, pulseaudio downmixes 5.1 to stereo. That would explain why only
front-left and front-right output sound.

To confirm, you can either:
- move away that 99-pulse.conf file so that speaker-test use directly and only
  ALSA
- configure pulseaudio output profile for surround5.1 (you can use command line
  $ pacmd set-card-profile 0 output:output:analog-surround-51 or
  pavucontrol (graphical)

> ~# systemctl stop pulseaudio
> Failed to stop pulseaudio.service: Unit pulseaudio.service not loaded.

pulseaudio is usually a *user* service and socket activated (starts automatically
if some app wants to use it). To stop it, the following should work:
$ systemctl --user stop pulseaudio.socket  # stop the socket to prevent auto start
$ systemctl --user stop pulseaudio.service # stop the daemon

Cheers,

Alex

[toc] | [prev] | [next] | [standalone]


#269428 — [SOLVED] Re: speaker-test: no correct sound output on LFE and others speakers

FromFranco Martelli <martellif67@gmail.com>
Date2024-05-17 16:20 +0200
Subject[SOLVED] Re: speaker-test: no correct sound output on LFE and others speakers
Message-ID<IF6Bb-dYw3-7@gated-at.bofh.it>
In reply to#269110
On 30/04/24 at 14:07, Alexandre Rossi wrote:
> Hi,
> 
>> Basically I've the same issue described here:
>> https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers
>>
>> The speaker-test program is provided by the alsa-utils package. I'm using
>> Debian 12 Bookworm, I've no ~/.asoundrc file. My /proc/asound/cards returns:
>>
>> ~$ cat /proc/asound/cards
>>   0 [SB             ]: HDA-Intel - HDA ATI SB
>>                        HDA ATI SB at 0xfe400000 irq 16
>>   1 [NVidia         ]: HDA-Intel - HDA NVidia
>>                        HDA NVidia at 0xfe080000 irq 57
>>
>> I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3
>> jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).
> 
> I assume your cabling is right and your SB soundcard has surround out
> (3 jacks as you describe it, and not mic and line out for instance). The labels
> on the jacks would confirm that, so would the user manual of your motherboard or
> sound card.
> 
>> The issue is that speaker-test doesn't play sound to the correct speaker. If
>> I run:
>>
>> ~$ speaker-test -Dplug:surround51 -c6 -s3 -f75
>>
>> The sound comes from (Center), (Front right), (Rear left) and (Rear right)
>> speakers instead (Front right) only.
> 
> What's bothering me is that you get sound from multiple speakers while
> instructing out on only one.
> 
> The usual issues of these setups with surround analog out are:
> - channel mapping issues (driver/hardware mismatch)
> - software downmixing to stereo
> 
> There are other usual issues with surrount digital out but this is not
> your setup.
> 
> You can have a look at [1] for software fixes on this.
> 
> [1] https://alsa.opensrc.org/SurroundSound

I solved by buying a Toslink (S/PDIF) optical cable, and using thus the 
"Surround 5.1 Digital output" and unplugging the three jacks analog 
cable. Now speaker-test works nicely:

~$ speaker-test -c6 -l1 -twav

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 349525
Period size range from 10 to 116509
Using max buffer size 349524
Periods = 4
was set period_size = 87381
was set buffer_size = 349524
  0 - Front Left
  4 - Center
  1 - Front Right
  3 - Rear Right
  2 - Rear Left
  5 - LFE
Time per period = 8,720806

maybe it was a hardware issue with the DAC of my Logitech Z906, it seems 
that with the three jacks analog cable it downmix to stereo, thanks anyway.

Cheers,
-- 
Franco Martelli

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web