Low volume. Alsa - Pre-Amp config

a very small Live CD shaped to look and act like Puppy Linux.


Moderator: fredx181

Post Reply
dcung
Posts: 480
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 59 times
Been thanked: 69 times

Low volume. Alsa - Pre-Amp config

Post by dcung »

I have seen @dancytron posting before.
viewtopic.php?p=63912#p63912

I thought to test it since I have some laptops that have this issue.

I created /etc/asound.conf

Code: Select all

pcm.!default {
      type plug
      slave.pcm "softvol"
  }

  pcm.softvol {
      type softvol
      slave {
          pcm "dmix"
      }
      control {
          name "Pre-Amp"
          card 0
      }
      min_dB -5.0
      max_dB 20.0
      resolution 6
  }

I could not get Pre-Amp setting to show up.

2024-12-14-124141_1235x590_scrot.png
2024-12-14-124141_1235x590_scrot.png (184.7 KiB) Viewed 566 times

.
.
.
https://alien.slackbook.org/blog/adding ... nd-levels/
I read the link and also tried what's suggested there, on different laptops with fresh Bookworm frugal install.
i.e swap 'plug' with 'hw' etc.
But none showed Pre-Amp setting. I reboot with each config changes just to be sure.

What did I miss?

User avatar
Trapster
Posts: 192
Joined: Sat Aug 01, 2020 7:44 pm
Location: Texas
Has thanked: 1 time
Been thanked: 58 times

Re: Low volume. Alsa - Pre-Amp config

Post by Trapster »

This is my /etc/asound.conf:

Code: Select all

# ***** Defaults *******************************************************

# Audio card/chip and device to use and control
# In most cases these settings should remain commented (#)
# When commented, card and device 0 are usually automatically selected
# When uncommented, the item corresponding to the number is selected
#defaults.pcm.card 0
#defaults.pcm.device 0
#defaults.ctl.card 0



# ***** Reset **********************************************************

# override the existing definition of the default device 
pcm.!default 
{
   type plug
  
   # point output to the equalizer device
   slave.pcm plugequal
}



# ***** Equalizer ******************************************************

# set up the control interface of the equalizer device
ctl.equalizer
{
   type equal
}


# set up the equalizer device
pcm.plugequal
{
   type equal
  
   # point output to device named preamp
   slave.pcm  "plug:preamp"
}



# ***** Pre-Amp ********************************************************

# set up the preamp device
pcm.preamp 
{
   type softvol

   # name of slider control to display in alsamixer interface
   control.name Pre-Amp
   
   # minimum dB when slider is at 0%
   min_dB -5.0
   
   # maximum dB when slider is at 100%
   max_dB 40.0
   
   # point output to device named duplex
   slave.pcm "duplex"
}
User avatar
fredx181
Posts: 3205
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 395 times
Been thanked: 1378 times
Contact:

Re: Low volume. Alsa - Pre-Amp config

Post by fredx181 »

dcung wrote: Sat Dec 14, 2024 1:58 am

I have seen @dancytron posting before.
viewtopic.php?p=63912#p63912

I thought to test it since I have some laptops that have this issue.

I created /etc/asound.conf

Code: Select all

pcm.!default {
      type plug
      slave.pcm "softvol"
  }

  pcm.softvol {
      type softvol
      slave {
          pcm "dmix"
      }
      control {
          name "Pre-Amp"
          card 0
      }
      min_dB -5.0
      max_dB 20.0
      resolution 6
  }

I could not get Pre-Amp setting to show up.

But none showed Pre-Amp setting. I reboot with each config changes just to be sure.

What did I miss?

Tried your above asound.conf and initially didn't work for me either (also not after reboot), but later I found that playing some sound for a few seconds and then open alsamixer made it appear for me.
Strange though that a reboot or alsa restart didn't help. :?:

2024-12-14_18-16-31.png
2024-12-14_18-16-31.png (81.51 KiB) Viewed 498 times
dcung
Posts: 480
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 59 times
Been thanked: 69 times

Re: Low volume. Alsa - Pre-Amp config

Post by dcung »

fredx181 wrote: Sat Dec 14, 2024 5:17 pm

Tried your above asound.conf and initially didn't work for me either (also not after reboot), but later I found that playing some sound for a few seconds and then open alsamixer made it appear for me.
Strange though that a reboot or alsa restart didn't help. :?:

Oh yes...I played some sound....and you're right...it shows up afterward...
Strange indeed....(but at least now it shows up).

Edit:
But how come it works for dancytron & soniabu...right away? :?:

Last edited by dcung on Sat Dec 14, 2024 5:43 pm, edited 1 time in total.
dcung
Posts: 480
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 59 times
Been thanked: 69 times

Re: Low volume. Alsa - Pre-Amp config

Post by dcung »

Trapster wrote: Sat Dec 14, 2024 2:40 pm

This is my /etc/asound.conf:

I tried yours, and got this
ALSA error: snd_pcm_open failed: No such device or address.

User avatar
fredx181
Posts: 3205
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 395 times
Been thanked: 1378 times
Contact:

Re: Low volume. Alsa - Pre-Amp config

Post by fredx181 »

dcung wrote: Sat Dec 14, 2024 5:36 pm

Edit:
But how come it works for dancytron & soniabu...right away? :?:

How do you know then if it worked 'right away' ?
But perhaps nowadays something is missing in the way alsa is setup (that it doesn't work right away), don't know what though.

dcung
Posts: 480
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 59 times
Been thanked: 69 times

Re: Low volume. Alsa - Pre-Amp config

Post by dcung »

fredx181 wrote: Sat Dec 14, 2024 5:58 pm
dcung wrote: Sat Dec 14, 2024 5:36 pm

Edit:
But how come it works for dancytron & soniabu...right away? :?:

How do you know then if it worked 'right away' ?
But perhaps nowadays something is missing in the way alsa is setup (that it doesn't work right away), don't know what though.

:lol: Assumption....(ie. mother of all fxxx up...my bad).
Need @dancytron to confirm/deny...

User avatar
wizard
Posts: 2037
Joined: Sun Aug 09, 2020 7:50 pm
Location: Oklahoma, USA
Has thanked: 2778 times
Been thanked: 722 times

Re: Low volume. Alsa - Pre-Amp config

Post by wizard »

@dcung

Have done this fix on many Pups, think it may work on Dogs that use alsa too.

viewtopic.php?t=7896

wizard

Big pile of OLD computers

dancytron
Posts: 743
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 539 times
Been thanked: 224 times

Re: Low volume. Alsa - Pre-Amp config

Post by dancytron »

dcung wrote: Sat Dec 14, 2024 6:02 pm
fredx181 wrote: Sat Dec 14, 2024 5:58 pm
dcung wrote: Sat Dec 14, 2024 5:36 pm

Edit:
But how come it works for dancytron & soniabu...right away? :?:

How do you know then if it worked 'right away' ?
But perhaps nowadays something is missing in the way alsa is setup (that it doesn't work right away), don't know what though.

:lol: Assumption....(ie. mother of all fxxx up...my bad).
Need @dancytron to confirm/deny...

I don't remember whether it required a reboot or not.

The original link said:

Then, save the file and reboot your computer (you could also try running “/etc/rc.d/rc.alsa restart” but I can not guarantee that that will re-initialize ALSA correctly).

https://alien.slackbook.org/blog/adding ... nd-levels/

Post Reply

Return to “DebianDogs”