Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] (Alsa) Sound is too loud
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
phixth
n00b
n00b


Joined: 24 Apr 2005
Posts: 30

PostPosted: Sat Aug 29, 2015 6:59 pm    Post subject: [solved] (Alsa) Sound is too loud Reply with quote

Hi all,
I cannot control sound of my sound card using alsamixer. I am using HDMI output. The sound is at maximum and no matter what I set for Master or PCM or basically anything else in alsamixer the sound is still too loud.
Motherboard is AsRock Q1900M and the sound card is integrated, using snd-hda-intel module.
I tried with "linux-3.18.7-gentoo" and also "linux-4.0.5-gentoo" kernel.
I also tried "alsactl init" and "alsactl store" with several reboots, but nothing helps.
Could this be a driver problem? This card should be pretty common so I have a feeling I'm doing something wrong.

Some details:
Code:

gentoo toor # lspci -nn|grep -i audio
00:1b.0 Audio device [0403]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller [8086:0f04] (rev 0e)


Code:

gentoo toor # lsmod|grep -i snd
snd_hda_codec_hdmi     32391  1
snd_hda_codec_realtek    48754  1
snd_hda_codec_generic    41816  1 snd_hda_codec_realtek
snd_hda_intel          17907  0
snd_hda_controller     13824  1 snd_hda_intel
snd_hda_codec          74332  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep               5171  1 snd_hda_codec
snd_pcm                63707  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              16097  1 snd_pcm
snd                    50497  7 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel


Code:
gentoo toor # cat /proc/asound/card0/codec* | grep Codec
Codec: Realtek ALC662 rev1
Codec: Intel Valleyview2 HDMI             // <== this is the one displayed in alsamixer as i'm using HDMI output


Code:

toor@gentoo ~ $ cat .asoundrc
pcm.!default "plughw:0,3"



Thanks.


Last edited by phixth on Sun Aug 30, 2015 8:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Sat Aug 29, 2015 7:19 pm    Post subject: Reply with quote

The idea of digital sound and digital pass-trough is to keep the original sound until it reaches the DAC. Adjusting the volume of digital sound would mean resampling and inevitable loss of quality.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3847
Location: Austro Bavaria

PostPosted: Sat Aug 29, 2015 7:27 pm    Post subject: Reply with quote

hda_intel is a summary for such many cards, which have suboptions to configure afaik...

I never used hdmi so far. you need to check if such featues as you expect are supported by the hardware and protocols in use.

Quote:
HDMI (High-Definition Multimedia Interface) is a proprietary audio/video interface for transferring uncompressed video data and compressed or uncompressed digital audio data from an HDMI-compliant source device, such as a display controller, to a compatible computer monitor, video projector, digital television, or digital audio device.[4] HDMI is a digital replacement for analog video standards.


for the wikipedia article is for myself who never dealt with that subject, not clear if there is any audio mixer capabilities supported or included, and therefore i expect the end device, needs to provide the volume management for your use case.
Back to top
View user's profile Send private message
phixth
n00b
n00b


Joined: 24 Apr 2005
Posts: 30

PostPosted: Sat Aug 29, 2015 7:37 pm    Post subject: Reply with quote

I just found a solution on Archlinux forum (https://bbs.archlinux.org/viewtopic.php?id=136790).
(It's funny how fast can I found solution immediately after creating forum thread :) )

In short, one needs to define a softvol control for HDMI:

Here's my .asoundrc now:
Code:

pcm.hdmi_hw {
        type hw
        card 0
        device 3
}

pcm.hdmi_complete {
        type softvol
        slave.pcm hdmi_hw
        control.name hdmi_volume
        control.card 0
}

pcm.!default hdmi_complete


Now I have a new <hdmi_vol> control in alsamixer where I can lower the volume. Finally !! :)

Btw. I found another topic where a guy gave up and installed PulseAudio and it worked too.
I will check that also.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3847
Location: Austro Bavaria

PostPosted: Sun Aug 30, 2015 8:33 am    Post subject: Reply with quote

when you do not need pulseaudio leave it out.

guys have split opinion on pulseaudio. some are happy, some not.
in my expierence it works now, but it did not for years.

afaik a soundserver which is needed to mix several audio sources ...

and glad that it worked for you...

AND common etiquete here is to edit the first topic and add [solved] when your topic is answered. So anyone who wants to answer posts can move on other topics which need more attention, thank you
Back to top
View user's profile Send private message
phixth
n00b
n00b


Joined: 24 Apr 2005
Posts: 30

PostPosted: Sun Aug 30, 2015 8:44 pm    Post subject: Reply with quote

sorry, i marked it now :). It's been a long time since I've been here.
Back to top
View user's profile Send private message
phixth
n00b
n00b


Joined: 24 Apr 2005
Posts: 30

PostPosted: Thu Sep 03, 2015 9:13 pm    Post subject: latest update Reply with quote

Update: Alsa is not working correctly in the latest stable VLC - version 2.1.5 (please see this bug: https://trac.videolan.org/vlc/ticket/11483).
One option was to unmask unstable version, or to try PulseAudio.
I tried the second one, and I must say it all works well now. No locking of audio channels, sound in VLC 2.1.5 is good too.

I always hated PulseAudio because of constant issues, but I guess after several years of bug fixing it's starting to work :)

My .asoundrc now:
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}

If it helps anybody, I followed the PulseAudio gentoo wiki page, installed pavucontrol where I specified HDMI profile and also installed alsa-plugins + optional xfce4 pulseaudio plugin.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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