Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Realtek ALC897 No sound with ALSA installed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
web.user
n00b
n00b


Joined: 14 May 2021
Posts: 17

PostPosted: Fri May 14, 2021 6:29 pm    Post subject: [Solved] Realtek ALC897 No sound with ALSA installed Reply with quote

Hello! I have integrated sound card in Intel-based motherboard. I reconfigured & rebuilt kernel, installed alsa-lib, alsa-utils, unmuted alsamixer, enabled alsa and sound useflags, reemerged @world, but still no sound (tested with speaker-test, mpv and firefox). The user is in audio group. I use headphones btw. How can I make audio work? Here is some relevant info:

lspci -vv | grep -i audio
Code:

00:1f.3 Audio device: Intel Corporation Device f0c8 (rev 11)
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]
        Subsystem: ASUSTeK Computer Inc. Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]

Uncommented kernel options containing snd or audio:
Code:
grep -Ei '(snd|audio)' /usr/src/linux/.config | grep -v '#'
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_JACK=y
CONFIG_SND_JACK_INPUT_DEV=y
CONFIG_SND_PCM_TIMER=y
CONFIG_SND_DYNAMIC_MINORS=y
CONFIG_SND_MAX_CARDS=32
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_PROC_FS=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_AC97_CODEC=y
CONFIG_SND_DRIVERS=y
CONFIG_SND_ALOOP=y
CONFIG_SND_PCI=y
CONFIG_SND_INTEL8X0=y
CONFIG_SND_HDA=y
CONFIG_SND_HDA_GENERIC_LEDS=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_HDMI=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_PREALLOC_SIZE=2048
CONFIG_SND_INTEL_NHLT=y
CONFIG_SND_INTEL_DSP_CONFIG=y
CONFIG_SND_USB=y
CONFIG_SND_PCMCIA=y
CONFIG_SND_X86=y
CONFIG_LEDS_TRIGGER_AUDIO=y

rc-service alsasound status
* status: started

/etc/modprobe.d/alsa.conf
Code:
alias char-major-116 snd
alias char-major-14 soundcore

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

options snd cards_limit=1


I tried installing alsa-firmware, but it does not change anything (so I uninstalled it). Hardware is 100% working, tested on MX Linux livecd. I checked lsmod on it, snd_hda_intel is in use there (so on my system). I searched for a solution with no luck. Please help make it working.


Last edited by web.user on Sat May 15, 2021 5:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 569
Location: Ásgarðr

PostPosted: Fri May 14, 2021 6:43 pm    Post subject: Reply with quote

You might want to try to compile SND as a module instead of built-in. On my system, this is somehow needed.

CONFIG_SND=m
CONFIG_SND_HDA=m
CONFIG_SND_HDA_CODEC_REALTEK=m

EDIT :
Also, tick this :
CONFIG_SND_HDA_RECONFIG=y
Back to top
View user's profile Send private message
web.user
n00b
n00b


Joined: 14 May 2021
Posts: 17

PostPosted: Fri May 14, 2021 6:55 pm    Post subject: Reply with quote

Thanks for reply, I compiled it as module, now lsmod shows many modules, but still no sound. By the way, I have selected HDA Intel PCH card by default
Back to top
View user's profile Send private message
web.user
n00b
n00b


Joined: 14 May 2021
Posts: 17

PostPosted: Sat May 15, 2021 9:56 am    Post subject: Reply with quote

When I cat /proc/asound/timers with mpv running, it shows this:
Code:
G0: system timer : 1000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-1-0: PCM playback 0-1-0 : SLAVE
  Client application 4231 : running
P0-2-1: PCM capture 0-2-1 : SLAVE
P1-3-0: PCM playback 1-3-0 : SLAVE
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Sat May 15, 2021 11:06 am    Post subject: Reply with quote

web.user,

What does
Code:
/proc/asound/devices
contain?

What does
Code:
ls -l /dev/snd
show?

With also built into the kernel, /etc/modprobe.d/alsa.conf cannot be consulted, as sound in stated before root is mounted.
Its probably not needed anyway.

All SND_HDA_INTEL cards are capable of operating with a 44.1kHz sample rate for CD Digital Audio or 48.0kHz for digital outputs but not both at the same time.
I get any analogue audio output at all, all the controls with IEC or S/PDIF is their names must be muted because that card will prioritise digital output over analogue output.

If alsa mixer shows a Headphone control, it may be swapped with one pair of speakers, possibly Front. Do not rely on the analogue output channel naming.

A good test process is to mute everything.
Now unmute only PCM, Master and Front. Set those sliders to about 70%.
Don't put the headphones over your ears - it might be very loud.
Now test.
Unmute other controls one at at time, Headphones, Side, Rear, Centre/LFE.

