Re: Pulseaudio and S/PDIF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, Mar 23, 2023 at 9:35 AM Jerry Geis <jerry.geis@xxxxxxxxx> wrote:

I see the below for list-sources.

Source index 1 is muted.
Source index 2 presents  - TWO -  microphones
I want to MUTE the S/PDIF one ???? 
how do I do that ?

The GUI on Ubuntu 20.04 for the Input shows two items
Digital S/PDIF Webcam and  Webcam.

Muting from GUI - works - but how do I do it from the command line ?

Thanks

Jerry

----
pacmd list-sources
2 source(s) available.
    index: 1
name: <alsa_output.pci-0000_00_1b.0.hdmi-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1030
volume: front-left: 0 /   0% / -inf dB,   front-right: 0 /   0% / -inf dB
       balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: yes
current latency: 0.00 ms
max rewind: 0 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
            Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 16.00 .. 2000.00 ms
monitor_of: 0
card: 1 <alsa_card.pci-0000_00_1b.0>
module: 8
properties:
device.description = "Monitor of Built-in Audio Digital Stereo (HDMI)"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x89414000 irq 126"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "2284"
device.product.name = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller"
device.form_factor = "internal"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
  * index: 2
name: <alsa_input.usb-046d_Logitech_Webcam_C930e_8E44BAAE-02.iec958-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9048
volume: front-left: 29450 /  45% / -20.84 dB,   front-right: 29450 /  45% / -20.84 dB
       balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.62 ms
max rewind: 0 KiB
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
            Stereo
used by: 1
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.usb-046d_Logitech_Webcam_C930e_8E44BAAE-02>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "Logitech Webcam C930e"
alsa.long_card_name = "Logitech Webcam C930e at usb-0000:00:14.0-2, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:2:1.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/sound/card1"
udev.id = "usb-046d_Logitech_Webcam_C930e_8E44BAAE-02"
device.bus = "usb"
device.vendor.id = "046d"
device.vendor.name = "Logitech, Inc."
device.product.id = "0843"
device.product.name = "Webcam C930e"
device.serial = "046d_Logitech_Webcam_C930e_8E44BAAE"
device.form_factor = "webcam"
device.string = "iec958:1"
device.buffering.buffer_size = "384000"
device.buffering.fragment_size = "192000"
device.access_mode = "mmap+timer"
device.profile.name = "iec958-stereo"
device.profile.description = "Digital Stereo (IEC958)"
device.description = "Webcam C930e Digital Stereo (IEC958)"
module-udev-detect.discovered = "1"
device.icon_name = "camera-web-usb"
ports:
iec958-stereo-input: Digital Input (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:

active port: <iec958-stereo-input>

This shows it: with "pacmd list-cards"

  input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
input:iec958-stereo: Digital Stereo (IEC958) Input (priority 55, available: unknown)

I want the analog to be active and want to MUTE this iec958 

So there are TWO microphones presented on this card (webcam) or USB input microphone.
I want to use the analog one and not the iec958.  I get feedback with both enabled.
I can mute it from GUI - but I need to be able to mute JUST the iec958 input and not the analog from the command line.

So seems the webcam presents two microphones-  I need to mute one of them S/PDIF from the command line
thanks

Jerry


pacmd list-cards
2 card(s) available.
    index: 0
name: <alsa_card.usb-046d_Logitech_Webcam_C930e_8E44BAAE-02>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "1"
alsa.card_name = "Logitech Webcam C930e"
alsa.long_card_name = "Logitech Webcam C930e at usb-0000:00:14.0-2, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:2:1.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/sound/card1"
udev.id = "usb-046d_Logitech_Webcam_C930e_8E44BAAE-02"
device.bus = "usb"
device.vendor.id = "046d"
device.vendor.name = "Logitech, Inc."
device.product.id = "0843"
device.product.name = "Webcam C930e"
device.serial = "046d_Logitech_Webcam_C930e_8E44BAAE"
device.form_factor = "webcam"
device.string = "1"
device.description = "Webcam C930e"
module-udev-detect.discovered = "1"
device.icon_name = "camera-web-usb"
profiles:
input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
input:iec958-stereo: Digital Stereo (IEC958) Input (priority 55, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <input:iec958-stereo>
sources:
alsa_input.usb-046d_Logitech_Webcam_C930e_8E44BAAE-02.iec958-stereo/#2: Webcam C930e Digital Stereo (IEC958)
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
iec958-stereo-input: Digital Input (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:

    index: 1
name: <alsa_card.pci-0000_00_1b.0>
driver: <module-alsa-card.c>
owner module: 8
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x89414000 irq 126"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "2284"
device.product.name = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Analog Stereo Input (priority 65, available: no)
output:analog-stereo: Analog Stereo Output (priority 6500, available: no)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
output:analog-surround-40: Analog Surround 4.0 Output (priority 33968, available: unknown)
output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: unknown)
output:iec958-stereo: Digital Stereo (IEC958) Output (priority 38268, available: unknown)
output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 38668, available: unknown)
output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: unknown)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 33568, available: unknown)
output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 865, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <output:hdmi-stereo>
sinks:
alsa_output.pci-0000_00_1b.0.hdmi-stereo/#0: Built-in Audio Digital Stereo (HDMI)
sources:
alsa_output.pci-0000_00_1b.0.hdmi-stereo.monitor/#1: Monitor of Built-in Audio Digital Stereo (HDMI)
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
properties:

iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:

hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "SAMSUNG" 

[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux