Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Missing alsa kernel option
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 711

PostPosted: Thu Apr 09, 2020 10:04 pm    Post subject: Missing alsa kernel option Reply with quote

Hello, today i would like to increase pre-allocated frame buffer for alsa because i use wii emulator dolphin, and with some game, i have lag sound. But now, in the standard path, this option is missing. Where is now this option into the gentoo-kernel ?

Code:
Device Drivers  --->
    <*> Sound card support  --->
        <*> Advanced Linux Sound Architecture  --->
            (2048) Pre-allocated buffer size for HD-audio driver
(the old path)

Have you got any advice to improve sound performance ? (pulseaudio performance)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Apr 09, 2020 10:14 pm    Post subject: Reply with quote

Fulgurance,

Its changed.
Code:
  ┌──────────── Pre-allocated buffer size for HD-audio driver ─────────────┐
  │ CONFIG_SND_HDA_PREALLOC_SIZE:                                          │ 
  │                                                                        │ 
  │ Specifies the default pre-allocated buffer-size in kB for the          │ 
  │ HD-audio driver.  A larger buffer (e.g. 2048) is preferred             │ 
  │ for systems using PulseAudio.  The default 64 is chosen just           │ 
  │ for compatibility reasons.                                             │ 
  │ On x86 systems, the default is zero as we need no preallocation.       │ 
  │                                                                        │ 
  │ Note that the pre-allocation size can be changed dynamically           │ 
  │ via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.          │ 
  │                                                                        │ 
  │ Symbol: SND_HDA_PREALLOC_SIZE [=0]                                     │ 
  │ Type  : integer                                                        │ 
  │ Range : [0 32768]                                                      │ 
  │ Defined at sound/hda/Kconfig:23                                        │ 
  │   Prompt: Pre-allocated buffer size for HD-audio driver                │ 
  │   Depends on: SOUND [=y] && !UML && SND [=m]                           │ 
  │   Visible if: SOUND [=y] && !UML && SND [=m] && !SND_DMA_SGBUF [=y]    │ 
  │   Location:                                                            │ 
  │     -> Device Drivers                                                  │ 
  │       -> Sound card support (SOUND [=y])                               │ 
  │         -> Advanced Linux Sound Architecture (SND [=m])                │ 
  │                                                                        │ 


See the Visible if:

and it looks like
Code:
  │ │    [*]   PCI sound devices  --->                                   │ │ 
  │ │          HD-Audio  --->                                            │ │ 
  │ │    (0)   Pre-allocated buffer size for HD-audio driver             │ │ 

_________________
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
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 711

PostPosted: Thu Apr 09, 2020 10:45 pm    Post subject: Reply with quote

Sorry but i don't found UML and SND_DMA_SGBUF. When i launch search, no indication
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15324

PostPosted: Fri Apr 10, 2020 12:58 am    Post subject: Reply with quote

What did you try? If you search for SND_HDA_PREALLOC_SIZE, what happens?
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 711

PostPosted: Fri Apr 10, 2020 10:38 am    Post subject: Reply with quote

I have this:

Code:
Symbol: SND_HDA_PREALLOC_SIZE [=0]                                      │ 
  │ Type  : integer                                                         │ 
  │ Range : [0 32768]                                                       │ 
  │ Defined at sound/hda/Kconfig:23                                         │ 
  │   Prompt: Pre-allocated buffer size for HD-audio driver                 │ 
  │   Depends on: SOUND [=y] && !UML && SND [=y]                            │ 
  │   Visible if: SOUND [=y] && !UML && SND [=y] && !SND_DMA_SGBUF [=y]     │ 
  │   Location:                                                             │ 
  │     -> Device Drivers                                                   │ 
  │       -> Sound card support (SOUND [=y])                                │ 
  │ (1)     -> Advanced Linux Sound Architecture (SND [=y])


And this option isn't visible actually
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Apr 10, 2020 5:02 pm    Post subject: Reply with quote

Fulgurance,

Code:
Visible if: SOUND [=y] && !UML && SND [=y] && !SND_DMA_SGBUF [=y]


!SND_DMA_SGBUF [=y] is not in the correct state.

Code:
 Symbol: SND_DMA_SGBUF [=y]                                              │ 
  │ Type  : bool                                                            │ 
  │ Defined at sound/core/Kconfig:193                                       │ 
  │   Depends on: SOUND [=y] && !UML && SND [=m] && X86 [=y]                │ 


You don't get to fiddle with X86. That's set by ARCH, so SND_DMA_SGBUF is always on.

If you turn off SOUND or SND, the question becomes academic, as you won't have sound anyway.

Reread the help
Code:
  │ On x86 systems, the default is zero as we need no preallocation.       │
  │                                                                        │
  │ Note that the pre-allocation size can be changed dynamically           │
  │ via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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