You are not logged in.

#1 2023-01-21 12:30:53

NhanchouBaimin
Member
Registered: 2023-01-21
Posts: 3

[SOLVED] Wrongly configuring audio device mode causes device imprac...

A few months ago, I changed the mode of both speaker and microphone on the same soundcard via plasma-pa - the speaker as "analog input" and the microphone as "analog stereo output".

Sounds silly, right? Before this I did some other mode changes but nothing wrong as these changes can be undone - the soundcard was still usable as both speaker and microphone are on the same soundcard.
But this time was different - when I set the speaker as "analog input", the speaker disappeared from plasma-pa panel.
I tried to change the mode of microphone into an input-and-output mode when I thought they would sync the changes, and they exactly didn't.
Then I changed the mode of microphone into "analog stereo output". This time both speaker and microphone disappeared.

I searched and tried some help and no use.

For my current user the soundcard is not usable. The root user can use it but do not output sounds.

Here are some output of some commands:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 1: ALC269 Digital [ALC269 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 0 [LED32]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
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
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=MID
    HDA Intel MID, ALC269 Analog
    Default Audio Device
front:CARD=MID,DEV=0
    HDA Intel MID, ALC269 Analog
    Front output / input
surround21:CARD=MID,DEV=0
    HDA Intel MID, ALC269 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=MID,DEV=0
    HDA Intel MID, ALC269 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=MID,DEV=0
    HDA Intel MID, ALC269 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=MID,DEV=0
    HDA Intel MID, ALC269 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=MID,DEV=0
    HDA Intel MID, ALC269 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=MID,DEV=0
    HDA Intel MID, ALC269 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=MID,DEV=0
    HDA Intel MID, ALC269 Digital
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=MID
    HDA Intel MID
    USB Stream Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, LED32
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output

Last edited by NhanchouBaimin (2023-01-25 17:27:23)

Offline

#2 2023-01-21 19:36:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 18,288

Re: [SOLVED] Wrongly configuring audio device mode causes device imprac...

Can you post

sudo fuser -v /dev/snd/*
pactl list cards
pactl list sinks

Offline

#3 2023-01-21 20:20:25

NhanchouBaimin
Member
Registered: 2023-01-21
Posts: 3

Re: [SOLVED] Wrongly configuring audio device mode causes device imprac...

V1del wrote:

Can you post

sudo fuser -v /dev/snd/*
pactl list cards
pactl list sinks

Here are the results:
(I specified LANG for convenience that the results are generally in English)

$ sudo LANG=en_GB fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  root        500 F.... fluidsynth
                     ncbm      95465 F.... kmix
/dev/snd/controlC2:  ncbm      95465 F.... kmix
                     ncbm      95496 F.... pulseaudio
/dev/snd/pcmC0D0p:   root        500 F...m fluidsynth
/dev/snd/seq:        root        500 f.... fluidsynth
/dev/snd/timer:      root        500 f.... fluidsynth

$ LANG=en_GB pactl list cards
Card #0
        Name: alsa_card.pci-0000_01_00.1
        Driver: module-alsa-card.c
        Owner Module: 6
        Properties:
                alsa.card = "2"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf3080000 irq 16"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0be3"
                device.product.name = "High Definition Audio Controller"
                device.string = "2"
                device.description = "High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) 输出(output) (sinks: 1, sources: 0, priority: 5900, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) 输出 (sinks: 1, sources: 0, priority: 800, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) 输出 (sinks: 1, sources: 0, priority: 800, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) 输出 (sinks: 1, sources: 0, priority: 38468, available: yes)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) 输出 (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) 输出 (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) 输出 (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) 输出 (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) 输出 (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) 输出 (sinks: 1, sources: 0, priority: 600, available: no)
                off: 关(off) (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:hdmi-stereo-extra1
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
                hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, available)
                        Properties:
                                device.icon_name = "video-display"
                                device.product.name = "LED32"
                        Part of profile(s): output:hdmi-stereo-extra1
                hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
                hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3

$ LANG=en_GB pactl list sinks
Sink #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1
        Description: High Definition Audio Controller Digital Stereo (HDMI 2)
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 6
        Mute: no
        Volume: front-left: 45875 /  70% / -9.29 dB,   front-right: 45875 /  70% / -9.29 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "LED32"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "7"
                alsa.card = "2"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf3080000 irq 16"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0be3"
                device.product.name = "High Definition Audio Controller"
                device.string = "hdmi:2,1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo-extra1"
                device.profile.description = "Digital Stereo (HDMI 2)"
                device.description = "High Definition Audio Controller Digital Stereo (HDMI 2)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, available)
        Active Port: hdmi-output-1
        Formats:
                pcm

I forgot to mention that only my HDTV have usable output.

Last edited by NhanchouBaimin (2023-01-21 20:22:17)

Offline

#4 2023-01-25 13:55:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 18,288

Re: [SOLVED] Wrongly configuring audio device mode causes device imprac...

Sorry for the late answer randomly stumbled on this again. You are running fluidsynth as root which will take away control of your audio device from your normal session leaving you with just HDMI.

Do not start fluidsynth as root, if you are using the systemd service disable the system wide service and enable the user service instead and change the configuration so that fluidsynth uses pulseaudio directly as an audio driver: https://wiki.archlinux.org/title/FluidS … PulseAudio

Last edited by V1del (2023-01-25 13:56:01)

Offline

#5 2023-01-25 17:26:04

NhanchouBaimin
Member
Registered: 2023-01-21
Posts: 3

Re: [SOLVED] Wrongly configuring audio device mode causes device imprac...

Thanks a lot that the device came back immediately when I disabled the fluidsynth system service, and I have successfully reconfigured fluidsynth.

Offline

Board footer

Powered by FluxBB