Jetson tx2 HDMI no sound

I use hdmi to output audio but there is no sound
By configuration pactl load-module module-alsa-sink device=hw:0,7

Blockquotenvidia@calmcar-pdaq:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: tegrahda [tegra-hda], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: tegrahda [tegra-hda], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 0: ADMAIF1 CIF ADMAIF1-0
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 1: ADMAIF2 CIF ADMAIF2-1
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 2: ADMAIF3 CIF ADMAIF3-2
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 3: ADMAIF4 CIF ADMAIF4-3
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 4: ADMAIF5 CIF ADMAIF5-4
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 5: ADMAIF6 CIF ADMAIF6-5
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 6: ADMAIF7 CIF ADMAIF7-6
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 7: ADMAIF8 CIF ADMAIF8-7
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 8: ADMAIF9 CIF ADMAIF9-8
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 9: ADMAIF10 CIF ADMAIF10-9
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 10: ADMAIF11 CIF ADMAIF11-10
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 11: ADMAIF12 CIF ADMAIF12-11
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 12: ADMAIF13 CIF ADMAIF13-12
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 13: ADMAIF14 CIF ADMAIF14-13
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 14: ADMAIF15 CIF ADMAIF15-14
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 15: ADMAIF16 CIF ADMAIF16-15
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 16: ADMAIF17 CIF ADMAIF17-16
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 17: ADMAIF18 CIF ADMAIF18-17
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 18: ADMAIF19 CIF ADMAIF19-18
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 19: ADMAIF20 CIF ADMAIF20-19
Subdevices: 1/1
Subdevice #0: subdevice #0

nvidia@calmcar-pdaq:~$ aplay -D plughw:0,7 b.wav
Playing WAVE ‘b.wav’ : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
nvidia@calmcar-pdaq:~$
no suond

nvidia@calmcar-pdaq:~$ aplay -D hw:0,7 b.wav
Playing WAVE ‘b.wav’ : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
aplay: set_params:1305: Channels count non available

Have you encountered this kind of problem?

Hello!

It is strange that you do not see any of the sound cards in the Ubuntu desktop sound settings.

I have not seen any issues with audio for working via HDMI …

$ speaker-test -D hw:tegrahda,7 -c 2 -r 48000 -F S16_LE -t sine -f 500

What version of Jetpack/L4T are you using? Have you made any changes?

What does ‘pacmd list-sinks’ show?

Regards,
Jon

thank you for your reply

What version of Jetpack/L4T are you using? Have you made any changes?

JetPack 4.2.3 l4t 32.2.1 No modification

nvidia@calmcar-pdaq:~$ pacmd list-sinks
3 sink(s) available.
    index: 0
        name: <alsa_output.platform-sound.analog-mono>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9009
        volume: mono: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le 1ch 44100Hz
        channel map: mono
                     Mono
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 116.00 .. 371.52 ms
        card: 1 <alsa_card.platform-sound>
        module: 8
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = ""
                alsa.id = "ADMAIF8 CIF ADMAIF8-7"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "7"
                alsa.card = "1"
                alsa.card_name = "tegra-snd-t186ref-mobile-rt565x"
                alsa.long_card_name = "tegra-snd-t186ref-mobile-rt565x"
                device.bus_path = "platform-sound"
                sysfs.path = "/devices/sound/sound/card1"
                device.form_factor = "internal"
                device.string = "hw:1"
                device.buffering.buffer_size = "32768"
                device.buffering.fragment_size = "16384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-mono"
                device.profile.description = "Analog Mono"
                device.description = "Built-in Audio Analog Mono"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card"
        ports:
                analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
                        properties:

        active port: <analog-output>
    index: 1
        name: <alsa_output.hw_tegrahda_7>
        driver: <module-alsa-sink.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9000
        volume: front-left: 65536 / 100% / 0.00 dB,   front-left-of-center: 65536 / 100% / 0.00 dB,   front-center: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB,   front-right-of-center: 65536 / 100% / 0.00 dB,   rear-center: 65536 / 100% / 0.00 dB,   aux0: 65536 / 100% / 0.00 dB,   aux1: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 2
        sample spec: s16le 8ch 44100Hz
        channel map: front-left,front-left-of-center,front-center,front-right,front-right-of-center,rear-center,aux0,aux1
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 2.00 .. 92.88 ms
        module: 22
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 0"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "7"
                alsa.card = "0"
                alsa.card_name = "tegra-hda"
                alsa.long_card_name = "tegra-hda at 0x3518000 irq 381"
                device.bus_path = "platform-3510000.hda"
                sysfs.path = "/devices/3510000.hda/sound/card0"
                device.form_factor = "internal"
                device.string = "hw:tegrahda,7"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.description = "Built-in Audio"
                device.icon_name = "audio-card"
  * index: 2
        name: <combined>
        driver: <module-combine-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 1000
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB,   rear-left: 65536 / 100% / 0.00 dB,   rear-right: 65536 / 100% / 0.00 dB,   front-center: 65536 / 100% / 0.00 dB,   lfe: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 47 KiB
        max rewind: 0 KiB
        monitor source: 3
        sample spec: s16le 6ch 44100Hz
        channel map: front-left,front-right,rear-left,rear-right,front-center,lfe
                     Surround 5.1
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 200.00 ms
        module: 24
        properties:
                device.class = "filter"
                device.description = "Simultaneous output to Built-in Audio Analog Mono, Built-in Audio"
                device.icon_name = "audio-card"

nvidia@calmcar-pdaq:~$ speaker-test -D hw:tegrahda,7 -c 2 -r 48000 -F S16_LE -t sine -f 500

speaker-test 1.1.3

Playback device is hw:tegrahda,7
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 500.0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
1 - Front Right
Time per period = 5.645036
0 - Front Left
1 - Front Right
Time per period = 5.972258
0 - Front Left
1 - Front Right
Time per period = 5.970122
0 - Front Left
1 - Front Right
Time per period = 5.972894
0 - Front Left
1 - Front Right
Time per period = 5.973090
0 - Front Left
1 - Front Right
Time per period = 5.973601
0 - Front Left
1 - Front Right
Time per period = 5.971248
0 - Front Left
1 - Front Right

tx2 ubuntu 18.04

Hello!

So speaker-test seems to run. Do you not hear any output? What HDMI device is the TX2 connected to?

Regards,
Jon

No sound ,Display with speakers

I found that tx2 28.2 has sound ubuntu16.04

But 32.2.1 does not ubuntu18.04

Hello!

That is strange that 32.2.1 does not work. I don’t recall any issue with 32.x. However, 32.2.1 is not the newest 32.x release, please can you try the latest …

Regards,
Jon

Doesn’t this version work?

Hello!

As far as I know it should work, but given you were trying different versions and that this is an old version could be worth trying the latest. Any reason you want to use 32.2.1 and not the latest?

Jon

Some of our drivers are adapted to this version,
If the sound card is ok, Why is there no sound from HDMI?

Or which ones are related to HDMI audio output? I’ll check

Hello!

Can you check that the HDMI output is not muted …

$ amixer --card tegrahda sget IEC958,1

If it shows up as ‘off’ then unmute …

$ amixer --card tegrahda sset IEC958,1 unmute

Regards,
Jon

nvidia@calmcar-pdaq:~$ amixer --card tegrahda sget IEC958,1
amixer: Unable to find simple control 'IEC958',1


Without this controller IEC958?

Hello!

What does the following show …

$ amixer --card tegrahda controls

Jon