The test will fail if the things I asked for are not 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
View user's profile Send private message
web.user
n00b
n00b


Joined: 14 May 2021
Posts: 17

PostPosted: Sat May 15, 2021 3:30 pm    Post subject: Reply with quote

NeddySeagoon, thanks for reply!
My /proc/asound/devices:
Code:
  2: [ 1- 3]: digital audio playback
  3: [ 1- 0]: hardware dependent
  4: [ 1]   : control
  5: [ 0- 0]: digital audio playback
  6: [ 0- 0]: digital audio capture
  7: [ 0- 1]: digital audio playback
  8: [ 0- 2]: digital audio capture
  9: [ 0- 0]: hardware dependent
 10: [ 0]   : control
 33:        : timer

ls -l /dev/snd
Code:
total 0
drwxr-xr-x  2 root root       80 May 15 18:22 by-path
crw-rw----+ 1 root audio 116, 10 May 15 18:22 controlC0
crw-rw----+ 1 root audio 116,  4 May 15 18:22 controlC1
crw-rw----+ 1 root audio 116,  9 May 15 18:22 hwC0D0
crw-rw----+ 1 root audio 116,  3 May 15 18:22 hwC1D0
crw-rw----+ 1 root audio 116,  6 May 15 18:22 pcmC0D0c
crw-rw----+ 1 root audio 116,  5 May 15 18:23 pcmC0D0p
crw-rw----+ 1 root audio 116,  7 May 15 18:22 pcmC0D1p
crw-rw----+ 1 root audio 116,  8 May 15 18:22 pcmC0D2c
crw-rw----+ 1 root audio 116,  2 May 15 18:22 pcmC1D3p
crw-rw----+ 1 root audio 116, 33 May 15 18:22 timer

I tried to do that test, but I have no mute/unmute option for PCM. Thanks for suggestion to mute S/PDIF, but still no sound. Here is alsamixer:
Code:
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── AlsaMixer v1.2.3 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Card: HDA Intel PCH                                                                                                                                                                                                                                   F1:  Help               │
│ Chip: Realtek ALC897                                                                                                                                                                                                                                  F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                                                                                                                                                                                              F6:  Select sound card  │
│ Item: Auto-Mute Mode [Disabled]                                                                                                                                                                                                                       Esc: Exit               │
│                                                                                                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                                               │
│      ┌──┐           ┌──┐           ┌──┐           ┌──┐           ┌──┐           ┌──┐           ┌──┐           ┌──┐           ┌──┐           ┌──┐           ┌──┐                                                                                      ┌──┐           ┌──┐      │
│      │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │                                                                                      │  │           │  │      │
│      │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │                                                                                      │  │           │  │      │
│      │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │                                                                                      │  │           │  │      │
│      │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │                                                                                      │  │           │  │      │
│      │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │           │  │                                                                                      │  │           │  │      │
│      │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      │▒▒│           │▒▒│           │▒▒│           │▒▒│           │  │           │  │           │▒▒│           │▒▒│           │▒▒│           │  │           │  │                                                                                      │▒▒│           │  │      │
│      ├──┤           ├──┤           └──┘           ├──┤           ├──┤           └──┘           ├──┤           ├──┤           ├──┤           ├──┤           └──┘           ┌──┐           ┌──┐         Disabled         2ch          Disabled         ├──┤           └──┘      │
│      │OO│           │OO│                          │OO│           │MM│                          │OO│           │OO│           │OO│           │MM│                          │MM│           │MM│                                                        │MM│                     │
│      └──┘           └──┘                          └──┘           └──┘                          └──┘           └──┘           └──┘           └──┘                          └──┘           └──┘                                                        └──┘                     │
│       54           70<>70         71<>69         70<>70          0<>0           0<>0          68<>68           70             70            0<>0           0<>0                                                                                     70<>70          0<>0      │
│     Master       Headphone         PCM           Front        Front Mic    Front Mic Boos    Surround        Center          LFE            Line        Line Boost       S/PDIF     S/PDIF Default<Auto-Mute Mode> Channel Mode  Loopback Mixin    Rear Mic    Rear Mic Boost │
│                                                                                                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                                               │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘


When I try to play a music file with mpv, a very silent beep can be heared. The same sound when I plug headphones in/out. Also, this sound is made during boot.
Interestingly, unlike MX Linux, Ubuntu livecd doesn't have sound too.
Back to top
View user's profile Send private message
web.user
n00b
n00b


Joined: 14 May 2021
Posts: 17

PostPosted: Sat May 15, 2021 4:56 pm    Post subject: Solved Reply with quote

Thanks everybody for help, it was my issue: I used wrong 3.5mm jack. Sorry for wasting time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum