Increasing max volume

I’m just trying to understand why the volume is low. I don’t have any trouble with vero driving my mains stereo amplifier.

One reason for low volume could be the input impedance of your speakers is low. If that was available in the specifications it might give some pointers.

The DAC Extra Gain (when it does work) will cause clipping on loud audio. An alternative for video (but not for music) is to use Volume amplification in the Audio and subtitle settings. That doesn’t cause clipping but does cause dynamic range compression which is less objectionable.

Meanwhile, I’ll see if we can get that alsamixer setting back without causing other problems.

I just wanted to say that the DAC Extra Gain is working again - I don’t really know since when because I used the volume amplification in Kodi as a workaround.

Many thanks to whoever fixed it.

2 Likes

That was @grahamh

Is there any way that settings for alsamixer would be automatically restored after reboot? I tried a few method, but no luck. I tried
sudo alsactl store

but i get an error then.

Sadly, we’ve never been able to get the ALSA store/restore function to work on Vero. It should be automatic but it had to be disabled.

It will probably have to stay that way because AML have brought some strange parameters into alsamixer that can completely bork audio if touched. They need to be re-set to default on re-boot.

Ok, what about modifying the rc.local file? I saw one post for this, but i can’t make this to work.

There should be a better way using ALSA conf files. Is it just the volume you want to fix? Can you post the output of amixer contents after a reboot then again after you’ve set the controls how you want them. I’ll see if I can remember how to do it.

Heh, yes, but now i have other problems as my raspotify device within spotify app on my phone is not visible anymore. But I don’t know why …yet.

Damn, I don’t understand this. Suddenly in my android spotify app, raspotify option where you can choose the speaker, has gone. No idea why. Yesterday it worked.

Today, I reinstall osmc, went throgh raspotify installation procedure, everything ok, but still i can’t see raspotify as speaker in spotify app.

Strange things are happening :slight_smile:

Damn, I don’t understand this. Suddenly in my android spotify app, raspotify option where you can choose the speaker, has gone. No idea why. Yesterday it worked.

Today, I reinstall osmc, went throgh raspotify installation procedure, everything ok, but still i can’t see raspotify as speaker in spotify app.

Strange things are happening :slight_smile:

UPDATE: After I rebooted my router, i got raspotify as speaker again. :slight_smile:

===============================================================================
Thx @grahamh

This is the difference:

with settings before reboot:

 amixer contents
numid=17,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=255,255
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=13,iface=MIXER,name='Lineout left N switch'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'None'
  ; Item #1 'LOLN_SEL_DACL_INV'
  ; Item #2 'LOLN_SEL_DACL'
  : values=1
numid=12,iface=MIXER,name='Lineout left P switch'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'None'
  ; Item #1 'LOLP_SEL_DACL'
  ; Item #2 'LOLP_SEL_DACL_INV'
  : values=1
numid=15,iface=MIXER,name='Lineout right N switch'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'None'
  ; Item #1 'LORN_SEL_DACR_INV'
  ; Item #2 'LORN_SEL_DACR'
  : values=1
numid=14,iface=MIXER,name='Lineout right P switch'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'None'
  ; Item #1 'LORP_SEL_DACR'
  ; Item #2 'LORP_SEL_DACR_INV'
  : values=1
numid=8,iface=MIXER,name='Audio hdmi-out channel mask'
  ; type=ENUMERATED,access=rw------,values=1,items=8
  ; Item #0 'SPDIF'
  ; Item #1 '2CH_I2S_0/1'
  ; Item #2 '2CH_I2S_2/3'
  ; Item #3 '2CH_I2S_4/5'
  ; Item #4 '2CH_I2S_6/7'
  ; Item #5 '4CH_I2S'
  ; Item #6 '6CH_I2S'
  ; Item #7 '8CH_I2S'
  : values=0
numid=7,iface=MIXER,name='Audio hdmi-out mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=3,iface=MIXER,name='Audio i2s mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=6,iface=MIXER,name='Audio spdif format'
  ; type=ENUMERATED,access=rw------,values=1,items=12
  ; Item #0 '2 CH PCM'
  ; Item #1 'DTS RAW Mode'
  ; Item #2 'Dolby Digital'
  ; Item #3 'DTS'
  ; Item #4 'Dolby Digital Plus'
  ; Item #5 'DTS-HD'
  ; Item #6 'Multi-channel LPCM'
  ; Item #7 'Dolby TrueHD'
  ; Item #8 'DTS-HD MA'
  ; Item #9 'HIGH SR Stereo LPCM'
  ; Item #10 'Dolby Digital(Layout B)'
  ; Item #11 'One Bit Audio'
  : values=0
numid=5,iface=MIXER,name='Audio spdif mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=1,iface=MIXER,name='DAC Digital Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=255,255
  | dBscale-min=-952.50dB,step=3.75dB,mute=1
numid=2,iface=MIXER,name='DAC Extra Digital Gain'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 '0dB'
  ; Item #1 '6dB'
  ; Item #2 '12dB'
  ; Item #3 '18dB'
  : values=2
