View previous topic :: View next topic |
Author |
Message |
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 12:30 pm Post subject: alsa pulseaudio [solved by xavier miller] |
|
|
hello
I have issue with sound, my laptop has inner speakers.
Code: | #lspci
audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03) |
DMESG
at the moment I have no sound on the web, with midori and vivaldi.
i setup pulseaudio in mate.
i added conexant in kernel as I suppose my driver needs it for inner speakers.
i also tested with usb speakers.
i dont know how to fix that.
thanks
Last edited by pakk on Tue Jan 24, 2017 9:13 pm; edited 2 times in total |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 12:32 pm Post subject: |
|
|
Hi!
Did you also enable Realtek/Intel HD Audio in the kernel ? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 12:33 pm Post subject: |
|
|
xaviermiller wrote: | Hi!
Did you also enable Realtek/Intel HD Audio in the kernel ? |
nope, i thought of that. let me compile again... |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 12:47 pm Post subject: |
|
|
ok done but no sound.
in MATE, in sound settings: materiel: it said: pulseaudio. it should be intel hd or sap usually ? |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 1:04 pm Post subject: |
|
|
I don't use pulseaudio, so I cannot help you with it.
But can you grep dmesg on "snd" ? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 1:24 pm Post subject: |
|
|
xaviermiller wrote: | I don't use pulseaudio, so I cannot help you with it.
But can you grep dmesg on "snd" ? |
I started to setup alsa but i could not install alsa-firmware, only alsa-lib is installed
so i emerged pulseaudio
Code: |
[ 10.795096] Modules linked in: wl(PO) cfg80211 snd_pcsp
[ 10.982084] Modules linked in: wl(PO) cfg80211 snd_pcsp
[ 11.082083] Modules linked in: wl(PO) cfg80211 snd_pcsp
[ 93.732060] Modules linked in: wl(PO) cfg80211 snd_pcsp
[ 93.919133] Modules linked in: wl(PO) cfg80211 snd_pcsp
[ 94.019088] Modules linked in: wl(PO) cfg80211 snd_pcsp
[ 154.871877] usbcore: registered new interface driver snd-usb-audio |
Code: | # cat /sys/class/sound/card*/id
Intel
pcsp
|
Code: | # aplay --list-devices
**** Liste des Périphériques Matériels PLAYBACK ****
XDG_RUNTIME_DIR (/var/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
carte 1: pcsp [pcsp], périphérique 0: pcspeaker [pcsp]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
|
Code: |
#speaker-test -Dsurroundaudio -c 6
speaker-test 1.1.2
Le périphérique de lecture est surroundaudio
Les paramètres du flux sont 48000Hz, S16_LE, 6 canaux
Utilisation de 16 octaves de 'pink noise'
XDG_RUNTIME_DIR (/var/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/pcm/pcm.c:2450:(snd_pcm_open_noupdate) Unknown PCM surroundaudio
Erreur d'ouverture à la lecture: -2,Aucun fichier ou dossier de ce type |
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 1:38 pm Post subject: |
|
|
It seems the module is not loaded. Did you restart the system?
Can you also give the kernel config (grep SND /usr/src/linux/.config) ?
I suggest you check a maximum of options in SND_HDA_* to be sure you will get the right module. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 2:28 pm Post subject: |
|
|
xaviermiller wrote: | It seems the module is not loaded. Did you restart the system?
Can you also give the kernel config (grep SND /usr/src/linux/.config) ?
I suggest you check a maximum of options in SND_HDA_* to be sure you will get the right module. |
Code: | # cat | grep SND /usr/src/linux/.config
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=m
CONFIG_SND_JACK=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_PCM_TIMER=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_HRTIMER=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_PROC_FS=y
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_RAWMIDI_SEQ=m
# CONFIG_SND_OPL3_LIB_SEQ is not set
# CONFIG_SND_OPL4_LIB_SEQ is not set
# CONFIG_SND_SBAWE_SEQ is not set
# CONFIG_SND_EMU10K1_SEQ is not set
CONFIG_SND_DRIVERS=y
CONFIG_SND_PCSP=m
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_ALOOP is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
CONFIG_SND_PCI=y
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ASIHPI is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AW2 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_OXYGEN is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CTXFI is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_INDIGOIOX is not set
# CONFIG_SND_INDIGODJX is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_LOLA is not set
# CONFIG_SND_LX6464ES is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SE6X is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set
CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_HWDEP=y
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
CONFIG_SND_HDA_CODEC_REALTEK=m
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
CONFIG_SND_HDA_CODEC_CONEXANT=m
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_PREALLOC_SIZE=64
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=m
# CONFIG_SND_USB_UA101 is not set
# CONFIG_SND_USB_USX2Y is not set
# CONFIG_SND_USB_CAIAQ is not set
# CONFIG_SND_USB_US122L is not set
# CONFIG_SND_USB_6FIRE is not set
# CONFIG_SND_USB_HIFACE is not set
# CONFIG_SND_BCD2000 is not set
# CONFIG_SND_USB_POD is not set
# CONFIG_SND_USB_PODHD is not set
# CONFIG_SND_USB_TONEPORT is not set
# CONFIG_SND_USB_VARIAX is not set
CONFIG_SND_PCMCIA=y
# CONFIG_SND_VXPOCKET is not set
# CONFIG_SND_PDAUDIOCF is not set
# CONFIG_SND_SOC is not set |
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 6:13 pm Post subject: |
|
|
Did you enabled all Intel HDA options?
Code: | <M> HD Audio PCI
[*] Build hwdep interface for HD-audio driver
-*- Allow dynamic codec reconfiguration
[*] Support digital beep via input layer
(1) Digital beep registration mode (0=off, 1=on)
[*] Support initialization patch loading for HD-audio
<M> Build Realtek HD-audio codec support
<M> Build Analog Device HD-audio codec support
<M> Build IDT/Sigmatel HD-audio codec support
<M> Build VIA HD-audio codec support
<M> Build HDMI/DisplayPort HD-audio codec support
<M> Build Cirrus Logic codec support
<M> Build Conexant HD-audio codec support
<M> Build Creative CA0110-IBG codec support
<M> Build Creative CA0132 codec support
[*] Support new DSP code for CA0132 codec
<M> Build C-Media HD-audio codec support
<M> Build Silicon Labs 3054 HD-modem codec support
-M- Enable generic HD-audio codec parser
(0) Default time-out for HD-audio power-save mode
|
If your sound chip is recognized, it sould be like so during the startup:
Code: | # dmesg | grep snd
[ 5.397154] snd_hda_intel: probe of 0000:00:03.0 failed with error -2
[ 5.418848] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3239: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 5.418851] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 5.418853] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 5.418855] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 5.418856] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 5.418859] snd_hda_codec_realtek hdaudioC0D0: Mic=0x19
[ 5.418860] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x12 |
_________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 7:12 pm Post subject: |
|
|
it seems to only use conexant, not realtek
Code: | $ dmesg |grep snd
[ 0.645935] usbcore: registered new interface driver snd-usb-audio
[ 7.568394] snd_hda_codec_conexant hdaudioC0D0: CX20549 (Venice): BIOS auto-probing.
[ 7.569070] snd_hda_codec_conexant hdaudioC0D0: autoconfig for CX20549 (Venice): line_outs=1 (0x10/0x0/0x0/0x0/0x0) type:speaker
[ 7.569080] snd_hda_codec_conexant hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 7.569085] snd_hda_codec_conexant hdaudioC0D0: hp_outs=1 (0x11/0x0/0x0/0x0/0x0)
[ 7.569088] snd_hda_codec_conexant hdaudioC0D0: mono: mono_out=0x0
[ 7.569092] snd_hda_codec_conexant hdaudioC0D0: inputs:
[ 7.569096] snd_hda_codec_conexant hdaudioC0D0: Internal Mic=0x14
[ 7.569101] snd_hda_codec_conexant hdaudioC0D0: Mic=0x12
[ 7.570694] snd_hda_codec_conexant hdaudioC0D0: Enable sync_write for stable communication
[ 10.795056] Modules linked in: wl(PO) cfg80211 snd_hda_codec_conexant snd_hda_codec_generic snd_pcsp snd_hda_intel snd_hda_codec snd_hda_core
[ 10.982083] Modules linked in: wl(PO) cfg80211 snd_hda_codec_conexant snd_hda_codec_generic snd_pcsp snd_hda_intel snd_hda_codec snd_hda_core
[ 11.082062] Modules linked in: wl(PO) cfg80211 snd_hda_codec_conexant snd_hda_codec_generic snd_pcsp snd_hda_intel snd_hda_codec snd_hda_core
[ 88.414063] Modules linked in: wl(PO) cfg80211 snd_hda_codec_conexant snd_hda_codec_generic snd_pcsp snd_hda_intel snd_hda_codec snd_hda_core
[ 88.601090] Modules linked in: wl(PO) cfg80211 snd_hda_codec_conexant snd_hda_codec_generic snd_pcsp snd_hda_intel snd_hda_codec snd_hda_core
[ 88.701107] Modules linked in: wl(PO) cfg80211 snd_hda_codec_conexant snd_hda_codec_generic snd_pcsp snd_hda_intel snd_hda_codec snd_hda_core |
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 7:21 pm Post subject: |
|
|
So the driver is loaded, this is good ! It seems you have a Connexant chip/
Do you see the contents of /proc/asound/cards ?
It can be the first card is not the HD Audio but something else. In that case, you need to reorder that with /etc/modprobe.d/alsa_base.conf
I have this one at home (Thinkpad):
Code: | options snd slots=snd-hda-intel,snd-pcsp,snd-usb-audio,thinkpad-acpi |
Option #2: you have an Intel graphics card, and the HDMI output comes first. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 7:48 pm Post subject: |
|
|
xaviermiller wrote: | So the driver is loaded, this is good ! It seems you have a Connexant chip/
Do you see the contents of /proc/asound/cards ?
It can be the first card is not the HD Audio but something else. In that case, you need to reorder that with /etc/modprobe.d/alsa_base.conf
I have this one at home (Thinkpad):
Code: | options snd slots=snd-hda-intel,snd-pcsp,snd-usb-audio,thinkpad-acpi |
Option #2: you have an Intel graphics card, and the HDMI output comes first. |
Code: | $ cat cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0x92400000 irq 27 |
no alsa_base.conf but alsa.conf
Code: | cat alsa.conf
# Alsa kernel modules' configuration file.
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=1
|
i have physically: 1.inner speaker altac 2.usb speakers out 3.jack plug for headphones, no hdmi |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 8:02 pm Post subject: |
|
|
The ALSA part seems OK for me.
Can you emerge alsa-utils in order to have alsamixer and aplay?
Then run alsamixer and unmute the master output (with the M key), PCM, Speaker, Headphone, adjust the volume and try to play an audio file
Code: | aplay /usr/share/sounds/alsa/Front_Center.wav |
_________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 8:05 pm Post subject: |
|
|
xaviermiller wrote: | The ALSA part seems OK for me.
Can you emerge alsa-utils in order to have alsamixer and aplay?
Then unmute the master output (with the M key), PCM, Speaker, Headphone, adjust the volume and try to play an audio file
Code: | aplay /usr/share/sounds/alsa/Front_Center.wav |
|
ok it works: i did
Quote: | #/etct/init.d/alsasound start |
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 8:10 pm Post subject: |
|
|
Super !
then finish your set-up:
Code: | /etc/init.d/alsasound save
rc-update add alsasound |
It is up to you to see if you need pulseaudio, most applications support ALSA (check the alsa, sound, pulseaudio USE flags) _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 8:16 pm Post subject: |
|
|
xaviermiller wrote: | Super !
then finish your set-up:
Code: | /etc/init.d/alsasound save
rc-update add alsasound |
It is up to you to see if you need pulseaudio, most applications support ALSA (check the alsa, sound, pulseaudio USE flags) |
well it works only when I start mate in root: in that case sound settings say: hda intel and sound is ok
when i start mate in user mode
sound settings say: pulseaudio and in that case: no sound
do you I have to set user in audio group or unmerge pulseaudio ? |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 8:40 pm Post subject: |
|
|
Is your user in the audio group?
You need to add it (and check also video, plugdev, cdrom & co) _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 8:55 pm Post subject: |
|
|
xaviermiller wrote: | Is your user in the audio group?
You need to add it (and check also video, plugdev, cdrom & co) |
now it is and it works, except usb speakers, but I guess it is a problem of driver to add in kernel |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 9:02 pm Post subject: |
|
|
Yes, you need to add the support for USB sound (in the ALSA section) _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Tue Jan 24, 2017 9:12 pm Post subject: |
|
|
xaviermiller wrote: | Yes, you need to add the support for USB sound (in the ALSA section) |
ok, im gonna study that part, thanks |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 24, 2017 9:15 pm Post subject: |
|
|
Hey, don't need to have my name in the title, just say "solved" _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
|