editamos el archivo de configuración de ALSA (sudo gedit /etc/modprobe.d/alsa-base.conf) y añadimos estas líneas al final:
-----PARA LAPTOPS HP----------------
options snd-pcsp index=-2
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=hp-m4
options snd-hda-intel enable_msi=1
Vamos a Sistema → Preferencias → Sonido y cambiamos las 4 primeras opciones a ALSA.
reiniciamos.
A mi funciono instalando alsa-driver-linuxant que lo puedes descargar de http://www.linuxant.com/alsa-driver/
si tienes una tarjeta chipset conexant puedes instalar el modem con hsfmodem que lo puedes bajar de
http://www.linuxant.com/drivers/hsf/
sigue los pasos y listo tendras trabajando el modem y la tarjeta de audio
escribe en consola
alsamixer y ajusta los valores a como tu prefieras
con la tecla m quitas lo muteado
Ok, seguro tendras problemas con alsa al intentar reproducir sonido en varias aplicaiones eso lo solucionaremos con lo siguiente.
primero desinstalar pulseaudio
sudo apt-get remove pulseaudio
Sólo es necesario activar la mezcla por software dmix sobre la salida de audio. Simplemente lléva este código a tu .asoundrc.
# .asoundrc - Personal configuration file for ALSA
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# See the file COPYING for details.
pcm.ossmix {
type dmix
ipc_key 1021 # must be unique!
ipc_perm 0660 # sound for everybody (at least in your group)
#ipc_key_add_uid false # let multiple users share
slave {
pcm "hw:0,0"
period_time 0
period_size 1024 # must be power of 2
buffer_size 8192 # dito
#format "S32_LE"
#periods 128 # dito
#rate 8000 # with rate 8000 you *will* hear
} # if ossmix is used
# bindings are cool. This says, that only the first
# two channels are to be used by dmix, which is enough for
# (most) oss apps and also lets multichannel chios work
# much faster:
bindings {
0 0 # from 0 => to 0
1 1 # from 1 => to 1
}
}
# Redirect to ossmix
pcm.!default {
type plug
slave.pcm "ossmix" # use our new PCM here
}
# Redirect to ossmix
pcm.dsp {
type plug
slave.pcm "ossmix" # use our new PCM here
}
# mixer like above
ctl.mixer {
type hw
card 0
}
# Local Variables:
# mode: conf
# End:
Ahora la salida llamada default, la que por omisión utilizan todas las aplicaciones compatibles con ALSA para reproducir audio, implemente mezcla por software desde todas las aplicaciones que la están utilizando. En mi máquina, así, es posible reproducir simultáneamente audio desde clips en YouTube vía Flash en Firefox, Spotify, mplayer, Audacious, Skype y cualquier otra.
Sólo dos avisos. Si alguna aplicación utiliza explícitamente la salida hw:0,0 todo deja de funcionar. La mezcla por software queda configurada para la salida llamada default y no para ninguna otra. Por otra parte, de nuevo, si cualquier aplicación consigue reproducir con éxito audio utilizando la emulación OSS, la cosa de nuevo deja de funcionar.
Por cierto este archivo por omision no existe asi que debes crearlo en /etc/asoundrc
Y listo tendras audio en todas tus aplicaciones.
En la siguiente entrada veremos como controlar alsa ya que desinstalamos pulseaudio
No hay comentarios:
Publicar un comentario