numid=11,iface=MIXER,name='Ext Spk Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=4,iface=MIXER,name='Output Swap'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'L/R'
  ; Item #1 'L/L'
  ; Item #2 'R/R'
  ; Item #3 'R/L'
  : values=64512
numid=10,iface=MIXER,name='SPDIF CLK Fine Setting'
  ; type=INTEGER,access=rw------,values=1,min=0,max=2000000,step=0
  : values=11289578
numid=9,iface=MIXER,name='TDM MCLK Fine Setting'
  ; type=INTEGER,access=rw------,values=1,min=0,max=2000000,step=0
  : values=11289578
numid=16,iface=PCM,name='Playback Channel Map'
  ; type=INTEGER,access=rw---R--,values=8,min=0,max=36,step=0

after reboot

amixer contents
numid=17,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=255,255
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=13,iface=MIXER,name='Lineout left N switch'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'None'
  ; Item #1 'LOLN_SEL_DACL_INV'
  ; Item #2 'LOLN_SEL_DACL'
  : values=1
numid=12,iface=MIXER,name='Lineout left P switch'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'None'
  ; Item #1 'LOLP_SEL_DACL'
  ; Item #2 'LOLP_SEL_DACL_INV'
  : values=1
numid=15,iface=MIXER,name='Lineout right N switch'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'None'
  ; Item #1 'LORN_SEL_DACR_INV'
  ; Item #2 'LORN_SEL_DACR'
  : values=1
numid=14,iface=MIXER,name='Lineout right P switch'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'None'
  ; Item #1 'LORP_SEL_DACR'
  ; Item #2 'LORP_SEL_DACR_INV'
  : values=1
numid=8,iface=MIXER,name='Audio hdmi-out channel mask'
  ; type=ENUMERATED,access=rw------,values=1,items=8
  ; Item #0 'SPDIF'
  ; Item #1 '2CH_I2S_0/1'
  ; Item #2 '2CH_I2S_2/3'
  ; Item #3 '2CH_I2S_4/5'
  ; Item #4 '2CH_I2S_6/7'
  ; Item #5 '4CH_I2S'
  ; Item #6 '6CH_I2S'
  ; Item #7 '8CH_I2S'
  : values=0
numid=7,iface=MIXER,name='Audio hdmi-out mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=3,iface=MIXER,name='Audio i2s mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=6,iface=MIXER,name='Audio spdif format'
  ; type=ENUMERATED,access=rw------,values=1,items=12
  ; Item #0 '2 CH PCM'
  ; Item #1 'DTS RAW Mode'
  ; Item #2 'Dolby Digital'
  ; Item #3 'DTS'
  ; Item #4 'Dolby Digital Plus'
  ; Item #5 'DTS-HD'
  ; Item #6 'Multi-channel LPCM'
  ; Item #7 'Dolby TrueHD'
  ; Item #8 'DTS-HD MA'
  ; Item #9 'HIGH SR Stereo LPCM'
  ; Item #10 'Dolby Digital(Layout B)'
  ; Item #11 'One Bit Audio'
  : values=0
numid=5,iface=MIXER,name='Audio spdif mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=1,iface=MIXER,name='DAC Digital Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=251,251
  | dBscale-min=-952.50dB,step=3.75dB,mute=1
numid=2,iface=MIXER,name='DAC Extra Digital Gain'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 '0dB'
  ; Item #1 '6dB'
  ; Item #2 '12dB'
  ; Item #3 '18dB'
  : values=0
numid=11,iface=MIXER,name='Ext Spk Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=4,iface=MIXER,name='Output Swap'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'L/R'
  ; Item #1 'L/L'
  ; Item #2 'R/R'
  ; Item #3 'R/L'
  : values=64512
numid=10,iface=MIXER,name='SPDIF CLK Fine Setting'
  ; type=INTEGER,access=rw------,values=1,min=0,max=2000000,step=0
  : values=11289578
numid=9,iface=MIXER,name='TDM MCLK Fine Setting'
  ; type=INTEGER,access=rw------,values=1,min=0,max=2000000,step=0
  : values=11289578
numid=16,iface=PCM,name='Playback Channel Map'
  ; type=INTEGER,access=rw---R--,values=8,min=0,max=36,step=0

Try this:

cd /usr/share/alsa/init
sudo mkdir postinit
cd postinit
sudo nano DACvolume.conf

Paste this in:

CTL{reset}="mixer"
CTL{name}="DAC Digital Playback Volume",CTL{values}="100%"
CTL{name}="DAC Extra Digital Gain",CTL{values}="2"
RESULT="true", EXIT="return"

Save the file and alsactl restore (ignore the error messages) then check with alsamixer.

I’ve no idea whether this is the best/right way to write an init file but it works here :slight_smile:

BTW a bug which crashes ALSA if you run amixer contents seems to have come back. So avoid that or you will need to reboot.

1 Like

Thank you👍

1 Like

A little late reply but better now then never :slight_smile: Somehow, this code above didn’t work, but I managed to solve like this in rc.local file:
amixer -c 0 sset ‘DAC Extra Digital Gain’ 6dB
amixer -c 0 sset ‘DAC Digital’ 100%

Thanks

1 Like