Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound issues, multimedia backend missing, no sound in Chrome
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 13

PostPosted: Mon Nov 18, 2019 7:29 pm    Post subject: Sound issues, multimedia backend missing, no sound in Chrome Reply with quote

Hi guys,

I installed Gentoo after coming from Funtoo.

Just recognized that VLC and Chrome are not able to play audio at the same time.
When looking into that I saw that there is no option "Multimedia" in systemsettings where I could change profiles or the backend.

Further when I play a video from Youtube I can't hear anything and in the plasma mixer (??) there is no Chrome shown as playback application.
As an output device there is "Family 17h Audio Controller" set.

I have KMix installed where Chrome is visible as a playback application next to VLC. But with VLC playing audio there is no sound from Chrome
even if I turn up the volume. For Master channel and VLC the sliders work like thy should.
Output device is shown as "HD-Audio Generic". Which is I think the correct one if I remember right from the Funtoo installation before.
Both Mixers are visible in the panel without different volumes set. I can even completely turn off the plasma mixer without any change.
KMix seems to be the main mix here.

I guess there are more than one problem, maybe someone could give me a hint how to start solving the problem.

thx in advance
Back to top
View user's profile Send private message
lefsha
Veteran
Veteran


Joined: 30 Aug 2004
Posts: 1088
Location: Burgas, Bulgaria

PostPosted: Thu Nov 21, 2019 5:57 pm    Post subject: Reply with quote

Checko55,

That is quite normal and expectable what you have reported. Read the documentation before posting here:
https://wiki.gentoo.org/wiki/ALSA

You have 2 options, either install Pulseaudio and relax or setup ALSA properly.

I am using this as .asoundrc

Code:
pcm.!default {
   type plug
   slave.pcm "plug:dmixer"
}

pcm.dmixer {
   type asym

   playback.pcm {
      type dmix
      ipc_key 5678293
      ipc_perm 0660
      ipc_gid audio

      slave {
         channels 2         # make 6 or 5.1 channel

         pcm {
            format S16_LE   # S32_LE
            rate 48000
            type hw
            card 0      # your card
            device 0      # your device
            subdevice 0      #important?
         }

         period_size 1024
         buffer_size 8192
      }

      bindings {
         0 0
         1 1
##         2 2
##         3 3
##         4 4
##         5 5
      }

      control {
         name “Pre-Amp”
         card 0
      }
      min_dB -5.0
      max_dB 20.0
      resolution 6
   }

   capture.pcm "hw:0"
}


I'd wish some software would do that for me especially if I need to switch to
HDMI output, but the one I know calls PA and I wish to avoid it.
_________________
Lefsha
Back to top
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 13

PostPosted: Mon Nov 25, 2019 9:38 pm    Post subject: Reply with quote

Hi Lefsha,

thanks for your reply.
I went through different how-to pages without success.

I slightly modified your config to my needs and saw in the ALSA Wiki as well.
Unfortunately it didn't change anything.
For any reason Pulseaudio is pulled automatically even if PA is removed from USE in make.conf.
No Audio in KDE settings, no profiles to set and sound only from one source at a time.

I never had to play around with this stuff since a long time and in Funtoo everything worked out of the box
after installing ALSA and PA.
Can you tell me what the problem with PA is?

regards
Checko
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15294

PostPosted: Tue Nov 26, 2019 2:21 am    Post subject: Reply with quote

If you have an installed package that depends on pulseaudio, Portage will keep trying to bring back pulseaudio. If you want not to have pulseaudio, find the package that depends on it and fix that. You might find this by running emerge --pretend --verbose --depclean media-sound/pulseaudio while pulseaudio is installed. You could also try masking pulseaudio, so that the next attempt to install it fails due to the mask.
Back to top
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 13

PostPosted: Sat Nov 30, 2019 8:48 am    Post subject: Reply with quote

Hi again,

thanks for the hints.
I managed to get PA out of my system and now VLC acts like it should again. Unfortunately Chrome (or Brave Browser) are not able
to play sounds now.
I followed the Wiki and wanted to delete the /etc/asound.conf file, but I didn't have this file.

From what I read so far, most modern browsers require PA to play audio, so I wanted to ask if there is any workaround to get that done again.
The weird thing is that Chromium is shown a audio source when playing a Youtube video, but without any sound.

