Regarding the request below, I fixed the mic issue by installing pipewire. I think my default input was set wrong. I probably needed to set it to dmic. Pipewire with pavucontrol seems to set it correctly for my needs. Thanks.
On 2022-07-05 14:51:09, Sadeep Madurange wrote: > Hello, > > I'm trying to get mic working with ALSA on Arch Linux. I have installed > sof-firmware along with alsa. My alsa card is sof-hda-dsp. The chip is > Realtek ALC287. I have following items in capture tab of alsamixer. > > 1. Mic Boost (I have set it to max) > 2. Capture (maxed and toggled to on) > 3. Dmic0 Front (maxed and toggled on) > 4. Dmic0 Rear (maxed and toggled on) > 5. Dmic1 2nd Front (muted and can't toggle) > 6. Dmic1 2nd Rear (muted and can't toggle) > 7. PGA2.0 2 Master (muted and can't toggle) > > Output of arecord -l: > > **** List of CAPTURE Hardware Devices **** > card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: sofhdadsp [sof-hda-dsp], device 6: DMIC (*) [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: sofhdadsp [sof-hda-dsp], device 7: DMIC16kHz (*) [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > > Output of lspci: > > 00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host > Bridge/DRAM Registers (rev 01) > 00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris > Xe Graphics] (rev 01) > 00:04.0 Signal processing controller: Intel Corporation TigerLake-LP Dynamic > Tuning Processor Participant (rev 01) > 00:06.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller > (rev 01) > 00:07.0 PCI bridge: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express > Root Port #1 (rev 01) > 00:07.2 PCI bridge: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express > Root Port #2 (rev 01) > 00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module > (rev 01) > 00:0a.0 Signal processing controller: Intel Corporation Tigerlake Telemetry > Aggregator Driver (rev 01) > 00:0d.0 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 USB > Controller (rev 01) > 00:0d.2 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #0 > (rev 01) > 00:0d.3 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #1 > (rev 01) > 00:14.0 USB controller: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI > Host Controller (rev 20) > 00:14.2 RAM memory: Intel Corporation Tiger Lake-LP Shared SRAM (rev 20) > 00:14.3 Network controller: Intel Corporation Wi-Fi 6 AX201 (rev 20) > 00:15.0 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C > Controller #0 (rev 20) > 00:16.0 Communication controller: Intel Corporation Tiger Lake-LP Management > Engine Interface (rev 20) > 00:1f.0 ISA bridge: Intel Corporation Tiger Lake-LP LPC Controller (rev 20) > 00:1f.3 Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology > Audio Controller (rev 20) > 00:1f.4 SMBus: Intel Corporation Tiger Lake-LP SMBus Controller (rev 20) > 00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-LP SPI Controller > (rev 20) > 04:00.0 Non-Volatile memory controller: KIOXIA Corporation Device 000c > > Output of dmesg | grep -E 'snd|sof': > > [ 0.615853] PCI-DMA: Using software bounce buffering for IO (SWIOTLB) > [ 0.615854] software IO TLB: mapped [mem > 0x00000000858dc000-0x00000000898dc000] (64MB) > [ 0.871403] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: > 13adbf4309bd82709c8cd54f316ed522988a1bd4' > [ 0.871411] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA > 2011: a92902398e16c49778cd90f99e4f9ae17c55af53' > [ 7.283107] snd_hda_intel 0000:00:1f.3: DSP detected with PCI > class/subclass/prog-if info 0x040380 > [ 7.283412] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ > platform, using SOF driver > [ 7.695674] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI > class/subclass/prog-if info 0x040380 > [ 7.696277] sof-audio-pci-intel-tgl 0000:00:1f.3: Digital mics found on > Skylake+ platform, using SOF driver > [ 7.696983] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI > class/subclass/prog-if 0x040380 > [ 7.697050] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops > i915_audio_component_bind_ops [i915]) > [ 7.703739] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode > [ 7.751725] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5 > [ 7.751728] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver > skl_hda_dsp_generic now > [ 7.751731] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT > tables: 4 > [ 7.753631] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version > 2:2:0-57864 > [ 7.753633] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel > ABI 3:19:1 > [ 7.753634] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent > than kernel > [ 7.753636] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header > type 3 size 0x30 > [ 7.849473] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version > 2:2:0-57864 > [ 7.849475] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel > ABI 3:19:1 > [ 7.849477] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent > than kernel > [ 7.895630] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel > ABI 3:19:1 > [ 7.895633] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: topology ABI is more > recent than kernel > [ 7.922067] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC287: > line_outs=2 (0x14/0x17/0x0/0x0/0x0) type:speaker > [ 7.922070] snd_hda_codec_realtek ehdaudio0D0: speaker_outs=0 > (0x0/0x0/0x0/0x0/0x0) > [ 7.922072] snd_hda_codec_realtek ehdaudio0D0: hp_outs=1 > (0x21/0x0/0x0/0x0/0x0) > [ 7.922072] snd_hda_codec_realtek ehdaudio0D0: mono: mono_out=0x0 > [ 7.922073] snd_hda_codec_realtek ehdaudio0D0: inputs: > [ 7.922073] snd_hda_codec_realtek ehdaudio0D0: Mic=0x19 > [ 8.014439] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX > overwritten > [ 8.014445] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX > overwritten > [ 8.035352] input: sof-hda-dsp Mic as > /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28 > [ 8.035401] input: sof-hda-dsp Headphone as > /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29 > [ 8.035658] input: sof-hda-dsp HDMI/DP,pcm=3 as > /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30 > [ 8.035683] input: sof-hda-dsp HDMI/DP,pcm=4 as > /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31 > [ 8.035715] input: sof-hda-dsp HDMI/DP,pcm=5 as > /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input32 > > However, I can't get the mic to record to anything. Output of arecord -vv > -fdat foo.wav: > > Recording WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo > Plug PCM: Hardware PCM card 0 'sof-hda-dsp' device 0 subdevice 0 > Its setup is: > stream : CAPTURE > access : RW_INTERLEAVED > format : S16_LE > subformat : STD > channels : 2 > rate : 48000 > exact rate : 48000 (48000/1) > msbits : 16 > buffer_size : 16384 > period_size : 4096 > period_time : 85333 > tstamp_mode : NONE > tstamp_type : MONOTONIC > period_step : 1 > avail_min : 4096 > period_event : 0 > start_threshold : 1 > stop_threshold : 16384 > silence_threshold: 0 > silence_size : 0 > boundary : 4611686018427387904 > appl_ptr : 0 > hw_ptr : 0 > #+ | 00% > > Thanks for your help. > _______________________________________________ > Alsa-user mailing list > Alsa-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-user -- Don't expect people to keep in step--it's hard enough just staying in line. _______________________________________________ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user