Hdmi audio on db410c not working

i had installed the alsa-utils, no hdmi audio , i also tried with alsa-utils.speaker-test , but no audio. some permission issue. please suggest.

root@localhost:/home/vinaysimha# snap list | grep alsa
alsa-utils 1.1.2-5 70 canonical -

root@localhost:/home/vinaysimha# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DB410c [DB410c], device 0: WCD msm8x16_wcd_i2s_rx1-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DB410c [DB410c], device 1: ADV7533 adv7511-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@localhost:/home/vinaysimha#

root@localhost:/home/vinaysimha# aplay -D plughw:0,1 t_st_44100Hz_16bit_.wav

root@localhost:/home/vinaysimha# cat /var/log/syslog
Sep 13 11:23:19 localhost rsyslogd-2007: action ‘action 10’ suspended, next retry is Wed Sep 13 11:24:19 2017 [v8.16.0 try http://www.rsyslog.com
/e/2007 ]
Sep 13 11:23:35 localhost kernel: [ 985.529111] audit: type=1400 audit(1505301815.414:108): apparmor=“DENIED” operation=“create” profile=“snap.a
lsa-utils.aplay” pid=1894 comm=“snap-exec” family=“inet” sock_type=“stream” protocol=6 requested_mask=“create” denied_mask=“create”
Sep 13 11:23:35 localhost kernel: [ 985.529344] audit: type=1400 audit(1505301815.414:109): apparmor=“DENIED” operation=“create” profile=“snap.a
lsa-utils.aplay” pid=1894 comm=“snap-exec” family=“inet6” sock_type=“stream” protocol=6 requested_mask=“create” denied_mask=“create”
Sep 13 11:23:35 localhost kernel: [ 985.529529] audit: type=1400 audit(1505301815.414:110): apparmor=“DENIED” operation=“create” profile=“snap.a
lsa-utils.aplay” pid=1894 comm=“snap-exec” family=“inet6” sock_type=“stream” protocol=6 requested_mask=“create” denied_mask=“create”
Sep 13 11:23:35 localhost kernel: [ 985.594487] audit: type=1400 audit(1505301815.478:111): apparmor=“DENIED” operation=“open” profile=“snap.als
a-utils.aplay” name="/home/vinaysimha/t_st_44100Hz_16bit_.wav" pid=1894 comm=“aplay” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=1000
root@localhost:/home/vinaysimha#


root@localhost:/home/vinaysimha# alsa-utils.speaker-test

speaker-test 1.1.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 8192 to 8192
Period size range from 4096 to 4096
Using max buffer size 8192
[ 1045.976537] msm8x16-wcd-codec 200f000.spmi:pm8916@1:codec@f000: msm8x16_wcd_hw_params: dai_name = msm8x16_wcd_i2s_rx1 DAI-ID 0 rate 48000 num_
ch 1 format 2

was set period_size = 4096
was set buffer_size = 8192
0 - Front Left
Time per period = 2.815341
0 - Front Left
Time per period = 2.986528
0 - Front Left
Time per period = 2.986573
0 - Front Left
Time per period = 2.986542
0 - Front Left
Time per period = 2.986559
0 - Front Left

Sep 13 11:24:35 localhost kernel: [ 1045.947190] audit: type=1400 audit(1505301875.830:115): apparmor=“DENIED” operation=“create” profile=“snap.a
lsa-utils.speaker-test” pid=1913 comm=“snap-exec” family=“inet” sock_type=“stream” protocol=6 requested_mask=“create” denied_mask=“create”
Sep 13 11:24:35 localhost kernel: [ 1045.947273] audit: type=1400 audit(1505301875.830:116): apparmor=“DENIED” operation=“create” profile=“snap.a
lsa-utils.speaker-test” pid=1913 comm=“snap-exec” family=“inet6” sock_type=“stream” protocol=6 requested_mask=“create” denied_mask=“create”
Sep 13 11:24:35 localhost kernel: [ 1045.947327] audit: type=1400 audit(1505301875.830:117): apparmor=“DENIED” operation=“create” profile=“snap.a
lsa-utils.speaker-test” pid=1913 comm=“snap-exec” family=“inet6” sock_type=“stream” protocol=6 requested_mask=“create” denied_mask=“create”
Sep 13 11:24:35 localhost rsyslogd-2007: action ‘action 10’ suspended, next retry is Wed Sep 13 11:25:35 2017 [v8.16.0 try http://www.rsyslog.com
/e/2007 ]
Sep 13 11:24:35 localhost kernel: [ 1045.976537] msm8x16-wcd-codec 200f000.spmi:pm8916@1:codec@f000: msm8x16_wcd_hw_params: dai_name = msm8x16_wc
d_i2s_rx1 DAI-ID 0 rate 48000 num_ch 1 format 2
root@localhost:/home/vinaysimha#

i think the denials are a red herring (they are all about networking sockets) …

did you check with alsamixer if everything is unmuted (i dont think we ship any ucm profiles that would set default volumes in Ubuntu Core)

root@localhost:/home/vinaysimha# aplay -D plughw:0,1 t_st_44100Hz_16bit_.wav
/home/vinaysimha/t_st_44100Hz_16bit_.wav: Permission denied

it is listing the codecs, but why it is giving permission denied for playing file?

root@localhost:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DB410c [DB410c], device 0: WCD msm8x16_wcd_i2s_rx1-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DB410c [DB410c], device 1: ADV7533 adv7511-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@localhost:~#

you need to connect the alsa-utils home interface … and then you can only access the home of the executing user (given this is root. you need to copy the wav to /root first)

(alternatively, since you are only testing yet, just reinstall alsa-utils with --devmode is another option, then you dont need/use any interfaces)

after reinstall of alsa-utils with --devmode, able to play the audio in hdmi.

thanks.

1 Like