You are not logged in.

#1 2020-01-08 06:59:21

RamenDevourer
Member
Registered: 2019-04-25
Posts: 4
Website

Brave browser (chromium based) not using 4.0 audio on X1 Carbon Gen 7

I followed the guide in this arch wiki article
to setup audio. The audio works beautifully while playing music with spotifyd but when I launch
a video on youtube using the brave browser,  only the top tweeters work... Sound does work correctly in firefox though.

How should I go about fixing this?

I don't know what system logs or commands could help advance this issue.
Feel free to give me commands to run so we may gain more information about
this issue.

Offline

#2 2020-01-08 08:15:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,404

Re: Brave browser (chromium based) not using 4.0 audio on X1 Carbon Gen 7

Post

sudo fuser -v /dev/snd/*
pacmd list-sinks
pacmd list-sink-inputs

and maybe terminal output of Brave during this situation, use [ code ] [ /code ] tags without the spaces for doing so

Last edited by V1del (2020-01-08 08:16:47)

Offline

#3 2020-01-08 15:33:07

RamenDevourer
Member
Registered: 2019-04-25
Posts: 4
Website

Re: Brave browser (chromium based) not using 4.0 audio on X1 Carbon Gen 7

Here is the output for those commands

 # fuser -v /dev/snd/*            
                     USER        PID ACCESS COMMAND 
/dev/snd/controlC0:  master      949 F.... pulseaudio 
 $ pacmd list-sinks                                                 
1 sink(s) available. 
  * index: 0 
        name: <alsa_output.pci-0000_00_1f.3.analog-surround-40> 
        driver: <module-alsa-card.c> 
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL LATENCY DYNAMIC_LATENCY 
        state: SUSPENDED 
        suspend cause: IDLE 
        priority: 9039 
        volume: front-left: 26204 /  40%,   front-right: 26204 /  40%,   rear-left: 26204 /  40%,   rear-right: 26204 /  40% 
                balance 0.00 
        base volume: 65536 / 100% 
        volume steps: 256 
        muted: no 
        current latency: 0.00 ms 
        max request: 0 KiB 
        max rewind: 0 KiB 
        monitor source: 0 
        sample spec: s16le 4ch 48000Hz 
        channel map: front-left,front-right,rear-left,rear-right 
                     Surround 4.0 
        used by: 0 
        linked by: 1 
        configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms 
        card: 0 <alsa_card.pci-0000_00_1f.3> 
        module: 6 
        properties: 
                alsa.resolution_bits = "16" 
                device.api = "alsa" 
                device.class = "sound" 
                alsa.class = "generic" 
                alsa.subclass = "generic-mix" 
                alsa.name = "ALC285 Analog" 
                alsa.id = "ALC285 Analog" 
                alsa.subdevice = "0" 
                alsa.subdevice_name = "subdevice #0" 
                alsa.device = "0" 
                alsa.card = "0" 
                alsa.card_name = "HDA Intel PCH" 
                alsa.long_card_name = "HDA Intel PCH at 0xea23c000 irq 155" 
                alsa.driver_name = "snd_hda_intel" 
                device.bus_path = "pci-0000:00:1f.3" 
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0" 
                device.bus = "pci" 
                device.vendor.id = "8086" 
                device.vendor.name = "Intel Corporation" 
                device.product.id = "02c8" 
                device.form_factor = "internal" 
                device.string = "surround40:0" 
                device.buffering.buffer_size = "768000" 
                device.buffering.fragment_size = "384000" 
                device.access_mode = "mmap+timer" 
                device.profile.name = "analog-surround-40" 
                device.profile.description = "Analog Surround 4.0" 
                device.description = "Built-in Audio Analog Surround 4.0" 
                alsa.mixer_name = "Realtek ALC285" 
                alsa.components = "HDA:10ec0285,17aa2293,00100002 HDA:8086280b,80860101,00100000" 
                module-udev-detect.discovered = "1" 
                device.icon_name = "audio-card-pci" 
        ports: 
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown) 
                        properties: 
                                device.icon_name = "audio-speakers" 
        active port: <analog-output-speaker> 
 $ pacmd list-sink-inputs                                   
1 sink input(s) available. 
    index: 5 
        driver: <protocol-native.c> 
        flags: START_CORKED 
        state: CORKED 
        sink: 0 <alsa_output.pci-0000_00_1f.3.analog-surround-40> 
        volume: front-left: 52016 /  79% / -6.02 dB,   front-right: 52016 /  79% / -6.02 dB 
                balance 0.00 
        muted: no 
        current latency: 167.79 ms 
        requested latency: 75.00 ms 
        sample spec: float32le 2ch 48000Hz 
        channel map: front-left,front-right 
                     Stereo 
        resample method: copy 
        module: 8 
        client: 15 <Firefox> 
        properties: 
                media.name = "AudioStream" 
                application.name = "Firefox" 
                native-protocol.peer = "UNIX socket client" 
                native-protocol.version = "33" 
                application.process.id = "135286" 
                application.process.user = "master" 
                application.process.host = "workbook" 
                application.process.binary = "firefox" 
                application.language = "en_CA.UTF-8" 
                window.x11.display = ":0" 
                application.process.machine_id = "aa527f0b1ea743e6895d64e21c5cc6b6" 
                application.process.session_id = "2" 
                application.icon_name = "firefox" 
                module-stream-restore.id = "sink-input-by-application-name:Firefox" 

And here is the output which I am given when I start brave
(the commmand prompt closes before I can launch a video and there are no manual entries to see if there is a flag that let's me do this):

 $ brave 
Opening in existing browser session. 
[203827:203827:0108/102338.238674:ERROR:vaapi_wrapper.cc(417)] vaInitialize failed: unknown libva error 
[203827:203827:0108/102338.281979:ERROR:sandbox_linux.cc(372)] InitializeSandbox() called with multiple threads in process gpu-process. 
/usr/bin/brave: line 27: 203799 Segmentation fault      (core dumped) /usr/lib/brave-bin/brave "$@" $SANDBOX_FLAG $PEPPER_FLASH_FLAG $USER_FLAGS 

Just for luck, here is the link given to me by "sudo hw-probe -all -upload":
https://linux-hardware.org/?probe=983eac4263

Offline

#4 2020-01-08 16:00:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,404

Re: Brave browser (chromium based) not using 4.0 audio on X1 Carbon Gen 7

You seem to not be playing anything back form brave here? Post these during active playback.

Offline

#5 2020-01-08 16:08:42

RamenDevourer
Member
Registered: 2019-04-25
Posts: 4
Website

Re: Brave browser (chromium based) not using 4.0 audio on X1 Carbon Gen 7

Oops. My bad...

Here are those commands with brave playing audio:

 $ sudo fuser -v /dev/snd/* 
                     USER        PID ACCESS COMMAND 
/dev/snd/controlC0:  master      949 F.... pulseaudio 
/dev/snd/pcmC0D0p:   master      949 F...m pulseaudio 
 $ pacmd list-sinks 
1 sink(s) available. 
  * index: 0 
        name: <alsa_output.pci-0000_00_1f.3.analog-surr 
        driver: <module-alsa-card.c> 
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL LAT 
        state: RUNNING 
        suspend cause: (none) 
        priority: 9039 
        volume: front-left: 104813 / 160%,   front-righ 
 104813 / 160%,   rear-right: 104813 / 160% 
                balance 0.00 
        base volume: 65536 / 100% 
        volume steps: 256 
        muted: no 
        current latency: 21.62 ms 
        max request: 8 KiB 
        max rewind: 8 KiB 
        monitor source: 0 
        sample spec: s16le 4ch 48000Hz 
        channel map: front-left,front-right,rear-left,r 
                     Surround 4.0 
        used by: 1 
        linked by: 1 
        configured latency: 23.22 ms; range is 0.50 .. 
        card: 0 <alsa_card.pci-0000_00_1f.3> 
        module: 6 
        properties: 
                alsa.resolution_bits = "16" 
                device.api = "alsa" 
                device.class = "sound" 
                alsa.class = "generic" 
                alsa.subclass = "generic-mix" 
                alsa.name = "ALC285 Analog" 
                alsa.id = "ALC285 Analog" 
                alsa.subdevice = "0" 
                alsa.subdevice_name = "subdevice #0" 
                alsa.device = "0" 
                alsa.card = "0" 
                alsa.card_name = "HDA Intel PCH" 
                alsa.long_card_name = "HDA Intel PCH at 
                alsa.driver_name = "snd_hda_intel" 
                device.bus_path = "pci-0000:00:1f.3" 
                sysfs.path = "/devices/pci0000:00/0000: 
                device.bus = "pci" 
                device.vendor.id = "8086" 
                device.vendor.name = "Intel Corporation 
                device.product.id = "02c8" 
                device.form_factor = "internal" 
                device.string = "surround40:0" 
                device.buffering.buffer_size = "768000" 
                device.buffering.fragment_size = "38400 
                device.access_mode = "mmap+timer" 
                device.profile.name = "analog-surround- 
                device.profile.description = "Analog Su 
                device.description = "Built-in Audio An 
                alsa.mixer_name = "Realtek ALC285" 
                alsa.components = "HDA:10ec0285,17aa229 
01,00100000" 
                module-udev-detect.discovered = "1" 
                device.icon_name = "audio-card-pci" 
        ports: 
                analog-output-speaker: Speakers (priori 
c, available: unknown) 
                        properties: 
                                device.icon_name = "aud 
        active port: <analog-output-speaker> 
 $ pacmd list-sink-inputs 
1 sink input(s) available. 
    index: 10 
        driver: <protocol-native.c> 
        flags: START_CORKED 
        state: RUNNING 
        sink: 0 <alsa_output.pci-0000_00_1f.3.analog-su 
        volume: front-left: 85197 / 130% / 6.84 dB,   f 
4 dB,   rear-left: 85197 / 130% / 6.84 dB,   rear-right 
                balance 0.00 
        muted: no 
        current latency: 39.14 ms 
        requested latency: 23.22 ms 
        sample spec: float32le 4ch 44100Hz 
        channel map: front-left,front-right,rear-left,r 
                     Surround 4.0 
        resample method: speex-float-1 
        module: 8 
        client: 130 <Brave> 
        properties: 
                application.icon_name = "chromium-brows 
                media.name = "Playback" 
                application.name = "Brave" 
                native-protocol.peer = "UNIX socket cli 
                native-protocol.version = "33" 
                application.process.id = "379294" 
                application.process.user = "master" 
                application.process.host = "workbook" 
                application.process.binary = "brave" 
                application.language = "en_CA.UTF-8" 
                window.x11.display = ":0" 
                application.process.machine_id = "aa527 
                application.process.session_id = "2" 
                module-stream-restore.id = "sink-input- 

Here is spotifyd playing audio correctly (for a baseline):

 # fuser -v /dev/snd/* 
                     USER        PID ACCESS COMMAND 
/dev/snd/controlC0:  master      949 F.... pulseaudio 
/dev/snd/pcmC0D0p:   master      949 F...m pulseaudio 
 $ pacmd list-sinks 
1 sink(s) available. 
  * index: 0 
        name: <alsa_output.pci-0000_00_1f.3.analog-surround-40> 
        driver: <module-alsa-card.c> 
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL LATENCY DYNAMIC_LATENCY 
        state: RUNNING 
        suspend cause: (none) 
        priority: 9039 
        volume: front-left: 42550 /  65%,   front-right: 42550 /  65%,   rear-left: 4
                balance 0.00 
        base volume: 65536 / 100% 
        volume steps: 256 
        muted: no 
        current latency: 5.09 ms 
        max request: 1 KiB 
        max rewind: 1 KiB 
        monitor source: 0 
        sample spec: s16le 4ch 48000Hz 
        channel map: front-left,front-right,rear-left,rear-right 
                     Surround 4.0 
        used by: 1 
        linked by: 1 
        configured latency: 4.99 ms; range is 0.50 .. 2000.00 ms 
        card: 0 <alsa_card.pci-0000_00_1f.3> 
        module: 6 
        properties: 
                alsa.resolution_bits = "16" 
                device.api = "alsa" 
                device.class = "sound" 
                alsa.class = "generic" 
                alsa.subclass = "generic-mix" 
                alsa.name = "ALC285 Analog" 
                alsa.id = "ALC285 Analog" 
                alsa.subdevice = "0" 
                alsa.subdevice_name = "subdevice #0" 
                alsa.device = "0" 
                alsa.card = "0" 
                alsa.card_name = "HDA Intel PCH" 
                alsa.long_card_name = "HDA Intel PCH at 0xea23c000 irq 155" 
                alsa.driver_name = "snd_hda_intel" 
                device.bus_path = "pci-0000:00:1f.3" 
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0" 
                device.bus = "pci" 
                device.vendor.id = "8086" 
                device.vendor.name = "Intel Corporation" 
                device.product.id = "02c8" 
                device.form_factor = "internal" 
                device.string = "surround40:0" 
                device.buffering.buffer_size = "768000" 
                device.buffering.fragment_size = "384000" 
                device.access_mode = "mmap+timer" 
                device.profile.name = "analog-surround-40" 
                device.profile.description = "Analog Surround 4.0" 
                device.description = "Built-in Audio Analog Surround 4.0" 
                alsa.mixer_name = "Realtek ALC285" 
                alsa.components = "HDA:10ec0285,17aa2293,00100002 HDA:8086280b,808601
                module-udev-detect.discovered = "1" 
                device.icon_name = "audio-card-pci" 
        ports: 
                analog-output-speaker: Speakers (priority 10000, latency offset 0 use
                        properties: 
                                device.icon_name = "audio-speakers" 
        active port: <analog-output-speaker> 
 $ pacmd list-sink-inputs 
1 sink input(s) available. 
    index: 11 
        driver: <protocol-native.c> 
        flags: 
        state: RUNNING 
        sink: 0 <alsa_output.pci-0000_00_1f.3.analog-surround-40> 
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.0
                balance 0.00 
        muted: no 
        current latency: 494.51 ms 
        requested latency: 4.99 ms 
        sample spec: s16le 2ch 44100Hz 
        channel map: front-left,front-right 
                     Stereo 
        resample method: speex-float-1 
        module: 8 
        client: 277 <ALSA plug-in [spotifyd]> 
        properties: 
                media.name = "ALSA Playback" 
                application.name = "ALSA plug-in [spotifyd]" 
                native-protocol.peer = "UNIX socket client" 
                native-protocol.version = "33" 
                application.process.id = "418715" 
                application.process.user = "master" 
                application.process.host = "workbook" 
                application.process.binary = "spotifyd" 
                application.language = "C" 
                window.x11.display = ":0" 
                application.process.machine_id = "aa527f0b1ea743e6895d64e21c5cc6b6" 
                application.process.session_id = "2" 
                module-stream-restore.id = "sink-input-by-application-name:ALSA plug-

Edit: added a sound log in a working situation as a baseline.

Last edited by RamenDevourer (2020-01-08 16:16:59)

Offline

#6 2020-01-08 16:38:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,404

Re: Brave browser (chromium based) not using 4.0 audio on X1 Carbon Gen 7

From a sound chain perspective everything works correctly. What does surprise me here is that brave itself is giving you a 4.0 output stream (are you actually listening to a 4.0 video/music/what have you) or should this actually be stereo (compare the outputs for that same source from firefox and brave, my hypothesis here is that firefox will show you 2 channels) if that is the case, brave tries to be "helpful" by exposing the full channel count it received from the intended sink, and then only filling the stereo channels. Pulse will in turn, as it has received a valid "complete" channel map not do any upmixing to the surround setup you want, leaving your other speakers silent.

Ergo reads like a bug in brave ...(or maybe a feature, that might even be optional, rummage through your settings whether you can adjust something here), not sure where these should be reported.

Last edited by V1del (2020-01-08 16:40:05)

Offline

Board footer

Powered by FluxBB