thanks
Checko
Back to top
View user's profile Send private message
Ionen
l33t
l33t


Joined: 06 Dec 2018
Posts: 691

PostPosted: Sat Nov 30, 2019 9:14 am    Post subject: Reply with quote

Checko55 wrote:
From what I read so far, most modern browsers require PA to play audio
I'm pretty sure Chrome/Chromium hasn't done away with libasound(alsa) support, but I don't use them so I can't say what's wrong. Firefox also still has it, although it's not enabled in official builds anymore... not that it's a big issue on gentoo, surprisingly it has JACK support too.

If all else fail you can use media-sound/apulse to make "most" pulseaudio applications use libasound if started with it (I mostly only use this for binary-only applications like non-free games)

Edit: That aside, most users are better off just using PulseAudio, preferably making sure nothing tries to use libasound, and setup asound as a bridge to PulseAudio if it gets used, I was under the impression gentoo set this up for people already (For reasons personally using JACK, no PA, and zita's alsa2jack bridge (I hate the asound jack plugin), but that's not something I recommend to copy unless you know you want this :))
Back to top
View user's profile Send private message
lefsha
Veteran
Veteran


Joined: 30 Aug 2004
Posts: 1088
Location: Burgas, Bulgaria

PostPosted: Sun Dec 01, 2019 2:13 am    Post subject: Reply with quote

Checko55 wrote:

Can you tell me what the problem with PA is?


Well, there is NO problem with PA for most people out there.
Instead it solves many problems, which you have to solve yourself otherwise.

If you are OK to use it - go forward.

You may read about PA everywhere. Information is readily available.

As of the working sound you have to accomplish these steps:

1. Enable corresponding options in your kernel config. At best as a module =m
2. With new kernel run - lspci -vvv and check whether or not your sound card has a module
or 2 linked to your device. In my case I need 2 modules to make it work!
Below is the snippet of corresponding config part. It's not cleaned yet, though.

Code:
CONFIG_SOUND=m
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_DMAENGINE_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_SEQ_DEVICE=m
CONFIG_SND_COMPRESS_OFFLOAD=m
CONFIG_SND_JACK=y
CONFIG_SND_JACK_INPUT_DEV=y
CONFIG_SND_PCM_TIMER=y
CONFIG_SND_HRTIMER=m
CONFIG_SND_DYNAMIC_MINORS=y
CONFIG_SND_MAX_CARDS=32
CONFIG_SND_PROC_FS=y
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_DRIVERS=y
CONFIG_SND_DUMMY=m
CONFIG_SND_ALOOP=m
CONFIG_SND_AC97_POWER_SAVE=y
CONFIG_SND_AC97_POWER_SAVE_DEFAULT=10
CONFIG_SND_PCI=y

CONFIG_SND_HDA=m
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_REALTEK=m
CONFIG_SND_HDA_CODEC_ANALOG=m
CONFIG_SND_HDA_CODEC_SIGMATEL=m
CONFIG_SND_HDA_CODEC_VIA=m
CONFIG_SND_HDA_CODEC_HDMI=m
CONFIG_SND_HDA_CODEC_CIRRUS=m
CONFIG_SND_HDA_CODEC_CONEXANT=m
CONFIG_SND_HDA_CODEC_CA0110=m
CONFIG_SND_HDA_CODEC_CA0132=m
CONFIG_SND_HDA_CODEC_CMEDIA=m
CONFIG_SND_HDA_CODEC_SI3054=m
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=10
CONFIG_SND_HDA_CORE=m
CONFIG_SND_HDA_DSP_LOADER=y
CONFIG_SND_HDA_COMPONENT=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_EXT_CORE=m
CONFIG_SND_HDA_PREALLOC_SIZE=2048
CONFIG_SND_SOC=m
CONFIG_SND_SOC_AC97_BUS=y
CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y
CONFIG_SND_SOC_COMPRESS=y
CONFIG_SND_SOC_TOPOLOGY=y
CONFIG_SND_SOC_ACPI=m
CONFIG_SND_DESIGNWARE_I2S=m
CONFIG_SND_DESIGNWARE_PCM=y


