You are not logged in.

#1 2014-03-10 20:58:51

kosgeter
Member
Registered: 2012-08-29
Posts: 66

sound volume is lower than this of windows[SOLVED]

i have a clevo laptop.the sound volume in windows is higher than that of arch .when i run

 speaker-test -c 2

speaker-test 1.0.27.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_hw.c:1741:(_snd_pcm_hw_open) Unknown field slave
Playback open error: -22,Invalid argument

i followed alsa arch wiki and i create /etc/asound.conf with the following lines

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
}

the preamp appears but is not working when i increased the preamp volume nothing happened .i also tried the hw option. what else i have to do?

Last edited by kosgeter (2014-03-14 21:08:12)

Offline

#2 2014-03-11 10:49:19

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: sound volume is lower than this of windows[SOLVED]

Did you restart the system after editing asound.conf?

Offline

#3 2014-03-11 11:22:08

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: sound volume is lower than this of windows[SOLVED]

are you sure that's the right device in

pcm.softvol {
    slave {
        pcm "dmix"
    }
}

the "dmix" part should point to the alsa device you want to use the softvol plugin for, for example "hw:0"

also, I think you need these as well

ctl.!default {
  type hw
  card 0
}
ctl.softvol {
  type hw
  card 0
}

Offline

#4 2014-03-11 14:12:12

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: sound volume is lower than this of windows[SOLVED]

~/.asoundrc takes precedence, so make sure that it does not exist or that it does not contain anything replacing what you defined in global configuration. ooo is right, if that is your whole configuration it will not work without a pcm.dmix definition.

Offline

#5 2014-03-11 16:46:28

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: sound volume is lower than this of windows[SOLVED]

@ ooo,

I am using the exact same configuration, and Pre-Amp works fine for me. (I was the one who put that information on the wiki).

Offline

#6 2014-03-11 17:55:16

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: sound volume is lower than this of windows[SOLVED]

@x33a, afaik alsa uses dmix by default on some cards that don't support hadware mixing, so it may work on such cases. That configuration passes the audio stream to device called "dmix", so there has to be such device for it to work. The ctl.* parts probably aren't necessary but I think it's still good practice to include them.

Offline

#7 2014-03-11 22:29:48

kosgeter
Member
Registered: 2012-08-29
Posts: 66

Re: sound volume is lower than this of windows[SOLVED]

asound.conf

pcm.!default {
      type hw:0
      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
}
ctl.!default {
  type hw:0	
  card 0
}
ctl.softvol {
  type hw:0
  card 0
}

also i have this error 

amixer
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_ctl_hw:0.so
amixer: Mixer attach default error: No such device or address

in home directory the .asoundrc does not exist . i use KDE.

Offline

#8 2014-03-11 23:04:51

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: sound volume is lower than this of windows[SOLVED]

How about you use:

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

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

pcm.!dmix {	type dmix;
		ipc_key 3;
		slave {	pcm "hw:SB";
			format S32_LE;
			channels 8;
			period_size 4096;
			period_time 0;
			periods 128;
			buffer_size 65536;
			rate 192000;	}	}

ctl.!default {	type hw;
		card SB; }

I just tested this, but without rebooting. Substitute SB with your card name (it is better than using number references) and change pcm.dmix according to your preferences.

Last edited by emeres (2014-03-12 03:09:46)

Offline

#9 2014-03-12 04:22:59

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: sound volume is lower than this of windows[SOLVED]

@kosgeter that should be "type hw" instead of "type hw:0" in that config. maybe you misunderstood something I wrote

This is what I had in mind and should work, assuming hw:0 is alsa device you want to use the softvol for.

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

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

ctl.!default {
    type hw
    card 0
}
ctl.softvol {
    type hw
    card 0
}

Offline

#10 2014-03-12 14:59:58

kosgeter
Member
Registered: 2012-08-29
Posts: 66

Re: sound volume is lower than this of windows[SOLVED]

asound.conf is

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

pcm.!default {	type "hw:0";
		slave.pcm "softvol";	}

pcm.!dmix {	type dmix;
		ipc_key 3;
		slave {	pcm "hw:0";
			format S32_LE;
			channels 8;
			period_size 4096;
			period_time 0;
			periods 128;
			buffer_size 65536;
			rate 192000;	}	}

ctl.!default {	type hw;0
		card 0; }

nothing happens the same problem

