View previous topic :: View next topic |
Author |
Message |
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
Posted: Tue Mar 30, 2021 1:09 pm Post subject: Problem in sound output |
|
|
Hello,
I have installed Gentoo on an intel ncu PC. I followed instructions about ALSA in Gentoo wiki page, but I have not been successful so far. My main problem is that I hear nothing when I play a .wav file neither from speakers nor from a headphone.
Some info about the system:
Code: | $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
sysdefault:CARD=PCH
HDA Intel PCH, ALC256 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
usbstream:CARD=PCH
HDA Intel PCH
USB Stream Output
|
Kernel debug messages:
Code: | $ dmesg | grep -i sound
[ 5.638272] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[ 5.638303] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[ 5.638334] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[ 5.638357] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[ 5.638381] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[ 5.638403] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input21
|
And also playing a .wav file shows no error, but it has no sound
Code: | $ aplay a.wav
Playing WAVE 'a.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
|
|
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Tue Mar 30, 2021 1:46 pm Post subject: |
|
|
Hi
please emerge alsa-utils
run
alsamixer
use F6 to choose your card and umute it if muted and adjust the volume for "master" _________________
|
|
Back to top |
|
|
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
Posted: Tue Mar 30, 2021 1:53 pm Post subject: |
|
|
alamahant wrote: | Hi
please emerge alsa-utils
run
alsamixer
use F6 to choose your card and umute it if muted and adjust the volume for "master" |
Thanks for the hint. I have done all, but the issue has not been resolved yet.
<F6> in alsamixer shows the following device
|
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
|
Back to top |
|
|
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
Posted: Tue Mar 30, 2021 7:47 pm Post subject: |
|
|
alamahant wrote: | please run
lspci | grep -i audio
to identify your devices and
lspch -nkk
to see the drivers in use ,probably
snd_hda_intel
Also please run
lsmod | grep snd |
The audio devices is:
Code: | $lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation Comet Lake PCH-LP cAVS
|
The Kernel seems to have loaded the driver according to the following log
Code: | $ lspci -nkk | grep intel
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci
|
I've also create the .asoundrc config file with the following content
Code: | pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
|
yet the sound is not heard. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Tue Mar 30, 2021 8:11 pm Post subject: |
|
|
h.shahbazi,
Post the following please.
The content of /proc/asound/devices.
The output of
All of would be good too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Tue Mar 30, 2021 8:23 pm Post subject: |
|
|
what is the output of
uname -r
?
Also please try
emerge -av sof-firmware linux-firmware
and an initrd to load them @boot
Also
intel-microcode ####and
iucode_tool -S --write-earlyfw=/boot/intel-uc.img /lib/firmware/intel-ucode/* #####generally useful _________________
Last edited by alamahant on Tue Mar 30, 2021 8:40 pm; edited 1 time in total |
|
Back to top |
|
|
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
Posted: Tue Mar 30, 2021 8:34 pm Post subject: |
|
|
NeddySeagoon wrote: | The content of /proc/asound/devices. |
Code: | $ cat /proc/asound/devices
2: [ 0- 0]: digital audio playback
3: [ 0- 0]: digital audio capture
4: [ 0- 3]: digital audio playback
5: [ 0- 7]: digital audio playback
6: [ 0- 8]: digital audio playback
7: [ 0- 9]: digital audio playback
8: [ 0-10]: digital audio playback
9: [ 0- 0]: hardware dependent
10: [ 0- 2]: hardware dependent
11: [ 0] : control
33: : timer
|
NeddySeagoon wrote: | The output of |
Code: | $ ls -l /dev/snd
drwxr-xr-x 2 root root 60 Mar 30 15:37 by-path
crw-rw----+ 1 root audio 116, 11 Mar 30 15:37 controlC0
crw-rw----+ 1 root audio 116, 9 Mar 30 15:37 hwC0D0
crw-rw----+ 1 root audio 116, 10 Mar 30 15:37 hwC0D2
crw-rw----+ 1 root audio 116, 3 Mar 30 15:37 pcmC0D0c
crw-rw----+ 1 root audio 116, 2 Mar 30 22:38 pcmC0D0p
crw-rw----+ 1 root audio 116, 8 Mar 30 15:52 pcmC0D10p
crw-rw----+ 1 root audio 116, 4 Mar 30 15:37 pcmC0D3p
crw-rw----+ 1 root audio 116, 5 Mar 30 15:37 pcmC0D7p
crw-rw----+ 1 root audio 116, 6 Mar 30 15:37 pcmC0D8p
crw-rw----+ 1 root audio 116, 7 Mar 30 15:37 pcmC0D9p
crw-rw----+ 1 root audio 116, 1 Mar 30 15:37 seq
crw-rw----+ 1 root audio 116, 33 Mar 30 15:37 timer |
NeddySeagoon wrote: | All of would be good too. |
Code: | $ lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:9b51]
DeviceName: Intel Dual Band
Subsystem: Intel Corporation Device [8086:2081]
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:9bca] (rev 04)
DeviceName: GPU
Subsystem: Intel Corporation Device [8086:2081]
Kernel driver in use: i915
Kernel modules: i915
00:08.0 System peripheral [0880]: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [8086:1911]
Subsystem: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [8086:2081]
00:12.0 Signal processing controller [1180]: Intel Corporation Comet Lake Thermal Subsytem [8086:02f9]
Subsystem: Intel Corporation Comet Lake Thermal Subsytem [8086:2081]
00:14.0 USB controller [0c03]: Intel Corporation Comet Lake PCH-LP USB 3.1 xHCI Host Controller [8086:02ed]
Subsystem: Intel Corporation Comet Lake PCH-LP USB 3.1 xHCI Host Controller [8086:2081]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:14.2 RAM memory [0500]: Intel Corporation Comet Lake PCH-LP Shared SRAM [8086:02ef]
Subsystem: Intel Corporation Comet Lake PCH-LP Shared SRAM [8086:2081]
00:14.3 Network controller [0280]: Intel Corporation Comet Lake PCH-LP CNVi WiFi [8086:02f0]
Subsystem: Intel Corporation Wi-Fi 6 AX201 160MHz [8086:0074]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
00:15.0 Serial bus controller [0c80]: Intel Corporation Serial IO I2C Host Controller [8086:02e8]
Subsystem: Intel Corporation Serial IO I2C Host Controller [8086:2081]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:15.2 Serial bus controller [0c80]: Intel Corporation Device [8086:02ea]
Subsystem: Intel Corporation Device [8086:2081]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Comet Lake Management Engine Interface [8086:02e0]
Subsystem: Intel Corporation Comet Lake Management Engine Interface [8086:2081]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 SATA controller [0106]: Intel Corporation Comet Lake SATA AHCI Controller [8086:02d3]
Subsystem: Intel Corporation Comet Lake SATA AHCI Controller [8086:2081]
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:02bc] (rev f0)
Kernel driver in use: pcieport
00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:02b0] (rev f0)
Kernel driver in use: pcieport
00:1d.5 PCI bridge [0604]: Intel Corporation Device [8086:02b5] (rev f0)
Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Comet Lake PCH-LP LPC Premium Controller/eSPI Controller [8086:0284]
Subsystem: Intel Corporation Comet Lake PCH-LP LPC Premium Controller/eSPI Controller [8086:2081]
00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
Subsystem: Intel Corporation Comet Lake PCH-LP cAVS [8086:2081]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci
00:1f.4 SMBus [0c05]: Intel Corporation Comet Lake PCH-LP SMBus Host Controller [8086:02a3]
Subsystem: Intel Corporation Comet Lake PCH-LP SMBus Host Controller [8086:2081]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake SPI (flash) Controller [8086:02a4]
Subsystem: Intel Corporation Comet Lake SPI (flash) Controller [8086:2081]
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (10) I219-V [8086:0d4f]
DeviceName: LAN
Subsystem: Intel Corporation Ethernet Connection (10) I219-V [8086:2081]
Kernel driver in use: e1000e
Kernel modules: e1000e
01:00.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] [8086:15e7] (rev 06)
Kernel driver in use: pcieport
02:00.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] [8086:15e7] (rev 06)
Kernel driver in use: pcieport
02:01.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] [8086:15e7] (rev 06)
Kernel driver in use: pcieport
02:02.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] [8086:15e7] (rev 06)
Kernel driver in use: pcieport
03:00.0 System peripheral [0880]: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 2C 2018] [8086:15e8] (rev 06)
Subsystem: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 2C 2018] [8086:2081]
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
39:00.0 USB controller [0c03]: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 2C 2018] [8086:15e9] (rev 06)
Subsystem: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 2C 2018] [8086:2081]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
3a:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 [144d:a808]
Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 [144d:a801]
Kernel driver in use: nvme
Kernel modules: nvme
3b:00.0 SD Host controller [0805]: Genesys Logic, Inc Device [17a0:9755]
Subsystem: Intel Corporation Device [8086:2081]
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
|
|
|
Back to top |
|
|
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
Posted: Tue Mar 30, 2021 8:37 pm Post subject: |
|
|
alamahant wrote: | what is the output of
uname -r
?
Also please try
emerge -av sof-firmware linux-firmware
and an initrd to load them @boot |
Code: | $ uname -r
5.4.97-gentoo-x86_64
|
Also, I have installed both sof-firmware and linux-firmware, but it didn't help |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Tue Mar 30, 2021 9:07 pm Post subject: |
|
|
h.shahbazi,
That looks good. You have exactly one sound card, so the default device works for you.
Your .asoundrc config file is not required.
Is your sound card codec configured correctly?
Please put the output of dmesg onto a pastebin site.
Also your kernel .config file.
The output of may help find a beginners mistake. Building one kernel a running a different kernel is easy to do.
I get
Code: | $ uname -a
Linux NeddySeagoon_Static 5.11.2-gentoo #2 SMP PREEMPT Fri Mar 5 10:13:14 GMT 2021 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux | The Fri Mar 5 10:13:14 GMT 2021 is the build time of the running kernel.
In your uname -a output, does that look correct. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
Posted: Wed Mar 31, 2021 8:36 am Post subject: |
|
|
NeddySeagoon wrote: | h.shahbazi,
That looks good. You have exactly one sound card, so the default device works for you.
Your .asoundrc config file is not required.
Is your sound card codec configured correctly?
Please put the output of dmesg onto a pastebin site.
Also your kernel .config file.
The output of may help find a beginners mistake. Building one kernel a running a different kernel is easy to do.
I get
Code: | $ uname -a
Linux NeddySeagoon_Static 5.11.2-gentoo #2 SMP PREEMPT Fri Mar 5 10:13:14 GMT 2021 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux | The Fri Mar 5 10:13:14 GMT 2021 is the build time of the running kernel.
In your uname -a output, does that look correct. |
I'm quite sure the kernel was build and booted successfully. You can find content of the .config file as well as the kernel message here: https://gist.github.com/hassan-shahbazi/ffd8b3b2143ae4062f792be3b10fd0d3 |
|
Back to top |
|
|
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Wed Mar 31, 2021 9:51 am Post subject: |
|
|
h.shahbazi,
There are varying degrees of 'success' in building and booting a kernel. Some work better than others.
Your sound-hda-intel is fully modular, that works. Fully built in works too. Some parts built in, some parts modular fails as all the parts are required to initialise the driver.
Code: | [ 0.000000] Linux version 5.4.97-gentoo-x86_64 (root@gentoo) (gcc version 10.2.0 (Gentoo 10.2.0-r5 p6)) #2 SMP Wed Mar 31 00:51:02 EEST 2021 |
You rebuilt your kernel about 01:00 your local time. That matters to your helpers as we don't know what changed.
It may have invalidated other things you have posted.
Why do you have Code: | snd_hda_intel.dmic_detect=0 | on the kernel command line?
Code: | modinfo snd-hda-intel
parm: dmic_detect:Allow DSP driver selection (bypass this driver) (0=off, 1=on) (default=1); deprecated, use snd-intel-dspcfg.dsp_driver option instead (bool) |
Better yet, remove it altogether.
The driver found Code: | [ 5.478007] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC256: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:hp |
The ALC256 is your audio codec.
What does alsamixer show?
Code: | ┌────────────────────────────── AlsaMixer v1.2.4 ──────────────────────────────┐
│ Card: HDA ATI SB F1: Help │
│ Chip: VIA VT1708S F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: 0.00] Esc: Exit │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │▒▒│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │
│ │▒▒│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │
│ │▒▒│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ → More controls ->
│ │▒▒│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │
│ ├──┤ ┌──┐ └──┘ ├──┤ ├──┤ └──┘ ├──┤ ├──┤ │
│ │OO│ │OO│ │OO│ │MM│ │OO│ │OO│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 100 40<>40 100<>100 0<>0 21<>21 100<>100 100 │
│ < Master >Headphon PCM Front Front Mi Front Mi Surround Center │
└──────────────────────────────────────────────────────────────────────────────┘ |
Top left is my codec Code: | │ Chip: VIA VT1708S |
At the bottom of the sliders are Mute Switches. OO means Open. MM means muted.
Mute all switches. Open only Master, Headphones, PCM and Front.
Set those four sliders to about 70% then test. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Wed Mar 31, 2021 10:27 am Post subject: |
|
|
Maybe also you try with the
5.10.x kernels........ _________________
|
|
Back to top |
|
|
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
Posted: Wed Mar 31, 2021 12:06 pm Post subject: |
|
|
NeddySeagoon wrote: | h.shahbazi,
There are varying degrees of 'success' in building and booting a kernel. Some work better than others.
Your sound-hda-intel is fully modular, that works. Fully built in works too. Some parts built in, some parts modular fails as all the parts are required to initialise the driver.
Code: | [ 0.000000] Linux version 5.4.97-gentoo-x86_64 (root@gentoo) (gcc version 10.2.0 (Gentoo 10.2.0-r5 p6)) #2 SMP Wed Mar 31 00:51:02 EEST 2021 |
You rebuilt your kernel about 01:00 your local time. That matters to your helpers as we don't know what changed.
It may have invalidated other things you have posted. |
Just to ensure, I have updated the kernel to the latest version (5.11) just now
Code: | $ uname -a
Linux gentoo 5.11.0-x86_64 #2 SMP Wed Mar 31 14:46:13 EEST 2021 x86_64 Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz GenuineIntel GNU/Linux
|
Quote: | Why do you have Code: | snd_hda_intel.dmic_detect=0 | on the kernel command line?
Code: | modinfo snd-hda-intel
parm: dmic_detect:Allow DSP driver selection (bypass this driver) (0=off, 1=on) (default=1); deprecated, use snd-intel-dspcfg.dsp_driver option instead (bool) |
Better yet, remove it altogether.
|
It was advised in a few comments above. Anyway, I have removed it for the new kernel.
Quote: | The driver found Code: | [ 5.478007] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC256: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:hp |
The ALC256 is your audio codec.
What does alsamixer show?
Top left is my codec Code: | │ Chip: VIA VT1708S |
At the bottom of the sliders are Mute Switches. OO means Open. MM means muted.
Mute all switches. Open only Master, Headphones, PCM and Front.
Set those four sliders to about 70% then test. |
The alsamixer output is like below
Code: | ┌───────────────────────────────────────────────────────────── AlsaMixer v1.2.3 ──────────────────────────────────────────────────────────────┐
│ Card: HDA Intel PCH F1: Help │
│ Chip: Realtek ALC256 F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: -4.50, -6.00] Esc: Exit │
│ │
│ │
│ │
│ │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │▒ │ │ │ │ │ │ │ │
│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ ├──┤ └──┘ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ └──┘ └──┘ │
│ │MO│ │OO│ │MM│ │MM│ │MM│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 83<>78 75<>75 53<>53 53<>53 │
│ < Master > PCM S/PDIF S/PDIF 1 S/PDIF 2 S/PDIF 3 S/PDIF 4 Internal Mic B Internal Mic B │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
I can hear nothing yet from the headphone nor from the speaker (I'm not even sure Intel NCU contains speakers). However, I can feel something is connected for just 1 second (like you play an empty file) and then everything gets disconnected again. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Wed Mar 31, 2021 1:15 pm Post subject: |
|
|
h.shahbazi,
Your sound card can work at the 44.1kHz sample rate for CDs, *.wav and so on and the 48kHz used by DVDs and later for digital audio.
Unfortunately, it can only do one or the other, not both at the same time.
When both are selected, digital audio wins and analogue stays silent.
Your alsamixer shows
Code: | │ ├──┤ └──┘ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ └──┘ └──┘ │
│ │MO│ │OO│ │MM│ │MM│ │MM│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 83<>78 75<>75 53<>53 53<>53 │
│ < Master > PCM S/PDIF S/PDIF 1 S/PDIF 2 S/PDIF 3 S/PDIF 4 Internal Mic B Internal Mic B │
│ │ |
All the S/PDIF controls must be muted or your sound output is directed to the digital output. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
h.shahbazi n00b
Joined: 10 Dec 2020 Posts: 10 Location: Finland
|
Posted: Wed Mar 31, 2021 9:58 pm Post subject: |
|
|
NeddySeagoon wrote: | All the S/PDIF controls must be muted or your sound output is directed to the digital output. |
The problem is that the S/PDIF changes back to mute right after "aplay a.wav". This is probably why the headphone gets completely mute in a second!
Is there any way to completely disable S/PDIF? That might resolve the issue |
|
Back to top |
|
|
|