Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

[Solved] Realtek ALC897 No sound with ALSA installed

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
web.user
n00b
n00b
Posts: 17
Joined: Fri May 14, 2021 5:34 pm
Contact:
Contact web.user
Website

[Solved] Realtek ALC897 No sound with ALSA installed

  • Quote

Post by web.user » Fri May 14, 2021 6:29 pm

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: Select all

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: Select all

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: Select all

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.
Top
sdauth
l33t
l33t
User avatar
Posts: 770
Joined: Wed Sep 19, 2018 2:48 am
Location: Ásgarðr

  • Quote

Post by sdauth » Fri May 14, 2021 6:43 pm

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
Top
web.user
n00b
n00b
Posts: 17
Joined: Fri May 14, 2021 5:34 pm
Contact:
Contact web.user
Website

  • Quote

Post by web.user » Fri May 14, 2021 6:55 pm

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
Top
web.user
n00b
n00b
Posts: 17
Joined: Fri May 14, 2021 5:34 pm
Contact:
Contact web.user
Website

  • Quote

Post by web.user » Sat May 15, 2021 9:56 am

When I cat /proc/asound/timers with mpv running, it shows this:

Code: Select all

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
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56083
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat May 15, 2021 11:06 am

web.user,

What does

Code: Select all

/proc/asound/devices
contain?

What does

Code: Select all

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.
Top
web.user
n00b
n00b
Posts: 17
Joined: Fri May 14, 2021 5:34 pm
Contact:
Contact web.user
Website

  • Quote

Post by web.user » Sat May 15, 2021 3:30 pm

NeddySeagoon, thanks for reply!
My /proc/asound/devices:

Code: Select all

  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: Select all

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: Select all

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 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.
Top
web.user
n00b
n00b
Posts: 17
Joined: Fri May 14, 2021 5:34 pm
Contact:
Contact web.user
Website

Solved

  • Quote

Post by web.user » Sat May 15, 2021 4:56 pm

Thanks everybody for help, it was my issue: I used wrong 3.5mm jack. Sorry for wasting time.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic