You are not logged in.
I have no sound on a box with an intel chispset using the Realtek ALC887 codec.
Lspci lists the snd_hda_intel module to be in use.
Stock kernel, up to date.
Sound was checked with the rear mobo outputs and the front panel also.
Playing any sound results in no error message, sound is playing (but probably towards a non funcitonning device).
I have seen some people reporting the same error, does anyone know anything I could do to stop this and get this baby working?
Thank you!
Last edited by scar (2023-08-09 14:57:26)
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
What vendor/board model exactly. This can be very different between them. Whats your output for
aplay -lL
amixer -c0
sudo dmesg | grep -iE 'snd|sof'
sudo fuser -v /dev/snd/*
pactl list cards
pactl list sinksOffline
If
$ aplay -l
did not show your card you need to
1) make sure the kernel modules loaded
(check also /proc/sound and cat(1) those files)
2) make sure the "/sys/class/sound/$x/dev" for your soundcard(s) are got intook by udev or are in /dev
if both the modules loaded and /dev has the same (inode) as /sys/class/foo does, it'll work. (not including /etc/modules.conf which alsa-project.org explains and arch wiki's explain)
Offline
@xlfs-0.2
card is listed as card0
lspci -k shown the module is loaded
I have NO /proc/sound file (did you mean /proc/asound ?)
in /sys/class/sound/card0/ I have a couple of outputs, none of them is listed in /dev/snd/
Last edited by scar (2023-08-15 19:27:07)
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
Ignore him, post the outputs I asked for wrapped in code tags.
Offline
The board is an Asus j4005i-c, mini ITX board.
# aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Digital
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, S2-TEK TV
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 2
HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: ALC887-VD Digital [ALC887-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 0 [S2-TEK TV]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0and
# amixer -c0
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 64 [100%] [0.00dB] [on]
Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 64 [100%] [0.00dB] [on]
Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [on]
Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Front Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 3 [100%] [30.00dB]
Front Right: 3 [100%] [30.00dB]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 64 [100%] [0.00dB] [on]
Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [12.00dB] [on]
Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Line Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 3 [100%] [30.00dB]
Front Right: 3 [100%] [30.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',3
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 28 [61%] [12.00dB] [on]
Front Right: Capture 28 [61%] [12.00dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 0 [0%] [-16.00dB] [off]
Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'
Simple mixer control 'Channel Mode',0
Capabilities: enum
Items: '2ch' '4ch' '6ch'
Item0: '2ch'
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Front Mic' 'Rear Mic' 'Line'
Item0: 'Front Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Front Mic' 'Rear Mic' 'Line'
Item0: 'Front Mic'
Simple mixer control 'Loopback Mixing',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Rear Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]and
# dmesg | grep -iE 'snd|sof'~
[ 5.121978] snd_hda_intel 0000:00:0e.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 5.210390] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 5.210401] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 5.210404] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 5.210406] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 5.210408] snd_hda_codec_realtek hdaudioC0D0: dig-out=0x11/0x0
[ 5.210409] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 5.210412] snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19
[ 5.210414] snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18
[ 5.210415] snd_hda_codec_realtek hdaudioC0D0: Line=0x1aand
fuser -v /dev/snd/*this last command produces no result, although there are devices in that folder owned by user root and the group audio
Pulse is not installed.
Last edited by scar (2023-08-16 17:03:56)
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
-You wrote pulseaudio is not installed. Is pipewire installed instead? Or do you have normal alsa without installed?
-What sink do you want hear? Digital output, analog output (3,5mm)?
-What says alsamixer? Tried to activate spdif putputs (press keybpard m in alsamixer)
Offline
@obelisk:
No pulse, no pipewire. I only have alsa installed on the box.
I want to hear digital or analog output (device 0 or 3 in my case).
Hdmi works by the way (device 7).
Alsamixer shows nothing is muted. I did not set up any spdif outputs, don't need them.
If I play any sound with aplay, it shows it is playing, but I do not hear anything (tried with 3 different headsets and/or speakers).
Last edited by scar (2023-08-19 18:09:51)
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
fuser should and will show something during active attempted playback, post it in that condition.
Try
amixer -c0 set 'IEC958 Default PCM',0 offOffline
amixer -c0 set 'IEC958 Default PCM',0 off
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]during playback fuser shows
sudo fuser -v /dev/snd/*
/dev/snd/controlC0: root (PID) aplay
/dev/snd/pcmC0D0p: root (PID) aplay
/dev/snd/timer: root (PID) aplay“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
anyone? (hope this is not necrobumping)
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
sounds stupid, but....have you tried....
opening alsamixer in ternimal,
press then first keyboard F5, then keyboard F6 and select your sound card (not the default device).
Use key left and right to select control bar.
Press key m to activate control bar, when a control bar has status MM.
Press key space for source fo activating/deactivating.
Change sound card (key F6) to default and confirm that the sink is also active.
Or this helps you, I have installed these alsa packages on my system:
> pacman -Qsq alsa
alsa-card-profiles
alsa-firmware
alsa-lib
alsa-plugins
alsa-tools
alsa-topology-conf
alsa-ucm-conf
alsa-utils
lib32-alsa-lib
lib32-alsa-plugins
pipewire-alsaOr you have some kind of false configured /etc/asound.conf or ~/.asoundrc (by the way, I have no of these files. But I use pipewire).
Which desktop environment do you use (xfce, KDE plasma, gnome, lxde,....)? Maybe there is some kind of additional audio settings.
Offline
The "stupid sounding" stuff (although nothing sounds stupid) did not work.
I have installed now alsa-firmware and alsa-card-profiles, no success.
I am not using any desktop environment, the box is supposed to be a mediacenter with Kodi running on it.
I got sound in Kodi, but only through HDMI, not the audio jack outputs.
I'm sure I have a driver problem or I'm missing something really stupid here...
Last edited by scar (2023-09-20 12:28:17)
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
So, you're using kodi-standalone from AUR? Started via systemd-service?
good to know that something is working...HDMI sound in kodi.
Can you select in kodi settings another audio sink? Settings > System > Audio > Output, there should be more than one entry for selection.
I have also a media-PC... but also there I have pulseudio running.
Maybe you need a /etc/asound.conf
Unfortunately I have no much experience to setup alsa devices manually in /etc/asound.conf
For example with Audigy2 soundcard:
cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xfe9ec000 irq 19
1 [Bt878 ]: Bt87x - Brooktree Bt878
Brooktree Bt878 at 0xfdffe000, irq 21
2 [Audigy2 ]: Audigy2 - Audigy 4 [SB0610]
Audigy 4 [SB0610] (rev.0, serial:0x10211102) at 0xe800, irq 20
#end then into asound.conf
>cat /etc/asound.conf
pcm.!default {
type hw
card Audigy2
}
ctl.!default {
type hw
card Audigy2
}Try to setup a /etc/asound.conf
Other think to check:
I think with alsa, that when one sink is playing, playing on same sink is impossible. Because of blocked channel/sink? I'm not sure, I never used an only alsa-soundsystem where I can play several sources at same time.
Baybe something has blocked your alsa device. Can you try close kodi and all possible playing applications and desktop environments. And then test playing direct in tty-terminal
aplay -l
aplay /usr/share/sounds/alsa/Front_Center.wav
aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav
aplay -D plughw:0,1 /usr/share/sounds/alsa/Front_Center.wav
aplay -D plughw:2,0 /usr/share/sounds/alsa/Front_Center.wav
...
#try several combinations. I don't know the configuration of your cards#Maybe you find here something:
https://wiki.archlinux.org/title/Advanc … chitecture
https://wiki.archlinux.org/title/Advanc … ts%22_node
(okay, next is german [I'm german], but the codelines may be helpful for you)
https://wiki.archlinux.de/title/Advance … chitecture
Offline