Skip to content

HDMI Audio #9

Closed
Closed
@waby38b

Description

@waby38b

a small (working !!) patch for Audio thru HDMI

log from dmesg

[   12.123433] asoc-simple-card sound: link_of (/sound/simple-audio-card,dai-link@0)
[   12.123536] asoc-simple-card sound: link_of (/sound/simple-audio-card,dai-link@1)
[   12.123648] asoc-simple-card sound: Card Name: STI-B2264
[   12.123656] asoc-simple-card sound: DAI0
[   12.123663] asoc-simple-card sound: cpu num = 1
[   12.123670] asoc-simple-card sound: cpu sysclk = 50000000Hz
[   12.123678] asoc-simple-card sound: cpu direction = IN
[   12.123684] asoc-simple-card sound: codec num = 1
[   12.123691] asoc-simple-card sound: dai name = Uni Player #2 (DAC)-sas-dai-dac
[   12.123697] asoc-simple-card sound: dai format = 4201
[   12.123705] asoc-simple-card sound: mclk-fs = 256
[   12.123712] asoc-simple-card sound: DAI1
[   12.123718] asoc-simple-card sound: cpu num = 1
[   12.123724] asoc-simple-card sound: cpu sysclk = 50000000Hz
[   12.123730] asoc-simple-card sound: cpu direction = IN
[   12.123736] asoc-simple-card sound: codec num = 1
[   12.123742] asoc-simple-card sound: codec sysclk = 148499955Hz
[   12.123749] asoc-simple-card sound: codec direction = IN
[   12.123755] asoc-simple-card sound: dai name = Uni Player #0 (HDMI)-i2s-hifi
[   12.123761] asoc-simple-card sound: dai format = 4001
[   12.123767] asoc-simple-card sound: mclk-fs = 128

Sound good...

root@4kopen ~
$ aplay --list-devices 
**** List of PLAYBACK Hardware Devices ****
card 0: STIB2264 [STI-B2264], device 0: Uni Player #2 (DAC)-sas-dai-dac sas-dai-dac-0 [Uni Player #2 (DAC)-sas-dai-dac sas-dai-dac-
0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: STIB2264 [STI-B2264], device 1: Uni Player #0 (HDMI)-i2s-hifi i2s-hifi-1 [Uni Player #0 (HDMI)-i2s-hifi i2s-hifi-1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@4kopen ~
$ aplay --list-pcms
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=STIB2264
    STI-B2264, Uni Player #2 (DAC)-sas-dai-dac sas-dai-dac-0
    Default Audio Device
sysdefault:CARD=STIB2264
    STI-B2264, Uni Player #2 (DAC)-sas-dai-dac sas-dai-dac-0
    Default Audio Device

again, sound good....

$ aplay --file-type wav Front_Center.wav 
Playing WAVE 'Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

Able to play audio on DAC but not HDMI

root@4kopen /proc/asound
$ cat cards
 0 [STIB2264       ]: simple-card - STI-B2264
                      STI-B2264

root@4kopen /proc/asound
$ cat devices
  0: [ 0]   : control
 16: [ 0- 0]: digital audio playback
 17: [ 0- 1]: digital audio playback
 33:        : timer

root@4kopen /proc/asound
$ cat modules
 0 snd_soc_simple_card

root@4kopen /proc/asound
$ cat pcm
00-00: Uni Player #2 (DAC)-sas-dai-dac sas-dai-dac-0 : Uni Player #2 (DAC)-sas-dai-dac sas-dai-dac-0 : playback 1
00-01: Uni Player #0 (HDMI)-i2s-hifi i2s-hifi-1 : Uni Player #0 (HDMI)-i2s-hifi i2s-hifi-1 : playback 1

I do not understand howto force playback on HDMI....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions