Microphone and webcam are not working

I have dual booted Manjaro (XFCE) on my Macbook Air (early 2017).
I have plugged in my earphones, which I can use normally to watch videos or listen to music. However, the microphone on these earphones are not working. I have used pavucontrol to check the input devices, but the microphone shows as "Unplugged", even though, under output devices, the earphones are shown as "Plugged in".
Also, my webcam is not even detected; when I try to use any webcam application (Google Meet, or Microsoft Teams), it says "no camera detected".
Is this a dual booting issue? How can I fix this?

welcome to Manjaro @abunav

please post system information - inxi -Fxxxz --no-host

and pulseaudio configuration - pulseaudio --dump-conf

ok, i was able to make the webcam work (I hadn't installed the facetime-hd driver; rookie mistake, I know).

The output for inxi -Fxxxz --no-host:

System:
  Kernel: 5.4.38-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Xfce 4.14.2 tk: Gtk 3.24.13 info: xfce4-panel wm: xfwm4 
  dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Apple product: MacBookAir7,2 v: 1.0 serial: <filter> 
  Chassis: type: 9 v: Mac-937CB26E2E02BB01 serial: <filter> 
  Mobo: Apple model: Mac-937CB26E2E02BB01 v: MacBookAir7,2 serial: <filter> 
  UEFI: Apple v: 193.0.0.0.0 date: 02/05/2020 
Battery:
  ID-1: BAT0 charge: 2.7 Wh condition: 47.1/54.3 Wh (87%) volts: 7.7/7.6 
  model: SMP bq20z451 type: Li-ion serial: N/A status: Charging cycles: 637 
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse serial: <filter> 
  charge: 55% (should be ignored) rechargeable: yes status: Discharging 
CPU:
  Topology: Dual Core model: Intel Core i5-5350U bits: 64 type: MT MCP 
  arch: Broadwell rev: 4 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 14407 
  Speed: 800 MHz min/max: 500/2900 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 
Graphics:
  Device-1: Intel HD Graphics 6000 vendor: Apple driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:1626 
  Display: x11 server: X.Org 1.20.8 driver: intel unloaded: modesetting 
  alternate: fbdev,vesa resolution: 1440x900~60Hz 
  OpenGL: renderer: Mesa Intel HD Graphics 6000 (BDW GT3) v: 4.6 Mesa 20.0.6 
  direct render: Yes 
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Apple driver: snd_hda_intel 
  v: kernel bus ID: 00:03.0 chip ID: 8086:160c 
  Device-2: Intel Wildcat Point-LP High Definition Audio 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:9ca0 
  Device-3: Broadcom and subsidiaries 720p FaceTime HD Camera 
  driver: facetimehd v: kernel bus ID: 02:00.0 chip ID: 14e4:1570 
  Sound Server: ALSA v: k5.4.38-1-MANJARO 
Network:
  Device-1: Broadcom and subsidiaries BCM4360 802.11ac Wireless Network 
  Adapter 
  vendor: Apple driver: wl v: kernel port: efa0 bus ID: 03:00.0 
  chip ID: 14e4:43a0 
  IF: wlp3s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 1.02 TiB used: 38.16 GiB (3.7%) 
  ID-1: /dev/sda vendor: Apple model: SSD SM0128G size: 113.00 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 3A0Q scheme: GPT 
  ID-2: /dev/sdb type: USB vendor: Western Digital 
  model: WD My Passport 25E1 size: 931.48 GiB serial: <filter> rev: 1021 
  scheme: GPT 
Partition:
  ID-1: / size: 48.97 GiB used: 22.08 GiB (45.1%) fs: ext4 dev: /dev/sdb7 
  ID-2: /home size: 125.38 GiB used: 16.08 GiB (12.8%) fs: ext4 
  dev: /dev/sdb8 
  ID-3: swap-1 size: 8.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb6 
Sensors:
  System Temperatures: cpu: 78.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 206 Uptime: 3m Memory: 7.68 GiB used: 1.08 GiB (14.1%) 
  Init: systemd v: 244 Compilers: gcc: 9.3.0 Shell: zsh v: 5.8 
  running in: xfce4-terminal inxi: 3.0.37 

I've added the output for pulseaudio --dump-conf below:

### Read from configuration file: /etc/pulse/daemon.conf ###
daemonize = no
fail = yes
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
allow-module-loading = yes
allow-exit = yes
use-pid-file = yes
system-instance = no
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = no
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib/pulse-13.0/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target = 
log-level = notice
resample-method = auto
avoid-resampling = no
enable-remixing = yes
remixing-use-all-sink-channels = yes
enable-lfe-remixing = no
lfe-crossover-freq = 0
default-sample-format = s16le
default-sample-rate = 44100
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 = 8000
deferred-volume-extra-delay-usec = 0
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -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

apologies, i posted wrong command for pulseaudio information

it should have been - pacmd dump

please also post information from - pacmd list-cards

For pacmd dump:

load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
load-module module-udev-detect
load-module module-alsa-card device_id="0" name="pci-0000_00_03.0" card_name="alsa_card.pci-0000_00_03.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"
load-module module-alsa-card device_id="1" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.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"
load-module module-jackdbus-detect channels=2
load-module module-bluetooth-policy
load-module module-bluetooth-discover
load-module module-bluez5-discover
load-module module-dbus-protocol
load-module module-native-protocol-unix
load-module module-gsettings
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-console-kit
load-module module-systemd-login
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
load-module module-x11-publish display=:0.0
load-module module-x11-xsmp display=:0.0 session_manager=local/manjaro:@/tmp/.ICE-unix/1338,unix/manjaro:/tmp/.ICE-unix/1338
load-module module-cli-protocol-unix

set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo 0xbae1
set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo no
suspend-sink alsa_output.pci-0000_00_1b.0.analog-stereo no

set-source-volume alsa_output.pci-0000_00_1b.0.analog-stereo.monitor 0x10000
set-source-mute alsa_output.pci-0000_00_1b.0.analog-stereo.monitor no
suspend-source alsa_output.pci-0000_00_1b.0.analog-stereo.monitor no
set-source-volume alsa_input.pci-0000_00_1b.0.analog-stereo 0xf65d
set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo no
suspend-source alsa_input.pci-0000_00_1b.0.analog-stereo no

set-card-profile alsa_card.pci-0000_00_03.0 off
set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo+input:analog-stereo

set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
set-default-source alsa_output.pci-0000_00_1b.0.analog-stereo.monitor

For pacmd list-cards:

2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_03.0>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xc1610000 irq 75"
		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 = "160c"
		device.product.name = "Broadwell-U 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:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xc1614000 irq 73"
		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 = "9ca0"
		device.product.name = "Wildcat Point-LP High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		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: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
		alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-headphones"


default-source for recording is set to use the audio playback.monitor instead of the microphones

set-default-source alsa_output.pci-0000_00_1b.0.analog-stereo.monitor

to change default-source to use the microphones

pacmd alsa_input.pci-0000_00_1b.0.analog-stereo

active profile is correct to allow input:analog-stereo recording as well as audio playback

active profile: output:analog-stereo+input:analog-stereo

but the microphone Ports do not look good

analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)

analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)

internal microphone may show as 'unknown' even when working, but should usually show as available 'yes' when active
this command will set internal microphone as the recording device

pacmd set-set-source-port alsa_card.pci-0000_00_1b.0 analog-input-internal-mic

but internal microphone may not work if it is not configured correctly in ALSA

external microphone is likely not configured correctly in ALSA to be shown as 'available:no'

you can look at settings and adjust them for yourself in:
alsamixer --card=0 --view=Capture
check if levels are turned up and capture is turned on for both devices

but if you can get full information about ALSA with:

sudo alsa-info.sh --upload

and paste the link to data uploaded to alsa-project

data will show the same level settings in text-format, but also a lot more information about audio hardware that may be helpful

I have made all the changes you have suggested up until the below quoted text.

I am new to Manjaro, so pardon me, but how should the below screen look like after I make the changes you have suggested: https://imgur.com/FT5pkRv.png
I see a "Mic" and a "Mic 1" option, apart from the "Internal Mic" option. I am not able to capture more than one, so, which one should I capture?

Also, the alsa-info is here : http://alsa-project.org/db/?f=490325d177bac0bf0714824a130b1f54c9340c49

apologies for not responding sooner, but i could not see from the information in ALSA how all the controls for audio might work together
the audio codec (Cirrus Logic CS4208) is not like the usual Realtek devices on most laptops

screenshot of alsamixer does not show all the controls, some are hidden on the right side
arrows down right side show there are more hidden controls that could be revealed using to scroll right (or enlarging window)
but alsa-info data has all the information from alsamixer in text-format

!!-------Mixer controls for card PCH

the 2 non-visible controls are

Simple mixer control 'Internal Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]

Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 2
  Front Left: 2 [100%] [0.00dB]
  Front Right: 2 [100%] [0.00dB]

Internal Mic is not showing any level control
but it is turned [off]

all 3 of these capture switches have the same properties:

Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0

so i suspect only one of Mic, Mic 1 or Internal Mic can be used for capture at any time

other capture-related level control also has capture turned off

Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 40 [63%] [-11.00dB] [off]
  Front Right: Capture 40 [63%] [-11.00dB] [off]

suggest turn capture on for this control
i think this is the main control for all 3 sources so should be changed to [on]

to save change to ALSA settings - sudo alsactl store

Forum kindly sponsored by