Very low audio from HDMI and no volume control

Need help with MPD?
Post Reply
mikesailin
Posts: 5
Joined: August 5th, 2019, 9:38 pm

Very low audio from HDMI and no volume control

Post by mikesailin » August 6th, 2019, 11:45 am

SOLVED!!

I am running Arch Linux on an old Dell desktop with HDMI output. The HDMI output is connected to a TV. This configuration has worked well for both audio and video (eg youtube, kodi, rhythmbox). I have installed MPD and Cantata as a client. All works well except that the audio volume is extremely low and I cannot vary it up or down. If I plug earphones into the headphone jack on the computer, The sound is acceptable, but needs the volume turned up to 100%.

This is the response from mdb --version:
******************************************************

Music Player Daemon 0.21.12 (0.21.12)
Copyright 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2018 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
simple proxy upnp

Storage plugins:
local smbclient udisks nfs curl

Neighbor plugins:
smbclient upnp udisks

Decoders plugins:
[mad] mp3 mp2
[mpg123] mp3
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[opus] opus ogg oga
[sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
[audiofile] wav au aiff aif
[dsdiff] dff
[dsf] dsf
[hybrid_dsd] m4a
[faad] aac
[mpcdec] mpc
[wavpack] wv
[modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
[mikmod] amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm
[wildmidi] mid
[fluidsynth] mid
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
[gme] ay gbs gym hes kss nsf nsfe sap spc vgm vgz
[pcm]

Filters:
libsamplerate soxr

Tag plugins:
id3tag

Output plugins:
shout null fifo pipe alsa ao oss openal solaris pulse jack httpd recorder

Encoder plugins:
null vorbis opus lame twolame wave flac

Archive plugins:
[bz2] bz2
[zzip] zip
[iso] iso

Input plugins:
file archive alsa tidal qobuz curl ffmpeg smbclient nfs mms cdio_paranoia

Playlist plugins:
extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols:
file:// alsa:// tidal:// qobuz:// http:// https:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps:// smb:// nfs:// mms:// mmsh:// mmst:// mmsu:// cdda://

Other features:
avahi dbus udisks epoll icu inotify ipv6 systemd tcp un

*********************************************************

This is my mpd.conf:
**********************************************************


music_directory "~/music"

playlist_directory "~/playlists"

db_file "~/.mpd/database"

log_file "~/.mpd/log"

pid_file "~/.mpd/pid"

state_file "~/.mpd/state"

sticker_file "~/.mpd/sticker.sql"

user "mpd"

group "mpd"

bind_to_address "any"

log_level "verbose"

auto_update "yes"

zeroconf_enabled "yes"

zeroconf_name "Music Player @ %h"


input {
plugin "curl"
# proxy "proxy.isp.com:8080"
# proxy_user "user"
# proxy_password "password"
}


audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
mixer_type "software" # optional
## mixer_device "default" # optional
## mixer_control "PCM" # optional
## mixer_index "0" # optional
}

*************************************************************

This is the log file:
*************************************************************

Aug 05 11:47 : avahi: Initializing interface
Aug 05 11:47 : avahi: Client changed to state 2
Aug 05 11:47 : avahi: Client is RUNNING
Aug 05 11:47 : avahi: Registering service _mpd._tcp/Music Player @ Opti390
Aug 05 11:47 : avahi: Service group changed to state 0
Aug 05 11:47 : avahi: Service group is UNCOMMITED
Aug 05 11:47 : state_file: Loading state file /var/lib/mpd/.mpd/state
Aug 05 11:47 : playlist: queue song 1:"Oro _Grandes Exitos_/02 - Chiquitita(1).mp3"
Aug 05 11:47 : inotify: initializing inotify
Aug 05 11:47 : decoder_thread: probing plugin mad
Aug 05 11:47 : inotify: watching music directory
Aug 05 11:47 : avahi: Service group changed to state 1
Aug 05 11:47 : avahi: Service group is REGISTERING
Aug 05 11:47 : decoder: audio_format=44100:24:2, seekable=true
Aug 05 11:47 : avahi: Service group changed to state 2
Aug 05 11:47 : avahi: Service 'Music Player @ Opti390' successfully established.
Aug 05 11:48 : client: [0] opened from 127.0.0.1:52552
Aug 05 11:48 : client: [1] opened from 127.0.0.1:52554
Aug 05 11:48 : client: [1] process command "channels"
Aug 05 11:48 : client: [1] command returned 0
Aug 05 11:48 : client: [1] process command "idle"
Aug 05 11:48 : client: [1] command returned 1
Aug 05 11:48 : client: [0] process command "replay_gain_mode off"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "stats"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "lsinfo "mpd-client://cantata/2.3.3""
Aug 05 11:48 : exception: Unsupported URI scheme
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "playlistinfo"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "stats"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "urlhandlers"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "tagtypes"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "commands"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "playlistinfo"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "outputs"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "replay_gain_status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [1] process command "idle"
Aug 05 11:48 : client: [1] command returned 1
Aug 05 11:48 : client: [0] process command "lsinfo"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "currentsong"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "listplaylists"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "listplaylistinfo "[Radio Streams]""
Aug 05 11:48 : exception: Failed to open '/var/lib/mpd/playlists/[Radio Streams].m3u': No such file or directory
Aug 05 11:48 : exception: No such playlist
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "playlistinfo"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "outputs"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/01 - Fernando.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/02 - Chiquitita(1).mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/02 - Chiquitita.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/03 - Gracias Por La Musica.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/04 - La Reina Del Baile.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/05 - Al Andar.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/06 - Dame! Dame! Dame!.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/07 - Estoy Soñando.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/08 - Mamma Mia.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/09 - Hasta Mañana.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/10 - Conociendome, Conociendote.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/11 - Felicidad.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/12 - Andante, Andante.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/13 - Se Me Esta Escapando.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/14 - No Hay A Quien Culpar.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "Oro _Grandes Exitos_/15 - Ring Ring.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "The Definitive Collection/01 - People Need Love.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "The Definitive Collection/02 - He Is Your Brother.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "The Definitive Collection/03 - Ring Ring (English Version).mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "The Definitive Collection/04 - Love Isn't Easy (But It Sure Is Hard Enough).mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "The Definitive Collection/05 - Waterloo.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "The Definitive Collection/06 - Honey, Honey.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "sticker get song "The Definitive Collection/07 - So Long.mp3" rating"
Aug 05 11:48 : client: [0] command returned 2
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "pause "0""
Aug 05 11:48 : alsa_output: opened hw:0,0 type=HW
Aug 05 11:48 : alsa_output: buffer: size=32..524288 time=725..11888617
Aug 05 11:48 : alsa_output: period: size=16..262144 time=362..5944309
Aug 05 11:48 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Aug 05 11:48 : alsa_output: format=S32_LE (Signed 32 bit Little Endian)
Aug 05 11:48 : alsa_output: buffer_size=22050 period_size=4410
Aug 05 11:48 : output: opened "My ALSA Device" (alsa) audio_format=44100:32:2
Aug 05 11:48 : output: converting in=44100:24:2 -> f=44100:24:2 -> out=44100:32:2
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "replay_gain_status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [1] process command "idle"
Aug 05 11:48 : client: [1] command returned 1
Aug 05 11:48 : state_file: Saving state file /var/lib/mpd/.mpd/state
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "pause "1""
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : output: closed "My ALSA Device" (alsa)
Aug 05 11:48 : client: [0] process command "status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [0] process command "replay_gain_status"
Aug 05 11:48 : client: [0] command returned 0
Aug 05 11:48 : client: [1] process command "idle"
Aug 05 11:48 : client: [1] command returned 1
Aug 05 11:48 : client: [1] closed
Aug 05 11:48 : client: [0] closed
Aug 05 11:48 : state_file: Saving state file /var/lib/mpd/.mpd/state
Aug 05 11:49 : client: [2] opened from 127.0.0.1:52558
Aug 05 11:49 : client: [3] opened from 127.0.0.1:52560
Aug 05 11:49 : client: [3] process command "channels"
Aug 05 11:49 : client: [3] command returned 0
Aug 05 11:49 : client: [3] process command "idle"
Aug 05 11:49 : client: [3] command returned 1
Aug 05 11:49 : client: [2] process command "replay_gain_mode off"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "stats"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "lsinfo "mpd-client://cantata/2.3.3""
Aug 05 11:49 : exception: Unsupported URI scheme
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "playlistinfo"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "stats"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "urlhandlers"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "tagtypes"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "commands"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "playlistinfo"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "outputs"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "replay_gain_status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [3] process command "idle"
Aug 05 11:49 : client: [3] command returned 1
Aug 05 11:49 : client: [2] process command "lsinfo"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "currentsong"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "listplaylists"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "listplaylistinfo "[Radio Streams]""
Aug 05 11:49 : exception: Failed to open '/var/lib/mpd/playlists/[Radio Streams].m3u': No such file or directory
Aug 05 11:49 : exception: No such playlist
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "playlistinfo"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "outputs"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/01 - Fernando.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/02 - Chiquitita(1).mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/02 - Chiquitita.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/03 - Gracias Por La Musica.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/04 - La Reina Del Baile.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/05 - Al Andar.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/06 - Dame! Dame! Dame!.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/07 - Estoy Soñando.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/08 - Mamma Mia.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/09 - Hasta Mañana.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/10 - Conociendome, Conociendote.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/11 - Felicidad.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/12 - Andante, Andante.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/13 - Se Me Esta Escapando.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/14 - No Hay A Quien Culpar.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "Oro _Grandes Exitos_/15 - Ring Ring.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "The Definitive Collection/01 - People Need Love.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "The Definitive Collection/02 - He Is Your Brother.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "The Definitive Collection/03 - Ring Ring (English Version).mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "The Definitive Collection/04 - Love Isn't Easy (But It Sure Is Hard Enough).mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "The Definitive Collection/05 - Waterloo.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "The Definitive Collection/06 - Honey, Honey.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "sticker get song "The Definitive Collection/07 - So Long.mp3" rating"
Aug 05 11:49 : client: [2] command returned 2
Aug 05 11:49 : client: [2] process command "pause "0""
Aug 05 11:49 : alsa_output: opened hw:0,0 type=HW
Aug 05 11:49 : alsa_output: buffer: size=32..524288 time=725..11888617
Aug 05 11:49 : alsa_output: period: size=16..262144 time=362..5944309
Aug 05 11:49 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Aug 05 11:49 : alsa_output: format=S32_LE (Signed 32 bit Little Endian)
Aug 05 11:49 : alsa_output: buffer_size=22050 period_size=4410
Aug 05 11:49 : output: opened "My ALSA Device" (alsa) audio_format=44100:32:2
Aug 05 11:49 : output: converting in=44100:24:2 -> f=44100:24:2 -> out=44100:32:2
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "replay_gain_status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [3] process command "idle"
Aug 05 11:49 : client: [3] command returned 1
Aug 05 11:49 : state_file: Saving state file /var/lib/mpd/.mpd/state
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:49 : client: [2] process command "status"
Aug 05 11:49 : client: [2] command returned 0
Aug 05 11:50 : client: [2] process command "status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : client: [2] process command "status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : client: [2] process command "status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : client: [2] process command "status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : client: [2] process command "status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : decoder_thread: probing plugin mad
Aug 05 11:50 : decoder: audio_format=44100:24:2, seekable=true
Aug 05 11:50 : client: [2] process command "status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : client: [2] process command "status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : client: [2] process command "pause "1""
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : output: closed "My ALSA Device" (alsa)
Aug 05 11:50 : client: [2] process command "status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : client: [2] process command "replay_gain_status"
Aug 05 11:50 : client: [2] command returned 0
Aug 05 11:50 : client: [3] process command "idle"
Aug 05 11:50 : client: [3] command returned 1
Aug 05 11:50 : client: [3] closed
Aug 05 11:50 : client: [2] closed
Aug 05 11:50 : state_file: Saving state file /var/lib/mpd/.mpd/state

***************************************************************************
Last edited by mikesailin on August 6th, 2019, 4:23 pm, edited 1 time in total.

max
Forum team
Posts: 956
Joined: January 15th, 2013, 3:43 pm

Re: Very low audio from HDMI and no volume control

Post by max » August 6th, 2019, 12:25 pm

Try forcing 16 bit output by adding

Code: Select all

format "*:16:*"
.. to the ALSA output section. This reduces quality by discarding a few bits of precision, but I've seen some DACs misinterpret "unusual" bit depths (i.e. not 16 bit), so this may work around such a DAC bug.

Note that you chose to use software volume. This disables bit-perfect playback; it's better to use no MPD volume control at all, and only control volume only with your TV's remote control.

mikesailin
Posts: 5
Joined: August 5th, 2019, 9:38 pm

Re: Very low audio from HDMI and no volume control

Post by mikesailin » August 6th, 2019, 1:46 pm

I tried those two things: I added the format line to alsa output section, and I commented out the software volume line, but to no avail. The symptom is as before.

max
Forum team
Posts: 956
Joined: January 15th, 2013, 3:43 pm

Re: Very low audio from HDMI and no volume control

Post by max » August 6th, 2019, 1:52 pm

Paste the output of "aplay -l".
After that, paste the output of "cat /proc/asound/card0/pcm0p/sub*/[sh]w_params" while MPD plays (being too silent), and again while a different software plays which has "good" volume.

mikesailin
Posts: 5
Joined: August 5th, 2019, 9:38 pm

Re: Very low audio from HDMI and no volume control

Post by mikesailin » August 6th, 2019, 2:47 pm

aplay -l output:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20641 Analog [CX20641 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

******************************
output of "cat /proc/asound/card0/pcm0p/sub*/[sh]w_params while mpd plays:

access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 4410
buffer_size: 22050
tstamp_mode: NONE
period_step: 1
avail_min: 4410
start_threshold: 17640
stop_threshold: 22050
silence_threshold: 0
silence_size: 0
boundary: 6206523236469964800

**********************************************
I tried to play audio from other sources (rhythmbox, youtube) after closing cantata and stopping mpd, but no audio would play until I rebooted the computer. After rebooting, rhythmbox played normally and then

output of "cat /proc/asound/card0/pcm0p/sub*/[sh]w_params" while rhythmbox was playing:

closed
closed
***************************************************

mikesailin
Posts: 5
Joined: August 5th, 2019, 9:38 pm

Re: Very low audio from HDMI and no volume control

Post by mikesailin » August 6th, 2019, 3:08 pm

Here is the output of aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20641 Analog [CX20641 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

**********************************************
Here is the output of cat /proc/asound/card0/pcm0p/sub*/[sh]w_params while mpd was playing

access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 4410
buffer_size: 22050
tstamp_mode: NONE
period_step: 1
avail_min: 4410
start_threshold: 17640
stop_threshold: 22050
silence_threshold: 0
silence_size: 0
boundary: 6206523236469964800

**************************************************
After obtaining the above I stopped mpd and closed cantata. At that point there was no audio from rhythmbox or youtube until I rebooted the system. When the system came up, mpd was not running (iI have started and stopped it without enabling it so far. Rhythmbox and youtube played audio properly after rebooting.

Here is the output of cat /proc/asound/card0/pcm0p/sub*/[sh]w_params with rhythmbox playing:
closed
closed
*****************************************************

I thought I had posted this reply, but I didn't see it on your forum. I hope I'm not posting all of this twice.

max
Forum team
Posts: 956
Joined: January 15th, 2013, 3:43 pm

Re: Very low audio from HDMI and no volume control

Post by max » August 6th, 2019, 3:33 pm

So you have two devices: one for analog output (to headphones) and one for HDMI output.
Your MPD config uses analog output only; nothing should be on the HDMI output. Stupid question: is the audio volume so low because your laptop's tiny speakers do the output and not your TV?
Anyway, I assume Rhythmbox and Youtube use the HDMI output (that would be `cat /proc/asound/card0/pcm3p/sub*/[sh]w_params` instead).
If you want MPD to output to HDMI, you need to tell it to do so. For example, by configuring the device "hw:0,3" instead of "hw:0,0".

mikesailin
Posts: 5
Joined: August 5th, 2019, 9:38 pm

Re: Very low audio from HDMI and no volume control

Post by mikesailin » August 6th, 2019, 4:23 pm

Thanks. Changing "hw:0,0" to "hw:0,3" did solve the problem. I confess that I am ignorant of the exact meaning of the "hw:0,3" statement. I see that the "3" means HDMI3, but what is the meaning of the rest of it? Thanks again. The problem is solved.

max
Forum team
Posts: 956
Joined: January 15th, 2013, 3:43 pm

Re: Very low audio from HDMI and no volume control

Post by max » August 6th, 2019, 5:09 pm

Code: Select all

card 0: PCH [HDA Intel PCH], device 0: CX20641 Analog [CX20641 Analog]
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Analog output is "hw:0,0" because it's "device 0" inside "card 0".
HDMI output is "hw:0,3" because it's "device 3" inside "card 0".

ALSA is truly hard to configure, but once you have a working configuration, it just works... and the same can be said about MPD.

Post Reply