Db820c HDMI no sound


#1

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


#2

Hi @chen,

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

thanks,
parbatha


#3

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


#4

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


#5

Hi parbatha,
we have checked the UCM configuration, it is the lastest , the same configuration with https://git.linaro.org/people/srinivas.kandagatla/alsa-lib.git/log/?h=db820c

the kernel:
git clone http://git.linaro.org/landing-teams/working/qualcomm/kernel.git

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


#6

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


#7

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


#8

Hello. Srini
we test the HDMI audio , based on
software : 228 vesion (https://snapshots.linaro.org/96boards/dragonboard820c/linaro/debian/228/),
hardware: DragonBoard™ 820c (Arrow) (https://www.96boards.org/product/dragonboard820c/)

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

Thanks
feng