You are not logged in.

#1 2017-08-15 08:24:23

(E)ivil
Member
Registered: 2017-05-07
Posts: 3

Alsa tool on arch: Echo-cenalletion dosen't work

So, let's start from the begining... I want to use my microphone in some application like skype/discord, but i i've noticed, that audio from my device doing annoying noise... So i decide to find something to solve this problem. Okay... Arch-wiki.. Alsa Troubleshooting... Great!

There's first problem - after save default.pa and resart pulseaudio, sound in Arch is muted and can't find any of sound deveices (like speakers) i have.

Second

[some@some ~] arecord -f cd -d 10 test-mic.wav
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
arecord: main:807: audio open error: No such file or directory

Offline

#2 2017-08-15 08:59:47

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

Re: Alsa tool on arch: Echo-cenalletion dosen't work

What exactly did you change? Post the files you adjusted. You likely loaded pulse's echo cancel module incorrectly. What are the outputs of

sudo fuser -v /dev/snd/*
pulseaudio -vvv
#If pulse is running
pacmd list-sources
pacmd list-source-outputs

while recording.

Edit: It should be source-outputs sorry

Last edited by V1del (2017-08-15 09:28:39)

Offline

#3 2017-08-15 09:21:25

(E)ivil
Member
Registered: 2017-05-07
Posts: 3

Re: Alsa tool on arch: Echo-cenalletion dosen't work

w8...

There is another problem:
after paste this to default.pa

### Enable Echo/Noise-Cancelation
load-module module-echo-cancel use_master_format=1 aec_method=webrtc aec_args="analog_gain_control=0 digital_gain_control=1" source_name=echoCancel_source sink_name=echoCancel_sink
set-default-source echoCancel_source
set-default-sink echoCancel_sink

pulseaudio can't be started.

[some@some ~]$ pulseaudio -k
[some@some ~]$ pulseaudio --start
[some@some ~]$ pulseaudio --start
[some@some ~]$ pulseaudio -k
E: [pulseaudio] main.c: Destruction of service failed: There is no such process
[some@some ~]$ pulseaudio --start
E: [pulseaudio] main.c:  Service launch failed.

oh and after delate this code everthings working good besides recording.

and now outputs after restart without this sentence...

[some@some ~]$ pulseaudio -vvv
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operacja niedozwolona
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operacja niedozwolona
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 10.0
D: [pulseaudio] main.c: Compilation host: x86_64-unknown-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux x86_64 4.12.6-1-ARCH #1 SMP PREEMPT Sat Aug 12 09:16:22 CEST 2017
D: [pulseaudio] main.c: Found 4 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 1bcb780917e948f09676499d8a1c84ad.
I: [pulseaudio] main.c: Session ID is c2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/ivil/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-10.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() się nie powiodło.
[ivil@ivil ~]$ #If pulse is running
[some@some ~]$ pacmd list-sources
2 source(s) available.
    index: 0
        name: <alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 1950
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 2 k 44100 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
        monitor_of: 0
        card: 0 <alsa_card.pci-0000_00_03.0>
        module: 6
        properties:
                device.description = "Monitor of Wbudowany dźwięk Digital Stereo (HDMI 2)"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA Intel HDMI"
                alsa.long_card_name = "HDA Intel HDMI at 0xf7f14000 irq 33"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:03.0"
                sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "0c0c"
                device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
  * index: 1
        name: <alsa_output.pci-0000_00_1b.0.analog-surround-51.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 1950
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB,   rear-left: 65536 / 100% / 0,00 dB,   rear-right: 65536 / 100% / 0,00 dB,   front-center: 65536 / 100% / 0,00 dB,   lfe: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 6 k 44100 Hz
        channel map: front-left,front-right,rear-left,rear-right,front-center,lfe
                     Przestrzenne 5.1
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
        monitor_of: 1
        card: 1 <alsa_card.pci-0000_00_1b.0>
        module: 7
        properties:
                device.description = "Monitor of Wbudowany dźwięk Analogowe przestrzenne 5.1"
                device.class = "monitor"
                alsa.card = "1"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7f10000 irq 32"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "8c20"
                device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "1"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
[some@some ~]$ pacmd list-source-inputssudo fuser -v /dev/snd/*
pacmd: błędna opcja -- 'v'
[some@some ~]$ pulseaudio -vvv
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operacja niedozwolona
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operacja niedozwolona
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 10.0
D: [pulseaudio] main.c: Compilation host: x86_64-unknown-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux x86_64 4.12.6-1-ARCH #1 SMP PREEMPT Sat Aug 12 09:16:22 CEST 2017
D: [pulseaudio] main.c: Found 4 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 1bcb780917e948f09676499d8a1c84ad.
I: [pulseaudio] main.c: Session ID is c2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/ivil/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-10.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() się nie powiodło.
[some@some ~]$ #If pulse is running
[some@some ~]$ pacmd list-sources
2 source(s) available.
    index: 0
        name: <alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 1950
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 2 k 44100 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
        monitor_of: 0
        card: 0 <alsa_card.pci-0000_00_03.0>
        module: 6
        properties:
                device.description = "Monitor of Wbudowany dźwięk Digital Stereo (HDMI 2)"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA Intel HDMI"
                alsa.long_card_name = "HDA Intel HDMI at 0xf7f14000 irq 33"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:03.0"
                sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "0c0c"
                device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
  * index: 1
        name: <alsa_output.pci-0000_00_1b.0.analog-surround-51.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 1950
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB,   rear-left: 65536 / 100% / 0,00 dB,   rear-right: 65536 / 100% / 0,00 dB,   front-center: 65536 / 100% / 0,00 dB,   lfe: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 6 k 44100 Hz
        channel map: front-left,front-right,rear-left,rear-right,front-center,lfe
                     Przestrzenne 5.1
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
        monitor_of: 1
        card: 1 <alsa_card.pci-0000_00_1b.0>
        module: 7
        properties:
                device.description = "Monitor of Wbudowany dźwięk Analogowe przestrzenne 5.1"
                device.class = "monitor"
                alsa.card = "1"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7f10000 irq 32"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "8c20"
                device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "1"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
[some@some ~]$ pacmd list-source-inputs
Unknown command: list-source-inputs

nah.. i will change language...

EDIT: W8 WHAT ?

pacmd list-source-outputs
0 source output(s) available

Last edited by (E)ivil (2017-08-15 12:46:20)

Offline

#4 2017-08-15 12:50:01

(E)ivil
Member
Registered: 2017-05-07
Posts: 3

Re: Alsa tool on arch: Echo-cenalletion dosen't work

V1del wrote:

What exactly did you change? Post the files you adjusted. You likely loaded pulse's echo cancel module incorrectly. What are the outputs of

sudo fuser -v /dev/snd/*
pulseaudio -vvv
#If pulse is running
pacmd list-sources
pacmd list-source-outputs

while recording.

Edit: It should be source-outputs sorry

pacmd list-source-outputs
0 source output(s) available

i see...
Alsa dosen't see my front panel with 2x usb; 1xjack for headphones and 1Xjack for headphones.

I've got 2 systems on my computer - arch + win10
On win that's working.

EDIT:
Okay.. now front panel works but... smae problem with aecord and there is static noise.. again.. same problem like before.

[ivil@ivil ~]$ pacmd list-source-outputs 
1 source output(s) available.
    index: 2
        driver: <protocol-native.c>
        flags: 
        state: RUNNING
        source: 4 <alsa_input.pci-0000_00_1b.0.analog-stereo>
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        muted: no
        current latency: 0,00 ms
        requested latency: 10,00 ms
        sample spec: s16le 2 k 44100 Hz
        channel map: front-left,front-right
                     Stereo
        resample method: (null)
        owner module: 9
        client: 13 <WEBRTC VoiceEngine>
        properties:
                media.name = "recStream"
                application.name = "WEBRTC VoiceEngine"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "1367"
                application.process.user = "ivil"
                application.process.host = "ivil"
                application.process.binary = "Discord"
                application.language = "pl_PL.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "1bcb780917e948f09676499d8a1c84ad"
                application.process.session_id = "c2"
                application.icon_name = "/usr/share/pixmaps/discord.png"
                module-stream-restore.id = "source-output-by-application-name:WEBRTC VoiceEngine"

[ivil@ivil ~]$ arecord -f dat -r 60000 -D hw:0,0 -d 5 test.wav
arecord: main:807: audio open error:No such directory

And this problem with echo cencalation

Last edited by (E)ivil (2017-08-15 13:33:09)

Offline

Board footer

Powered by FluxBB