CONFIG_SND_SOC_INTEL_SST_TOPLEVEL=y
CONFIG_SND_SST_IPC=m
CONFIG_SND_SST_IPC_PCI=m
CONFIG_SND_SST_IPC_ACPI=m
CONFIG_SND_SOC_INTEL_SST_ACPI=m
CONFIG_SND_SOC_INTEL_SST=m
CONFIG_SND_SOC_INTEL_SST_FIRMWARE=m
CONFIG_SND_SOC_INTEL_HASWELL=m
CONFIG_SND_SST_ATOM_HIFI2_PLATFORM=m
CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_PCI=m
CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI=m
CONFIG_SND_SOC_INTEL_SKYLAKE=m
CONFIG_SND_SOC_ACPI_INTEL_MATCH=m
CONFIG_SND_SOC_INTEL_MACH=y

CONFIG_SND_SOC_I2C_AND_SPI=m

CONFIG_SND_SOC_AC97_CODEC=m
CONFIG_SND_SOC_ADAU_UTILS=m
CONFIG_SND_SOC_ADAU1701=m
CONFIG_SND_SOC_ADAU17X1=m
CONFIG_SND_SOC_ADAU1761=m
CONFIG_SND_SOC_ADAU1761_I2C=m
CONFIG_SND_SOC_ADAU7002=m
CONFIG_SND_SOC_AK4458=m
CONFIG_SND_SOC_AK4554=m
CONFIG_SND_SOC_AK4613=m
CONFIG_SND_SOC_AK4642=m
CONFIG_SND_SOC_AK5386=m
CONFIG_SND_SOC_AK5558=m
CONFIG_SND_SOC_ALC5623=m
CONFIG_SND_SOC_BD28623=m
CONFIG_SND_SOC_BT_SCO=m
CONFIG_SND_SOC_CS35L32=m
CONFIG_SND_SOC_CS35L33=m
CONFIG_SND_SOC_CS35L34=m
CONFIG_SND_SOC_CS35L35=m
CONFIG_SND_SOC_CS42L42=m
CONFIG_SND_SOC_CS42L51=m
CONFIG_SND_SOC_CS42L51_I2C=m
CONFIG_SND_SOC_CS42L52=m
CONFIG_SND_SOC_CS42L56=m
CONFIG_SND_SOC_CS42L73=m
CONFIG_SND_SOC_CS4265=m
CONFIG_SND_SOC_CS4270=m
CONFIG_SND_SOC_CS4271=m
CONFIG_SND_SOC_CS4271_I2C=m
CONFIG_SND_SOC_CS42XX8=m
CONFIG_SND_SOC_CS42XX8_I2C=m
CONFIG_SND_SOC_CS43130=m
CONFIG_SND_SOC_CS4349=m
CONFIG_SND_SOC_CS53L30=m
CONFIG_SND_SOC_ES7134=m
CONFIG_SND_SOC_ES7241=m
CONFIG_SND_SOC_ES8316=m
CONFIG_SND_SOC_ES8328=m
CONFIG_SND_SOC_ES8328_I2C=m
CONFIG_SND_SOC_GTM601=m
CONFIG_SND_SOC_INNO_RK3036=m
CONFIG_SND_SOC_MAX98504=m
CONFIG_SND_SOC_MAX9867=m
CONFIG_SND_SOC_MAX98927=m
CONFIG_SND_SOC_MAX98373=m
CONFIG_SND_SOC_MAX9860=m
CONFIG_SND_SOC_MSM8916_WCD_DIGITAL=m
CONFIG_SND_SOC_PCM1681=m
CONFIG_SND_SOC_PCM1789=m
CONFIG_SND_SOC_PCM1789_I2C=m
CONFIG_SND_SOC_PCM179X=m
CONFIG_SND_SOC_PCM179X_I2C=m
CONFIG_SND_SOC_PCM186X=m
CONFIG_SND_SOC_PCM186X_I2C=m
CONFIG_SND_SOC_PCM3168A=m
CONFIG_SND_SOC_PCM3168A_I2C=m
CONFIG_SND_SOC_PCM512x=m
CONFIG_SND_SOC_PCM512x_I2C=m
CONFIG_SND_SOC_RL6231=m
CONFIG_SND_SOC_RT5616=m
CONFIG_SND_SOC_RT5631=m
CONFIG_SND_SOC_SGTL5000=m
CONFIG_SND_SOC_SIGMADSP=m
CONFIG_SND_SOC_SIGMADSP_I2C=m
CONFIG_SND_SOC_SIGMADSP_REGMAP=m
CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m
CONFIG_SND_SOC_SIRF_AUDIO_CODEC=m
CONFIG_SND_SOC_SPDIF=m
CONFIG_SND_SOC_SSM2305=m
CONFIG_SND_SOC_SSM2602=m
CONFIG_SND_SOC_SSM2602_I2C=m
CONFIG_SND_SOC_SSM4567=m
CONFIG_SND_SOC_STA32X=m
CONFIG_SND_SOC_STA350=m
CONFIG_SND_SOC_STI_SAS=m
CONFIG_SND_SOC_TAS2552=m
CONFIG_SND_SOC_TAS5086=m
CONFIG_SND_SOC_TAS571X=m
CONFIG_SND_SOC_TAS5720=m
CONFIG_SND_SOC_TAS6424=m
CONFIG_SND_SOC_TDA7419=m
CONFIG_SND_SOC_TFA9879=m
CONFIG_SND_SOC_TLV320AIC23=m
CONFIG_SND_SOC_TLV320AIC23_I2C=m
CONFIG_SND_SOC_TLV320AIC31XX=m
CONFIG_SND_SOC_TLV320AIC32X4=m
CONFIG_SND_SOC_TLV320AIC32X4_I2C=m
CONFIG_SND_SOC_TLV320AIC3X=m
CONFIG_SND_SOC_TS3A227E=m
CONFIG_SND_SOC_TSCS42XX=m
CONFIG_SND_SOC_TSCS454=m
CONFIG_SND_SOC_WM8510=m
CONFIG_SND_SOC_WM8523=m
CONFIG_SND_SOC_WM8524=m
CONFIG_SND_SOC_WM8580=m
CONFIG_SND_SOC_WM8711=m
CONFIG_SND_SOC_WM8728=m
CONFIG_SND_SOC_WM8731=m
CONFIG_SND_SOC_WM8737=m
CONFIG_SND_SOC_WM8741=m
CONFIG_SND_SOC_WM8750=m
CONFIG_SND_SOC_WM8753=m
CONFIG_SND_SOC_WM8776=m
CONFIG_SND_SOC_WM8782=m
CONFIG_SND_SOC_WM8804=m
CONFIG_SND_SOC_WM8804_I2C=m
CONFIG_SND_SOC_WM8903=m
CONFIG_SND_SOC_WM8960=m
CONFIG_SND_SOC_WM8962=m
CONFIG_SND_SOC_WM8974=m
CONFIG_SND_SOC_WM8978=m
CONFIG_SND_SOC_WM8985=m
CONFIG_SND_SOC_ZX_AUD96P22=m
CONFIG_SND_SOC_MAX9759=m
CONFIG_SND_SOC_MT6351=m
CONFIG_SND_SOC_NAU8540=m
CONFIG_SND_SOC_NAU8810=m
CONFIG_SND_SOC_NAU8824=m
CONFIG_SND_SOC_TPA6130A2=m
CONFIG_SND_SIMPLE_CARD_UTILS=m
CONFIG_SND_SIMPLE_CARD=m
CONFIG_AC97_BUS=m


If it works well you should try start alsasound.
If it won't detect your card, some options are missing.

From here w/ or w/o PA the sound should work.
_________________
Lefsha
Back to top
View user's profile Send private message
lefsha
Veteran
Veteran


Joined: 30 Aug 2004
Posts: 1088
Location: Burgas, Bulgaria

PostPosted: Sun Dec 01, 2019 2:25 am    Post subject: Reply with quote

Checko55 wrote:

From what I read so far, most modern browsers require PA to play audio, so I wanted to ask if there is any workaround to get that done again.
The weird thing is that Chromium is shown a audio source when playing a Youtube video, but without any sound.


There is a binary ebuild, which works for me. Try it. If it works check your USE flags.

At least if sound driver is working Chromium play sound w/o any additional tricks.
_________________
Lefsha
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum