You are not logged in.
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 argumenti 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
Did you restart the system after editing asound.conf?
Offline
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
~/.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
@ 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
@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
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 addressin home directory the .asoundrc does not exist . i use KDE.
Offline
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
@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
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
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
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
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
did you try the config I last posted? should work as it is.
Offline
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
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
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
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 storeOffline