The officially official Devuan Forum!

You are not logged in.

#1 2022-02-01 17:45:22

bimon
Member
Registered: 2019-09-09
Posts: 167  

No microphone sound in Librewolf and Firefox too

Hello,

I have sound working fine in Zoom (both Mic and Headphones), but unfortunately there is no microphone sound in Firefox.
On the other hand Firefox plays any sounds to the headphones fine.

It is a Chimaera installation.

dpkg -al | grep pulse
ii  libpulse-mainloop-glib0:amd64                               14.2-2                                                    amd64        PulseAudio client libraries (glib support)
ii  libpulse0:amd64   

I have following asound.conf:

root@chimaera:/etc/alsa# cat asound.conf


##### Hardware Aliases #####

pcm.system_card {
        type hw;
        card 0;
}

ctl.system_card {
        type hw;
        card 0;
}

ctl.system_dm ctl.system_card;

####################### MIXERS ########################
# --- System
pcm.system_mixer {
        type dmix;
        ipc_key 1024;
        ipc_key_add_uid false; # let multiple users share
        ipc_perm 0777; # IPC permissions (octal, default 0600)
        slave {
                pcm system_card;
                period_time 0;
                period_size 2048;
                buffer_size 32768;
#               rate 48000;
                rate 44100;
        }
        bindings {
                0 0;
                1 1;
        }
}

pcm.system_dm {
        type plug;
        slave.pcm "system_mixer";
}


pcm.system_volume {
    type softvol  
    slave {
#        pcm system_card;
        pcm "system_mixer"
    }
    control {
        name "Pre-Amp";
        card 0;
    }
    min_dB -10.0
    max_dB 25.0
    resolution 12
}
 
pcm.system_sv {
        type plug;
        slave.pcm "system_volume";
}
#ctl.system_sv ctl.system_card;


pcm.asymed {
        type asym
        playback.pcm "system_mixer"
        capture.pcm "hw:0,0"
}

ctl.asymed ctl.system_card;

##### Defaults #####
pcm.dsp0 {
    type plug
    slave.pcm "asymed"
}

pcm.!default {
        type plug
        slave.pcm "asymed"
}

pcm.default {
   type plug
   slave.pcm "asymed"
}


ctl.!default ctl.asymed
ctl.default ctl.asymed

Last edited by bimon (2022-02-01 17:53:01)

Offline

#2 2022-02-01 19:01:05

bimon
Member
Registered: 2019-09-09
Posts: 167  

Re: No microphone sound in Librewolf and Firefox too

I have found a workaround of executing browser by apulse command.

But then why headphones work even without apulse via ALSA while microphone works only via apulse for me ?

Last edited by bimon (2022-02-01 19:01:15)

Offline

#3 2022-02-01 19:47:21

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,388  

Re: No microphone sound in Librewolf and Firefox too

So I presume it works without apulse if you remove asound.conf?

Last edited by Head_on_a_Stick (2022-02-01 19:47:37)


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#4 2022-02-01 21:30:33

bimon
Member
Registered: 2019-09-09
Posts: 167  

Re: No microphone sound in Librewolf and Firefox too

Removing /etc/alsa/asound.conf still keeps sound in zoom working, but it does not influence firefox at all, so Mic still does not work anyway.

Is /etc/alsa/asound.conf file taken into account by the ALSA at all?

Can you please suggest an URL with modern guides for custom configuration of ALSA in Debian v11 or Chimaera without pulseAudio?

Last edited by bimon (2022-02-01 21:32:32)

Offline

#5 2022-02-02 09:41:34

Camtaf
Member
Registered: 2019-11-19
Posts: 177  

Re: No microphone sound in Librewolf and Firefox too

Offline

#6 2022-02-02 15:04:51

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,388  

Re: No microphone sound in Librewolf and Firefox too

bimon wrote:

Is /etc/alsa/asound.conf file taken into account by the ALSA at all?

I don't think so.

From /usr/share/alsa/alsa.conf:

# pre-load the configuration files

@hooks [
   {
      func load
      files [
         "/var/lib/alsa/conf.d"
         "/usr/etc/alsa/conf.d"
         "/etc/alsa/conf.d"
         "/etc/asound.conf|||/usr/etc/asound.conf"
         "~/.asoundrc"
         {
            @func concat
            strings [
               {
                  @func getenv
                  vars [
                     XDG_CONFIG_HOME
                  ]
                  default "~/.config"
               }
               "/alsa/asoundrc"
            ]
         }
      ]
      errors false
   }
]
bimon wrote:

Can you please suggest an URL with modern guides for custom configuration of ALSA

https://www.alsa-project.org/wiki/Asoundrc

And there's also https://wiki.archlinux.org/title/Advanc … chitecture & https://wiki.gentoo.org/wiki/ALSA

All I have ever needed to do is set the default card from HDMI to analogue to get both speaker output and microphone input working with firefox-esr in my Debian systems, as per the link kindly supplied by Camtaf.

What exactly do want ALSA to do? What sort of customisation is required?


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

Board footer