when i run alsamixer and then pressing f6 i found thay my sound card is 0 hda intel pch.so  i must put hw:0 ok ? i hear the sound from the speakers of the laptop i don't use external speakers. i assume that the preamp feature works only  with external speakers because the premap depicts itself with a plug.in order to tweak the sound i must use the headphones feature.i use gstream phonon .

Last edited by kosgeter (2014-03-12 15:09:32)

Offline

#11 2014-03-12 20:24:45

kosgeter
Member
Registered: 2012-08-29
Posts: 66

Re: sound volume is lower than this of windows[SOLVED]

is that strange as i mention that i have to adjust headphones volume in alsamixer or kmix in order to increase or decrease laptop volume .

Offline

#12 2014-03-12 20:31:52

kosgeter
Member
Registered: 2012-08-29
Posts: 66

Re: sound volume is lower than this of windows[SOLVED]

kosgeter wrote:

is that strange as i mention that i have to adjust headphones volume in alsamixer or kmix in order to increase or decrease laptop volume .

forget it  now i check that i can adjust volume with speakers. but the problem with preamp remains

Offline

#13 2014-03-14 09:22:00

kosgeter
Member
Registered: 2012-08-29
Posts: 66

Re: sound volume is lower than this of windows[SOLVED]

kosgeter wrote:

asound.conf is

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

pcm.!default {	type "hw:0";
		slave.pcm "softvol";	}

pcm.!dmix {	type dmix;
		ipc_key 3;
		slave {	pcm "hw:0";
			format S32_LE;
			channels 8;
			period_size 4096;
			period_time 0;
			periods 128;
			buffer_size 65536;
			rate 192000;	}	}

ctl.!default {	type hw;0
		card 0; }

nothing happens the same problem

when i run alsamixer and then pressing f6 i found thay my sound card is 0 hda intel pch.so  i must put hw:0 ok ? i hear the sound from the speakers of the laptop i don't use external speakers. i assume that the preamp feature works only  with external speakers because the premap depicts itself with a plug.in order to tweak the sound i must use the headphones feature.i use gstream phonon .

anybody has something else to suggest? is the asound.conf right?

Offline

#14 2014-03-14 10:53:41

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: sound volume is lower than this of windows[SOLVED]

did you try the config I last posted? should work as it is.

Offline

#15 2014-03-14 14:50:17

kosgeter
Member
Registered: 2012-08-29
Posts: 66

Re: sound volume is lower than this of windows[SOLVED]

ooo wrote:

did you try the config I last posted? should work as it is.

i copy paste your last post but preamp continues not working.forget it thanks for your help but this problems tends to make us loose our mind.

Offline

#16 2014-03-14 15:03:45

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: sound volume is lower than this of windows[SOLVED]

kosgeter wrote:
ooo wrote:

did you try the config I last posted? should work as it is.

i copy paste your last post but preamp continues not working.forget it thanks for your help but this problems tends to make us loose our mind.

One more thing, with the config I posted (and the config you had copied from the wiki), the software volume control doesn't work on 'Master' channel, but there should be another volume control knob named 'Pre-Amp' if you check alsamixer.

If that works you can assing the softvol to Master device too if you want, by simply naming the softvol device 'Master' in the config

Offline

#17 2014-03-14 20:33:44

kosgeter
Member
Registered: 2012-08-29
Posts: 66

Re: sound volume is lower than this of windows[SOLVED]

ooo wrote:
kosgeter wrote:
ooo wrote:

did you try the config I last posted? should work as it is.

i copy paste your last post but preamp continues not working.forget it thanks for your help but this problems tends to make us loose our mind.

One more thing, with the config I posted (and the config you had copied from the wiki), the software volume control doesn't work on 'Master' channel, but there should be another volume control knob named 'Pre-Amp' if you check alsamixer.

If that works you can assing the softvol to Master device too if you want, by simply naming the softvol device 'Master' in the config

yes i know from start i set to maximum the preamp volume control  but nothing

Offline

#18 2014-03-14 21:07:29

kosgeter
Member
Registered: 2012-08-29
Posts: 66

Re: sound volume is lower than this of windows[SOLVED]

finally i found solution i copy paste the config from wiki with the first with the plug option and i select as audio device in kmix the Default. another thing i did but i don't know that it helps the situation i run the command

 alsactl -f /var/lib/alsa/asound.state store

Offline

Board footer

Powered by FluxBB