Db820c HDMI no sound

Hello. 96boards team:
When tested with db820c using version 228 (https://snapshots.linaro.org/96boards/dragonboard 820c/linaro/debian/228/), it was found that the Headphone had sound output , but when switched to HDMI mode , HDMI had no sound output, and the mode is switched from HIFI qualitty Music. to HDMI output. by UI Volume Control ->Configuration, with the error log
[ 251.083960] wcd9335-codec wcd9335-codec.0: wcd9335_slimbus_irq: overflow error on RX port 5, value 1
[ 251.102668] wcd9335-codec wcd9335-codec.0: wcd9335_slimbus_irq: underflow error on TX port 0, value 6

The relevant sound card node information is as follows"

root@linaro-alip:~# aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: DB820c [DB820c], device 0: MultiMedia1 (*) []

Subdevices: 1/1

Subdevice #0: subdevice #0

card 0: DB820c [DB820c], device 1: MultiMedia2 (*) []

Subdevices: 1/1

Subdevice #0: subdevice #0

card 0: DB820c [DB820c], device 2: MultiMedia3 (*) []

Subdevices: 1/1

Subdevice #0: subdevice #0

root@linaro-alip:~# ls /dev/snd

by-path pcmC0D0c pcmC0D1c pcmC0D2c timer

controlC0 pcmC0D0p pcmC0D1p pcmC0D2p

please help analyze the reasons ,

thanks
feng

1 Like

Hi @chen,

In alsa UCM, disable HiFi in db820c.conf file and verify whether HDMI mode sound working?

thanks,
parbatha

Hi parbatha,
we modifided the db820c.conf file ,deleted the hifi infor, only keep the DHMI ,as below:
SectionUseCase.“HDMI” {
File “HDMI”
Comment “HDMI output.”
}

then reboot the system, and aplay bj.wav file ,
the system still is no sound out, with some log infor,as below:

root@linaro-alip:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DB820c [DB820c], device 0: MultiMedia1 () []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DB820c [DB820c], device 1: MultiMedia2 (
) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DB820c [DB820c], device 2: MultiMedia3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@linaro-alip:~# cd home/linaro
-bash: cd: home/linaro: No such file or directory
root@linaro-alip:~# cd /home/linaro
root@linaro-alip:/home/linaro# aplay bj.wav
Playing WAVE ‘bj.wav’ : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
[ 54.984622] MultiMedia1: ASoC: no backend DAIs enabled for MultiMedia1
aplay: set_params:1403: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (124988 124989)
PERIOD_SIZE: 5512
PERIOD_BYTES: 22048
PERIODS: 4
BUFFER_TIME: (499954 499955)
BUFFER_SIZE: 22048
BUFFER_BYTES: 88192
TICK_TIME: 0
root@linaro-alip:/home/linaro#

plsease help analyzing the reasaon ,

thanks
feng

Hi @chen,

https://git.linaro.org/people/srinivas.kandagatla/alsa-lib.git/log/?h=db820c

I believe you are using the latest UCM configuration. if not try with above configuration pushed by @srini.

can you provide which kernel branch and version you are using?

regards,
parbatha

Hi parbatha,
we have checked the UCM configuration, it is the lastest , the same configuration with srinivas.kandagatla/alsa-lib.git - [no description]

the kernel:
git clone working/qualcomm/kernel.git - Qualcomm Landing Team kernel

the branch:
git checkout -t origin/release/qcomlt-4.14

the last commit:
commit 0848e5631cd2f8b3826e09e83287b98193364883
Merge: 65c4775 7fe7a0f
Author: Nicolas Dechesne nicolas.dechesne@linaro.org
Date: Thu Sep 13 12:23:03 2018 +0200
Merge tag ‘v4.14.69’ into release/qcomlt-4.14
This is the 4.14.69 stable release

BestRegards
feng

Hi Chen,
I just tested this on my side with exact commit id, and I do not see no-hdmi-audio issue as you reported.
Just few thing for you to try:
1> Can you try below command on uart console to test if hdmi audio works on your monitor.
amixer cset iface=MIXER,name=‘HDMI Mixer MultiMedia1’ 1
aplay /usr/share/sounds/alsa/Front_Center.wav
amixer cset iface=MIXER,name=‘HDMI Mixer MultiMedia1’ 0
If it works then there is some issue with the UCM, else there is issue with monitor.

Thanks,
Srini

hello. srini,
we test ,acording to you suggestion, the infor as below,

linaro@linaro-alip:~$ amixer cset iface=MIXER,name=‘HDMI Mixer MultiMedia1’ 1
amixer: Cannot find the given element from control default

linaro@linaro-alip:~$ amixer cset iface=MIXER,name=‘HDMI Mixer MultiMedia1’ 0
amixer: Cannot find the given element from control default

maby be something wrong.
other infor as below:

the amixer controls :
linaro@linaro-alip:~$ amixer controls
numid=4,iface=MIXER,name=‘Master Playback Switch’
numid=3,iface=MIXER,name=‘Master Playback Volume’
numid=2,iface=MIXER,name=‘Capture Switch’
numid=1,iface=MIXER,name=‘Capture Volume’

the amixer contents:
linaro@linaro-alip:~$ amixer contents
numid=4,iface=MIXER,name=‘Master Playback Switch’
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=3,iface=MIXER,name=‘Master Playback Volume’
; type=INTEGER,access=rw------,values=2,min=0,max=65536,step=1
: values=65536,65536
numid=2,iface=MIXER,name=‘Capture Switch’
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=1,iface=MIXER,name=‘Capture Volume’
; type=INTEGER,access=rw------,values=2,min=0,max=65536,step=1
: values=65536,65536

the aplay -l :
linaro@linaro-alip:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DB820c [DB820c], device 0: MultiMedia1 () []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DB820c [DB820c], device 1: MultiMedia2 (
) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DB820c [DB820c], device 2: MultiMedia3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0

Thanks
feng

Hello. Srini
we test the HDMI audio , based on
software : 228 vesion (Linaro Snapshots),
hardware: DragonBoard™ 820c (Arrow) (DragonBoard™ 820c - 96Boards)

do you test with the same software and hardware? can you tell us the test step ?

Thanks
feng

Hello,srini,

I tested it using https://snapshots.linaro.org/96 boards/dragonboard 820c/linaro/debian/228/.
HDMI Mixer MultiMedia 1 can be set on with root permission, but the voice is still output from the headset after switching.

linaro@linaro-alip:~$ sudo amixer cget iface=MIXER,name=‘HDMI Mixer MultiMedia1’
numid=68,iface=MIXER,name=‘HDMI Mixer MultiMedia1’
; type=BOOLEAN,access=rw------,values=1
: values=off

linaro@linaro-alip:~$ sudo amixer cset iface=MIXER,name=‘HDMI Mixer MultiMedia1’ 1
numid=68,iface=MIXER,name=‘HDMI Mixer MultiMedia1’
; type=BOOLEAN,access=rw------,values=1
: values=on

linaro@linaro-alip:~$ aplay bj.wav

Playing WAVE ‘bj.wav’ : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

If switch to DHMI output through volume control UI, the error log below will be reported


[ 412.471867] wcd9335-codec wcd9335-codec.0: wcd9335_slimbus_irq: overflow error on RX port 5, value 1

[ 412.490705] wcd9335-codec wcd9335-codec.0: wcd9335_slimbus_irq: underflow error on TX port 0, value 6

plsease help analyze the reasons.

Thanks

feng

Hello,srini,

This is part of the log about sound:

[ 13.313927] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: no source widget found for Playback

[ 13.315340] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: Failed to add route Playback -> direct -> TX

[ 13.354594] ath10k_pci 0000:01:00.0 wlp1s0: renamed from wlan0

[ 13.357717] msm-snd-apq8096 sound: snd-soc-dummy-dai <-> MultiMedia1 mapping ok

[ 13.360087] msm-snd-apq8096 sound: snd-soc-dummy-dai <-> MultiMedia2 mapping ok

[ 13.367339] msm-snd-apq8096 sound: snd-soc-dummy-dai <-> MultiMedia3 mapping ok

[ 13.373928] msm-snd-apq8096 sound: i2s-hifi <-> HDMI mapping ok

[ 13.381213] msm-snd-apq8096 sound: wcd9335_rx4 <-> SLIMBUS_6_RX mapping ok

[ 13.387056] msm-snd-apq8096 sound: wcd9335_tx1 <-> SLIMBUS_0_TX mapping ok

[ 13.394984] msm-snd-apq8096 sound: ASoC: no source widget found for Headset Mic

[ 13.400857] msm-snd-apq8096 sound: ASoC: Failed to add route Headset Mic -> direct -> MIC BIAS2

[ 13.408152] msm-snd-apq8096 sound: ASoC: no source widget found for Headset Mic

[ 13.416728] msm-snd-apq8096 sound: ASoC: Failed to add route Headset Mic -> direct -> MIC BIAS2

[ 13.424098] msm-snd-apq8096 sound: ASoC: no source widget found for ANCLeft Headset Mic

[ 13.432686] msm-snd-apq8096 sound: ASoC: Failed to add route ANCLeft Headset Mic -> direct -> MIC BIAS2

[ 13.440726] msm-snd-apq8096 sound: ASoC: no source widget found for ANCRight Headset Mic

[ 13.450046] msm-snd-apq8096 sound: ASoC: Failed to add route ANCRight Headset Mic -> direct -> MIC BIAS2

[ 13.458420] msm-snd-apq8096 sound: ASoC: no source widget found for Analog Mic6

[ 13.467839] msm-snd-apq8096 sound: ASoC: Failed to add route Analog Mic6 -> direct -> MIC BIAS2

[ 13.474918] msm-snd-apq8096 sound: ASoC: no source widget found for Analog Mic7

[ 13.483551] msm-snd-apq8096 sound: ASoC: Failed to add route Analog Mic7 -> direct -> MIC BIAS2

[ 13.490892] msm-snd-apq8096 sound: ASoC: no source widget found for Digital Mic2

[ 13.499523] msm-snd-apq8096 sound: ASoC: Failed to add route Digital Mic2 -> direct -> MIC BIAS1

[ 13.507200] msm-snd-apq8096 sound: ASoC: no source widget found for Digital Mic3

[ 13.515930] msm-snd-apq8096 sound: ASoC: Failed to add route Digital Mic3 -> direct -> MIC BIAS1

[ 13.523349] msm-snd-apq8096 sound: ASoC: no source widget found for Digital Mic4

[ 13.532076] msm-snd-apq8096 sound: ASoC: Failed to add route Digital Mic4 -> direct -> MIC BIAS3

[ 13.539489] msm-snd-apq8096 sound: ASoC: no source widget found for Digital Mic5

[ 13.548218] msm-snd-apq8096 sound: ASoC: Failed to add route Digital Mic5 -> direct -> MIC BIAS3

[ 13.555631] msm-snd-apq8096 sound: ASoC: no source widget found for SPK1 OUT

[ 13.564364] msm-snd-apq8096 sound: ASoC: Failed to add route SPK1 OUT -> direct -> SpkrLeft IN

[ 13.571426] msm-snd-apq8096 sound: ASoC: no source widget found for SPK2 OUT

[ 13.579817] msm-snd-apq8096 sound: ASoC: Failed to add route SPK2 OUT -> direct -> SpkrRight IN

[ 13.587016] msm-snd-apq8096 sound: ASoC: no DMI vendor name!

[ 13.620185] input: DB820c Headset Jack as /devices/platform/sound/sound/card0/input8

     Starting Hostname Service..

Best Regards
feng