Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ________________
- > pulseaudio_ps_do
- mycroft 221 0.0 0.7 1144424 14456 ? S<sl 14:38 0:00 /usr/bin/pulseaudio --daemonize=no --log-target=journal
- mycroft 3688 0.0 0.0 2836 756 ? S+ 15:22 0:00 grep pulseaudio
- ________________
- > which pulseaudio
- /usr/bin/pulseaudio
- ________________
- > pidof pulseaudio
- 221
- ________________
- > pulseaudio --version
- pulseaudio 13.99.1
- ________________
- > pactl info
- Server String: /run/user/1050/pulse/native
- Library Protocol Version: 33
- Server Protocol Version: 33
- Is Local: yes
- Client Index: 52
- Tile Size: 65472
- User Name: mycroft
- Host Name: localhost.localdomain
- Server Name: pulseaudio
- Server Version: 13.99.1
- Default Sample Specification: s32le 2ch 48000Hz
- Default Channel Map: front-left,front-right
- Default Sink: alsa_output.platform-asoc-simple-card.0.stereo-fallback
- Default Source: alsa_input.platform-asoc-simple-card.0.stereo-fallback
- Cookie: 42ed:6812
- ________________
- > pactl list
- Module #0
- Name: module-device-restore
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Automatically restore the volume/mute state of devices"
- module.version = "13.99.1"
- Module #1
- Name: module-stream-restore
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Automatically restore the volume/mute/device state of streams"
- module.version = "13.99.1"
- Module #2
- Name: module-card-restore
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Automatically restore profile of cards"
- module.version = "13.99.1"
- Module #3
- Name: module-augment-properties
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Augment the property sets of streams with additional static information"
- module.version = "13.99.1"
- Module #4
- Name: module-switch-on-port-available
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "David Henningsson"
- module.description = "Switches ports and profiles when devices are plugged/unplugged"
- module.version = "13.99.1"
- Module #5
- Name: module-switch-on-connect
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Michael Terry"
- module.description = "When a sink/source is added, switch to it or conditionally switch to it"
- module.version = "13.99.1"
- Module #6
- Name: module-udev-detect
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Detect available audio hardware and load matching drivers"
- module.version = "13.99.1"
- Module #7
- Name: module-alsa-card
- Argument: device_id="0" name="platform-asoc-simple-card.0" card_name="alsa_card.platform-asoc-simple-card.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
- Usage counter: 0
- Properties:
- module.author = "Lennart Poettering"
- module.description = "ALSA Card"
- module.version = "13.99.1"
- Module #8
- Name: module-native-protocol-unix
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Native protocol (UNIX sockets)"
- module.version = "13.99.1"
- Module #9
- Name: module-default-device-restore
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Automatically restore the default sink and source"
- module.version = "13.99.1"
- Module #10
- Name: module-always-sink
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Colin Guthrie"
- module.description = "Always keeps at least one sink loaded even if it's a null one"
- module.version = "13.99.1"
- Module #11
- Name: module-intended-roles
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Automatically set device of streams based on intended roles of devices"
- module.version = "13.99.1"
- Module #12
- Name: module-suspend-on-idle
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "When a sink/source is idle for too long, suspend it"
- module.version = "13.99.1"
- Module #13
- Name: module-console-kit
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Create a client for each ConsoleKit session of this user"
- module.version = "13.99.1"
- Module #14
- Name: module-systemd-login
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Create a client for each login session of this user"
- module.version = "13.99.1"
- Module #15
- Name: module-position-event-sounds
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
- module.version = "13.99.1"
- Module #16
- Name: module-role-cork
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Mute & cork streams with certain roles while others exist"
- module.version = "13.99.1"
- Module #17
- Name: module-snap-policy
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Canonical Ltd"
- module.description = "Ubuntu Snap policy management"
- module.version = "13.99.1"
- Module #18
- Name: module-filter-heuristics
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Colin Guthrie"
- module.description = "Detect when various filters are desirable"
- module.version = "13.99.1"
- Module #19
- Name: module-filter-apply
- Argument:
- Usage counter: n/a
- Properties:
- module.author = "Colin Guthrie"
- module.description = "Load filter sinks automatically when needed"
- module.version = "13.99.1"
- Module #20
- Name: module-x11-publish
- Argument: display=:1 xauthority=
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "X11 credential publisher"
- module.version = "13.99.1"
- Module #21
- Name: module-x11-cork-request
- Argument: display=:1 xauthority=
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "Synthesize X11 media key events when cork/uncork is requested"
- module.version = "13.99.1"
- Module #22
- Name: module-x11-xsmp
- Argument: display=:1 xauthority= session_manager=local/localhost.localdomain:@/tmp/.ICE-unix/595,unix/localhost.localdomain:/tmp/.ICE-unix/595
- Usage counter: n/a
- Properties:
- module.author = "Lennart Poettering"
- module.description = "X11 session management"
- module.version = "13.99.1"
- Sink #0
- State: SUSPENDED
- Name: alsa_output.platform-asoc-simple-card.0.stereo-fallback
- Description: Built-in Audio Stereo
- Driver: module-alsa-card.c
- Sample Specification: s32le 2ch 48000Hz
- Channel Map: front-left,front-right
- Owner Module: 7
- Mute: no
- 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
- Monitor Source: alsa_output.platform-asoc-simple-card.0.stereo-fallback.monitor
- Latency: 0 usec, configured 0 usec
- Flags: HARDWARE DECIBEL_VOLUME LATENCY
- Properties:
- alsa.resolution_bits = "32"
- device.api = "alsa"
- device.class = "sound"
- alsa.class = "generic"
- alsa.subclass = "generic-mix"
- alsa.name = "simple-card_codec_link snd-soc-dummy-dai-0"
- alsa.id = "simple-card_codec_link snd-soc-dummy-dai-0"
- alsa.subdevice = "0"
- alsa.subdevice_name = "subdevice #0"
- alsa.device = "0"
- alsa.card = "0"
- alsa.card_name = "snd_rpi_simple_card"
- alsa.long_card_name = "snd_rpi_simple_card"
- alsa.driver_name = "snd_soc_simple_card"
- device.bus_path = "platform-asoc-simple-card.0"
- sysfs.path = "/devices/platform/asoc-simple-card.0/sound/card0"
- device.form_factor = "internal"
- device.string = "hw:0"
- device.buffering.buffer_size = "524288"
- device.buffering.fragment_size = "262144"
- device.access_mode = "mmap+timer"
- device.profile.name = "stereo-fallback"
- device.profile.description = "Stereo"
- device.description = "Built-in Audio Stereo"
- module-udev-detect.discovered = "1"
- device.icon_name = "audio-card"
- Ports:
- analog-output: Analog Output (priority: 9900)
- Active Port: analog-output
- Formats:
- pcm
- Source #0
- State: SUSPENDED
- Name: alsa_output.platform-asoc-simple-card.0.stereo-fallback.monitor
- Description: Monitor of Built-in Audio Stereo
- Driver: module-alsa-card.c
- Sample Specification: s32le 2ch 48000Hz
- Channel Map: front-left,front-right
- Owner Module: 7
- Mute: no
- 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
- Monitor of Sink: alsa_output.platform-asoc-simple-card.0.stereo-fallback
- Latency: 0 usec, configured 0 usec
- Flags: DECIBEL_VOLUME LATENCY
- Properties:
- device.description = "Monitor of Built-in Audio Stereo"
- device.class = "monitor"
- alsa.card = "0"
- alsa.card_name = "snd_rpi_simple_card"
- alsa.long_card_name = "snd_rpi_simple_card"
- alsa.driver_name = "snd_soc_simple_card"
- device.bus_path = "platform-asoc-simple-card.0"
- sysfs.path = "/devices/platform/asoc-simple-card.0/sound/card0"
- device.form_factor = "internal"
- device.string = "0"
- module-udev-detect.discovered = "1"
- device.icon_name = "audio-card"
- Formats:
- pcm
- Source #1
- State: SUSPENDED
- Name: alsa_input.platform-asoc-simple-card.0.stereo-fallback
- Description: Built-in Audio Stereo
- Driver: module-alsa-card.c
- Sample Specification: s32le 2ch 48000Hz
- Channel Map: front-left,front-right
- Owner Module: 7
- Mute: no
- 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
- Monitor of Sink: n/a
- Latency: 0 usec, configured 0 usec
- Flags: HARDWARE DECIBEL_VOLUME LATENCY
- Properties:
- alsa.resolution_bits = "32"
- device.api = "alsa"
- device.class = "sound"
- alsa.class = "generic"
- alsa.subclass = "generic-mix"
- alsa.name = "simple-card_codec_link snd-soc-dummy-dai-0"
- alsa.id = "simple-card_codec_link snd-soc-dummy-dai-0"
- alsa.subdevice = "0"
- alsa.subdevice_name = "subdevice #0"
- alsa.device = "0"
- alsa.card = "0"
- alsa.card_name = "snd_rpi_simple_card"
- alsa.long_card_name = "snd_rpi_simple_card"
- alsa.driver_name = "snd_soc_simple_card"
- device.bus_path = "platform-asoc-simple-card.0"
- sysfs.path = "/devices/platform/asoc-simple-card.0/sound/card0"
- device.form_factor = "internal"
- device.string = "hw:0"
- device.buffering.buffer_size = "524288"
- device.buffering.fragment_size = "262144"
- device.access_mode = "mmap+timer"
- device.profile.name = "stereo-fallback"
- device.profile.description = "Stereo"
- device.description = "Built-in Audio Stereo"
- module-udev-detect.discovered = "1"
- device.icon_name = "audio-card"
- Ports:
- analog-input: Analog Input (priority: 10000)
- Active Port: analog-input
- Formats:
- pcm
- Client #0
- Driver: module-systemd-login.c
- Owner Module: 14
- Properties:
- application.name = "Login Session c1"
- systemd-login.session = "c1"
- Client #7
- Driver: module-x11-xsmp.c
- Owner Module: 22
- Properties:
- application.name = "XSMP Session on KDE as 1028c1d320b210000155013913900000005950002"
- xsmp.vendor = "KDE"
- xsmp.client.id = "1028c1d320b210000155013913900000005950002"
- Client #8
- Driver: protocol-native.c
- Owner Module: 8
- Properties:
- application.name = "QPulse"
- native-protocol.peer = "UNIX socket client"
- native-protocol.version = "33"
- application.process.id = "611"
- application.process.user = "mycroft"
- application.process.host = "localhost.localdomain"
- application.process.binary = "plasmashell.bin"
- application.language = "C"
- window.x11.display = ":1"
- application.process.machine_id = "b5f4929aa5094ce49896d33ef2589e89"
- application.process.session_id = "c1"
- Client #10
- Driver: protocol-native.c
- Owner Module: 8
- Properties:
- application.name = "VLC media player (LibVLC 3.0.9.2)"
- native-protocol.peer = "UNIX socket client"
- native-protocol.version = "33"
- application.id = "org.VideoLAN.VLC"
- application.version = "3.0.9.2"
- application.icon_name = "vlc"
- application.language = "C"
- application.process.id = "262"
- media.role = "phone"
- application.process.user = "mycroft"
- application.process.host = "localhost.localdomain"
- application.process.binary = "python3.8"
- application.process.machine_id = "b5f4929aa5094ce49896d33ef2589e89"
- Client #16
- Driver: module-systemd-login.c
- Owner Module: 14
- Properties:
- application.name = "Login Session c6"
- systemd-login.session = "c6"
- Client #22
- Driver: protocol-native.c
- Owner Module: 8
- Properties:
- application.name = "libcanberra"
- native-protocol.peer = "UNIX socket client"
- native-protocol.version = "33"
- application.version = "0.30"
- application.id = "org.freedesktop.libcanberra"
- application.process.id = "611"
- application.process.user = "mycroft"
- application.process.host = "localhost.localdomain"
- application.process.binary = "plasmashell.bin"
- application.language = "C"
- window.x11.display = ":1"
- application.process.machine_id = "b5f4929aa5094ce49896d33ef2589e89"
- application.process.session_id = "c1"
- Client #27
- Driver: module-systemd-login.c
- Owner Module: 14
- Properties:
- application.name = "Login Session c7"
- systemd-login.session = "c7"
- Client #53
- Driver: protocol-native.c
- Owner Module: 8
- Properties:
- application.name = "pactl"
- native-protocol.peer = "UNIX socket client"
- native-protocol.version = "33"
- application.process.id = "3693"
- application.process.user = "mycroft"
- application.process.host = "localhost.localdomain"
- application.process.binary = "pactl"
- application.language = "C"
- application.process.machine_id = "b5f4929aa5094ce49896d33ef2589e89"
- application.process.session_id = "c7"
- Sample #0
- Name: audio-volume-change
- Sample Specification: s16le 2ch 44100Hz
- Channel Map: front-left,front-right
- Volume: (invalid)
- balance 0.00
- Duration: 0.1s
- Size: 11.5 KiB
- Lazy: no
- Filename: n/a
- Properties:
- media.role = "event"
- event.id = "audio-volume-change"
- event.description = "Volume Control Feedback Sound"
- media.name = "audio-volume-change"
- media.filename = "/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"
- application.name = "libcanberra"
- native-protocol.peer = "UNIX socket client"
- native-protocol.version = "33"
- application.version = "0.30"
- application.id = "org.freedesktop.libcanberra"
- application.process.id = "611"
- application.process.user = "mycroft"
- application.process.host = "localhost.localdomain"
- application.process.binary = "plasmashell.bin"
- application.language = "C"
- window.x11.display = ":1"
- application.process.machine_id = "b5f4929aa5094ce49896d33ef2589e89"
- application.process.session_id = "c1"
- Card #0
- Name: alsa_card.platform-asoc-simple-card.0
- Driver: module-alsa-card.c
- Owner Module: 7
- Properties:
- alsa.card = "0"
- alsa.card_name = "snd_rpi_simple_card"
- alsa.long_card_name = "snd_rpi_simple_card"
- alsa.driver_name = "snd_soc_simple_card"
- device.bus_path = "platform-asoc-simple-card.0"
- sysfs.path = "/devices/platform/asoc-simple-card.0/sound/card0"
- device.form_factor = "internal"
- device.string = "0"
- device.description = "Built-in Audio"
- module-udev-detect.discovered = "1"
- device.icon_name = "audio-card"
- Profiles:
- input:stereo-fallback: Stereo Input (sinks: 0, sources: 1, priority: 51, available: yes)
- input:multichannel-input: Multichannel Input (sinks: 0, sources: 1, priority: 1, available: yes)
- output:stereo-fallback: Stereo Output (sinks: 1, sources: 0, priority: 5100, available: yes)
- output:stereo-fallback+input:stereo-fallback: Stereo Output + Stereo Input (sinks: 1, sources: 1, priority: 5151, available: yes)
- output:stereo-fallback+input:multichannel-input: Stereo Output + Multichannel Input (sinks: 1, sources: 1, priority: 5101, available: yes)
- output:multichannel-output: Multichannel Output (sinks: 1, sources: 0, priority: 100, available: yes)
- output:multichannel-output+input:stereo-fallback: Multichannel Output + Stereo Input (sinks: 1, sources: 1, priority: 151, available: yes)
- output:multichannel-output+input:multichannel-input: Multichannel Duplex (sinks: 1, sources: 1, priority: 101, available: yes)
- off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
- Active Profile: output:stereo-fallback+input:stereo-fallback
- Ports:
- analog-input: Analog Input (priority: 10000, latency offset: 0 usec)
- Part of profile(s): input:stereo-fallback, output:stereo-fallback+input:stereo-fallback, output:multichannel-output+input:stereo-fallback
- multichannel-input: Multichannel Input (priority: 0, latency offset: 0 usec)
- Part of profile(s): input:multichannel-input, output:stereo-fallback+input:multichannel-input, output:multichannel-output+input:multichannel-input
- analog-output: Analog Output (priority: 9900, latency offset: 0 usec)
- Part of profile(s): output:stereo-fallback, output:stereo-fallback+input:stereo-fallback, output:stereo-fallback+input:multichannel-input
- multichannel-output: Multichannel Output (priority: 0, latency offset: 0 usec)
- Part of profile(s): output:multichannel-output, output:multichannel-output+input:stereo-fallback, output:multichannel-output+input:multichannel-input
- ________________
- > cat /etc/pulse/daemon.conf
- # This file is part of PulseAudio.
- #
- # PulseAudio is free software; you can redistribute it and/or modify
- # it under the terms of the GNU Lesser General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # PulseAudio is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # General Public License for more details.
- #
- # You should have received a copy of the GNU Lesser General Public License
- # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
- ## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
- ## more information. Default values are commented out. Use either ; or # for
- ## commenting.
- ; daemonize = no
- ; fail = yes
- ; allow-module-loading = yes
- ; allow-exit = yes
- ; use-pid-file = yes
- ; system-instance = no
- ; local-server-type = user
- ; enable-shm = yes
- ; enable-memfd = yes
- ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
- ; lock-memory = no
- ; cpu-limit = no
- ; high-priority = yes
- ; nice-level = -11
- ; realtime-scheduling = yes
- ; realtime-priority = 5
- ; exit-idle-time = 20
- ; scache-idle-time = 20
- ; dl-search-path = (depends on architecture)
- ; load-default-script-file = yes
- ; default-script-file = /etc/pulse/default.pa
- ; log-target = auto
- ; log-level = notice
- ; log-meta = no
- ; log-time = no
- ; log-backtrace = 0
- ; resample-method = speex-float-1
- ; avoid-resampling = false
- ; enable-remixing = yes
- ; remixing-use-all-sink-channels = yes
- ; remixing-produce-lfe = no
- ; remixing-consume-lfe = no
- ; lfe-crossover-freq = 0
- ; flat-volumes = no
- ; rescue-streams = yes
- ; rlimit-fsize = -1
- ; rlimit-data = -1
- ; rlimit-stack = -1
- ; rlimit-core = -1
- ; rlimit-as = -1
- ; rlimit-rss = -1
- ; rlimit-nproc = -1
- ; rlimit-nofile = 256
- ; rlimit-memlock = -1
- ; rlimit-locks = -1
- ; rlimit-sigpending = -1
- ; rlimit-msgqueue = -1
- ; rlimit-nice = 31
- ; rlimit-rtprio = 9
- ; rlimit-rttime = 200000
- default-sample-format = s32le
- default-sample-rate = 48000
- ; alternate-sample-rate = 48000
- default-sample-channels = 2
- ; default-channel-map = front-left,front-right
- ; default-fragments = 4
- ; default-fragment-size-msec = 25
- ; enable-deferred-volume = yes
- deferred-volume-safety-margin-usec = 1
- ; deferred-volume-extra-delay-usec = 0
- ________________
- > cat /etc/pulse/client.conf
- # This file is part of PulseAudio.
- #
- # PulseAudio is free software; you can redistribute it and/or modify
- # it under the terms of the GNU Lesser General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # PulseAudio is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # General Public License for more details.
- #
- # You should have received a copy of the GNU Lesser General Public License
- # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
- ## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
- ## more information. Default values are commented out. Use either ; or # for
- ## commenting.
- ; default-sink =
- ; default-source =
- ; default-server =
- ; default-dbus-server =
- ; autospawn = yes
- ; daemon-binary = /usr/bin/pulseaudio
- ; extra-arguments = --log-target=syslog
- ; cookie-file =
- ; enable-shm = yes
- ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
- ; auto-connect-localhost = no
- ; auto-connect-display = no
- ________________
- > cat /etc/pulse/default.pa
- #!/usr/bin/pulseaudio -nF
- #
- # This file is part of PulseAudio.
- #
- # PulseAudio is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Lesser General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # PulseAudio is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # General Public License for more details.
- #
- # You should have received a copy of the GNU Lesser General Public License
- # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
- # This startup script is used only if PulseAudio is started per-user
- # (i.e. not in system mode)
- .fail
- ### Automatically restore the volume of streams and devices
- load-module module-device-restore
- load-module module-stream-restore
- load-module module-card-restore
- ### Automatically augment property information from .desktop files
- ### stored in /usr/share/application
- load-module module-augment-properties
- ### Should be after module-*-restore but before module-*-detect
- load-module module-switch-on-port-available
- ### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794)
- .ifexists module-switch-on-connect.so
- load-module module-switch-on-connect
- .endif
- ### Load audio drivers statically
- ### (it's probably better to not load these drivers manually, but instead
- ### use module-udev-detect -- see below -- for doing this automatically)
- #load-module module-alsa-sink
- #load-module module-alsa-source device=hw:1,0
- #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
- #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
- #load-module module-null-sink
- #load-module module-pipe-sink
- ### Automatically load driver modules depending on the hardware available
- .ifexists module-udev-detect.so
- load-module module-udev-detect
- .else
- ### Use the static hardware detection module (for systems that lack udev support)
- load-module module-detect
- .endif
- ### Automatically connect sink and source if JACK server is present
- .ifexists module-jackdbus-detect.so
- .nofail
- load-module module-jackdbus-detect channels=2
- .fail
- .endif
- ### Automatically load driver modules for Bluetooth hardware
- .ifexists module-bluetooth-policy.so
- load-module module-bluetooth-policy
- .endif
- .ifexists module-bluetooth-discover.so
- load-module module-bluetooth-discover
- .endif
- ### Load several protocols
- .ifexists module-esound-protocol-unix.so
- load-module module-esound-protocol-unix
- .endif
- load-module module-native-protocol-unix
- ### Network access (may be configured with paprefs, so leave this commented
- ### here if you plan to use paprefs)
- #load-module module-esound-protocol-tcp
- #load-module module-native-protocol-tcp
- #load-module module-zeroconf-publish
- ### Load the RTP receiver module (also configured via paprefs, see above)
- #load-module module-rtp-recv
- ### Load the RTP sender module (also configured via paprefs, see above)
- #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
- #load-module module-rtp-send source=rtp.monitor
- ### Load additional modules from GSettings. This can be configured with the paprefs tool.
- ### Please keep in mind that the modules configured by paprefs might conflict with manually
- ### loaded modules.
- .ifexists module-gsettings.so
- .nofail
- load-module module-gsettings
- .fail
- .endif
- ### Automatically restore the default sink/source when changed by the user
- ### during runtime
- ### NOTE: This should be loaded as early as possible so that subsequent modules
- ### that look up the default sink/source get the right value
- load-module module-default-device-restore
- ### Make sure we always have a sink around, even if it is a null sink.
- load-module module-always-sink
- ### Honour intended role device property
- load-module module-intended-roles
- ### Automatically suspend sinks/sources that become idle for too long
- load-module module-suspend-on-idle
- ### If autoexit on idle is enabled we want to make sure we only quit
- ### when no local session needs us anymore.
- .ifexists module-console-kit.so
- load-module module-console-kit
- .endif
- .ifexists module-systemd-login.so
- load-module module-systemd-login
- .endif
- ### Enable positioned event sounds
- load-module module-position-event-sounds
- ### Cork music/video streams when a phone stream is active
- load-module module-role-cork
- ### Block audio recording for snap confined packages unless they have
- ### the "pulseaudio" or "audio-record" interfaces plugged.
- .ifexists module-snap-policy.so
- load-module module-snap-policy
- .endif
- ### Modules to allow autoloading of filters (such as echo cancellation)
- ### on demand. module-filter-heuristics tries to determine what filters
- ### make sense, and module-filter-apply does the heavy-lifting of
- ### loading modules and rerouting streams.
- load-module module-filter-heuristics
- load-module module-filter-apply
- ### Make some devices default
- #set-default-sink output
- #set-default-source input
- set-default-sink 0
- set-default-source 1
- ________________
- > cat /etc/pulse/system.pa
- #!/usr/bin/pulseaudio -nF
- #
- # This file is part of PulseAudio.
- #
- # PulseAudio is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Lesser General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # PulseAudio is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # General Public License for more details.
- #
- # You should have received a copy of the GNU Lesser General Public License
- # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
- # This startup script is used only if PulseAudio is started in system
- # mode.
- ### Automatically restore the volume of streams and devices
- load-module module-device-restore
- load-module module-stream-restore
- load-module module-card-restore
- ### Automatically load driver modules depending on the hardware available
- .ifexists module-udev-detect.so
- load-module module-udev-detect
- .else
- ### Use the static hardware detection module (for systems that lack udev/hal support)
- load-module module-detect
- .endif
- ### Load several protocols
- .ifexists module-esound-protocol-unix.so
- load-module module-esound-protocol-unix
- .endif
- load-module module-native-protocol-unix
- ### Automatically restore the default sink/source when changed by the user
- ### during runtime
- ### NOTE: This should be loaded as early as possible so that subsequent modules
- ### that look up the default sink/source get the right value
- load-module module-default-device-restore
- ### Make sure we always have a sink around, even if it is a null sink.
- load-module module-always-sink
- ### Automatically suspend sinks/sources that become idle for too long
- load-module module-suspend-on-idle
- ### Enable positioned event sounds
- load-module module-position-event-sounds
- ________________
- > ls -alt /dev/snd/*
- crw-rw----+ 1 root audio 116, 33 Feb 14 2019 /dev/snd/timer
- crw-rw----+ 1 root audio 116, 0 Feb 14 2019 /dev/snd/controlC0
- crw-rw----+ 1 root audio 116, 24 Feb 14 2019 /dev/snd/pcmC0D0c
- crw-rw----+ 1 root audio 116, 16 Feb 14 2019 /dev/snd/pcmC0D0p
- crw-rw----+ 1 root audio 116, 1 Feb 14 2019 /dev/snd/seq
- /dev/snd/by-path:
- total 0
- drwxr-xr-x 2 root root 60 Feb 14 2019 .
- drwxr-xr-x 3 root root 160 Feb 14 2019 ..
- lrwxrwxrwx 1 root root 12 Feb 14 2019 platform-asoc-simple-card.0 -> ../controlC0
- ________________
- > lsof /dev/snd/*
- COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
- pulseaudi 221 mycroft 21u CHR 116,0 0t0 17195 /dev/snd/controlC0
- pulseaudi 221 mycroft 27u CHR 116,0 0t0 17195 /dev/snd/controlC0
- python3 265 mycroft mem CHR 116,24 17194 /dev/snd/pcmC0D0c
- python3 265 mycroft 8r CHR 116,33 0t0 16898 /dev/snd/timer
- python3 265 mycroft 9u CHR 116,24 0t0 17194 /dev/snd/pcmC0D0c
- python3 265 mycroft 10u CHR 116,0 0t0 17195 /dev/snd/controlC0
- ________________
- > jacks_do
- card=0
- ________________
- > aplay -L
- null
- Discard all samples (playback) or generate zero samples (capture)
- samplerate
- Rate Converter Plugin Using Samplerate Library
- speexrate
- Rate Converter Plugin Using Speex Resampler
- jack
- JACK Audio Connection Kit
- oss
- Open Sound System
- pulse
- PulseAudio Sound Server
- upmix
- Plugin for channel upmix (4,6,8)
- vdownmix
- Plugin for channel downmix (stereo) with a simple spacialization
- VocalFusion
- VF_ASR_Comms_(LR)
- VF_ASR_(L)
- VF_Comms_(R)
- default
- sysdefault:CARD=sndrpisimplecar
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Default Audio Device
- dmix:CARD=sndrpisimplecar,DEV=0
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Direct sample mixing device
- dsnoop:CARD=sndrpisimplecar,DEV=0
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Direct sample snooping device
- hw:CARD=sndrpisimplecar,DEV=0
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Direct hardware device without any conversions
- plughw:CARD=sndrpisimplecar,DEV=0
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Hardware device with all software conversions
- usbstream:CARD=sndrpisimplecar
- snd_rpi_simple_card
- USB Stream Output
- ________________
- > arecord -L
- null
- Discard all samples (playback) or generate zero samples (capture)
- samplerate
- Rate Converter Plugin Using Samplerate Library
- speexrate
- Rate Converter Plugin Using Speex Resampler
- jack
- JACK Audio Connection Kit
- oss
- Open Sound System
- pulse
- PulseAudio Sound Server
- upmix
- Plugin for channel upmix (4,6,8)
- vdownmix
- Plugin for channel downmix (stereo) with a simple spacialization
- VocalFusion
- VF_ASR_Comms_(LR)
- VF_ASR_(L)
- VF_Comms_(R)
- default
- sysdefault:CARD=sndrpisimplecar
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Default Audio Device
- dmix:CARD=sndrpisimplecar,DEV=0
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Direct sample mixing device
- dsnoop:CARD=sndrpisimplecar,DEV=0
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Direct sample snooping device
- hw:CARD=sndrpisimplecar,DEV=0
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Direct hardware device without any conversions
- plughw:CARD=sndrpisimplecar,DEV=0
- snd_rpi_simple_card, simple-card_codec_link snd-soc-dummy-dai-0
- Hardware device with all software conversions
- usbstream:CARD=sndrpisimplecar
- snd_rpi_simple_card
- USB Stream Output
- ________________
- > alsa_info_do
- upload=true&script=true&cardinfo=
- !!################################
- !!ALSA Information Script v 0.4.64
- !!################################
- !!Script ran on: Thu Feb 17 15:22:06 UTC 2022
- !!Linux Distribution
- !!------------------
- Ubuntu 20.04.3 LTS \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=focal
- !!DMI Information
- !!---------------
- Manufacturer:
- Product Name:
- Product Version:
- Firmware Version:
- Board Vendor:
- Board Name:
- !!ACPI Device Status Information
- !!---------------
- !!Kernel Information
- !!------------------
- Kernel release: 4.19.127-v8+
- Operating System: GNU/Linux
- Architecture: aarch64
- Processor: aarch64
- SMP Enabled: Yes
- !!ALSA Version
- !!------------
- Driver version: k4.19.127-v8+
- Library version: 1.2.2
- Utilities version: 1.2.2
- !!Loaded ALSA modules
- !!-------------------
- snd_soc_simple_card
- !!Sound Servers on this system
- !!----------------------------
- Pulseaudio:
- Installed - Yes (/usr/bin/pulseaudio)
- Running - Yes
- !!Soundcards recognised by ALSA
- !!-----------------------------
- 0 [sndrpisimplecar]: snd_rpi_simple_ - snd_rpi_simple_card
- snd_rpi_simple_card
- !!PCI Soundcards installed in the system
- !!--------------------------------------
- !!Modprobe options (Sound related)
- !!--------------------------------
- snd_pcsp: index=-2
- snd_usb_audio: index=-2
- snd_atiixp_modem: index=-2
- snd_intel8x0m: index=-2
- snd_via82xx_modem: index=-2
- !!Loaded sound module options
- !!---------------------------
- !!Module: snd_soc_simple_card
- * :
- !!ALSA Device nodes
- !!-----------------
- crw-rw----+ 1 root audio 116, 0 Feb 14 2019 /dev/snd/controlC0
- crw-rw----+ 1 root audio 116, 24 Feb 14 2019 /dev/snd/pcmC0D0c
- crw-rw----+ 1 root audio 116, 16 Feb 14 2019 /dev/snd/pcmC0D0p
- crw-rw----+ 1 root audio 116, 1 Feb 14 2019 /dev/snd/seq
- crw-rw----+ 1 root audio 116, 33 Feb 14 2019 /dev/snd/timer
- /dev/snd/by-path:
- total 0
- drwxr-xr-x 2 root root 60 Feb 14 2019 .
- drwxr-xr-x 3 root root 160 Feb 14 2019 ..
- lrwxrwxrwx 1 root root 12 Feb 14 2019 platform-asoc-simple-card.0 -> ../controlC0
- !!ALSA configuration files
- !!------------------------
- !!User specific config file (~/.asoundrc)
- #
- # The I2S hardware device. Refer to it by name as it will not always
- # be the same card number in every system.
- #
- pcm.i2s_48k {
- type hw
- card sndrpisimplecar
- device 0
- format S32_LE
- channels 2
- rate 48000
- }
- #
- # VocalFusion playback device.
- # plug - rate and format conversion
- # softvol - control for alsamixer
- # dmix - allow device to be shared
- #
- pcm.VocalFusion {
- type plug
- slave.pcm {
- type softvol
- slave.pcm {
- type dmix
- ipc_key 256
- ipc_perm 0666
- slave.pcm "i2s_48k"
- }
- control {
- name "Playback"
- card sndrpisimplecar
- }
- }
- }
- #
- # VocalFusion Comms & ASR recording.
- #
- pcm.VF_ASR_Comms_(LR) {
- type plug
- slave.pcm {
- type softvol
- slave.pcm {
- type dsnoop
- ipc_key 512
- ipc_perm 0666
- slave.pcm "i2s_48k"
- }
- control {
- name "Record"
- card sndrpisimplecar
- }
- }
- }
- #
- # VocalFusion ASR recording.
- #
- pcm.VF_ASR_(L) {
- type plug
- slave.pcm {
- type softvol
- slave.pcm {
- type dsnoop
- ipc_key 512
- ipc_perm 0666
- slave.pcm "i2s_48k"
- bindings [0]
- }
- control {
- name "Record"
- card sndrpisimplecar
- }
- }
- }
- #
- # VocalFusion Comms recording.
- #
- pcm.VF_Comms_(R) {
- type plug
- slave.pcm {
- type softvol
- slave.pcm {
- type dsnoop
- ipc_key 512
- ipc_perm 0666
- slave.pcm "i2s_48k"
- bindings [1]
- }
- control {
- name "Record"
- card sndrpisimplecar
- }
- }
- }
- #
- # Default devices.
- #
- pcm.!default {
- type asym
- capture.pcm "VF_ASR_(L)"
- playback.pcm "VocalFusion"
- }
- !!System wide config file (/etc/asound.conf)
- #
- # The I2S hardware device. Refer to it by name as it will not always
- # be the same card number in every system.
- #
- pcm.i2s_48k {
- type hw
- card sndrpisimplecar
- device 0
- format S32_LE
- channels 2
- rate 48000
- }
- #
- # VocalFusion playback device.
- # plug - rate and format conversion
- # softvol - control for alsamixer
- # dmix - allow device to be shared
- #
- pcm.VocalFusion {
- type plug
- slave.pcm {
- type softvol
- slave.pcm {
- type dmix
- ipc_key 256
- ipc_perm 0666
- slave.pcm "i2s_48k"
- }
- control {
- name "Playback"
- card sndrpisimplecar
- }
- }
- }
- #
- # VocalFusion Comms & ASR recording.
- #
- pcm.VF_ASR_Comms_(LR) {
- type plug
- slave.pcm {
- type softvol
- slave.pcm {
- type dsnoop
- ipc_key 512
- ipc_perm 0666
- slave.pcm "i2s_48k"
- }
- control {
- name "Record"
- card sndrpisimplecar
- }
- }
- }
- #
- # VocalFusion ASR recording.
- #
- pcm.VF_ASR_(L) {
- type plug
- slave.pcm {
- type softvol
- slave.pcm {
- type dsnoop
- ipc_key 512
- ipc_perm 0666
- slave.pcm "i2s_48k"
- bindings [0]
- }
- control {
- name "Record"
- card sndrpisimplecar
- }
- }
- }
- #
- # VocalFusion Comms recording.
- #
- pcm.VF_Comms_(R) {
- type plug
- slave.pcm {
- type softvol
- slave.pcm {
- type dsnoop
- ipc_key 512
- ipc_perm 0666
- slave.pcm "i2s_48k"
- bindings [1]
- }
- control {
- name "Record"
- card sndrpisimplecar
- }
- }
- }
- #
- # Default devices.
- #
- pcm.!default {
- type asym
- capture.pcm "VF_ASR_(L)"
- playback.pcm "VocalFusion"
- }
- !!Aplay/Arecord output
- !!--------------------
- APLAY
- **** List of PLAYBACK Hardware Devices ****
- card 0: sndrpisimplecar [snd_rpi_simple_card], device 0: simple-card_codec_link snd-soc-dummy-dai-0 [simple-card_codec_link snd-soc-dummy-dai-0]
- Subdevices: 1/1
- Subdevice #0: subdevice #0
- ARECORD
- **** List of CAPTURE Hardware Devices ****
- card 0: sndrpisimplecar [snd_rpi_simple_card], device 0: simple-card_codec_link snd-soc-dummy-dai-0 [simple-card_codec_link snd-soc-dummy-dai-0]
- Subdevices: 0/1
- Subdevice #0: subdevice #0
- !!Amixer output
- !!-------------
- !!-------Mixer controls for card sndrpisimplecar
- Card hw:0 'sndrpisimplecar'/'snd_rpi_simple_card'
- Mixer name : ''
- Components : ''
- Controls : 2
- Simple ctrls : 2
- Simple mixer control 'Playback',0
- Capabilities: volume
- Playback channels: Front Left - Front Right
- Capture channels: Front Left - Front Right
- Limits: 0 - 255
- Front Left: 255 [100%]
- Front Right: 255 [100%]
- Simple mixer control 'Record',0
- Capabilities: volume
- Playback channels: Front Left - Front Right
- Capture channels: Front Left - Front Right
- Limits: 0 - 255
- Front Left: 255 [100%]
- Front Right: 255 [100%]
- !!Alsactl output
- !!--------------
- --startcollapse--
- state.sndrpisimplecar {
- control.1 {
- iface MIXER
- name Record
- value.0 255
- value.1 255
- comment {
- access 'read write user'
- type INTEGER
- count 2
- range '0 - 255'
- tlv '0000000100000008ffffec1400000014'
- dbmin -5100
- dbmax 0
- dbvalue.0 0
- dbvalue.1 0
- }
- }
- control.2 {
- iface MIXER
- name Playback
- value.0 255
- value.1 255
- comment {
- access 'read write user'
- type INTEGER
- count 2
- range '0 - 255'
- tlv '0000000100000008ffffec1400000014'
- dbmin -5100
- dbmax 0
- dbvalue.0 0
- dbvalue.1 0
- }
- }
- }
- --endcollapse--
- !!All Loaded Modules
- !!------------------
- bcm2835_codec
- bcm2835_mmal_vchiq
- bcm2835_v4l2
- binfmt_misc
- brcmfmac
- brcmutil
- cfg80211
- drm
- drm_kms_helper
- drm_panel_orientation_quirks
- evdev
- fb_sys_fops
- gpu_sched
- hwmon
- i2c_bcm2835
- i2c_dev
- i2s_master_loader
- ip_tables
- ipt_MASQUERADE
- iptable_filter
- iptable_mangle
- iptable_nat
- joydev
- media
- nf_conntrack
- nf_defrag_ipv4
- nf_defrag_ipv6
- nf_log_common
- nf_log_ipv4
- nf_log_ipv6
- nf_nat
- nf_nat_ipv4
- raspberrypi_hwmon
- regmap_mmio
- rfkill
- rpi_backlight
- rpi_ft5406
- rpivid_mem
- sch_fq_codel
- sg
- snd
- snd_compress
- snd_pcm
- snd_pcm_dmaengine
- snd_soc_bcm2835_i2s
- snd_soc_core
- snd_soc_simple_card
- snd_soc_simple_card_utils
- snd_timer
- spi_bcm2835
- spidev
- syscopyarea
- sysfillrect
- sysimgblt
- uio
- uio_pdrv_genirq
- v3d
- v4l2_common
- v4l2_mem2mem
- vc4
- vc_sm_cma
- videobuf2_common
- videobuf2_dma_contig
- videobuf2_memops
- videobuf2_v4l2
- videobuf2_vmalloc
- videodev
- x_tables
- xt_CHECKSUM
- xt_LOG
- xt_REDIRECT
- xt_conntrack
- xt_limit
- xt_multiport
- xt_nat
- xt_recent
- xt_tcpudp
- !!ALSA/HDA dmesg
- !!--------------
- [ 45.163750] asoc-simple-card asoc-simple-card.0: ASoC: CPU DAI fe203000.i2s not registered - will retry
- [ 45.183467] asoc-simple-card asoc-simple-card.0: snd-soc-dummy-dai <-> fe203000.i2s mapping ok
- [ 45.183477] asoc-simple-card asoc-simple-card.0: ASoC: no DMI vendor name!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement