cancel
Showing results for 
Search instead for 
Did you mean: 

sgtl5000 codec dsi i2c

Ara.1
Senior

Hi All,

i am using stm32mp1 with i2c on sgtl5000 codec and control lines are over carrier i2s

i am getting kernel soc sgtl5000.c error

sgtl5000 0-000a: Error reading chip id -6

<STM32_PINMUX('A', 15, AF5)>; /* I2S1_WS */

<STM32_PINMUX('Z', 0, AF5)>, /* I2S1_CK */

                  <STM32_PINMUX('Z', 1, AF5)>, /* I2S1_SDI */

                  <STM32_PINMUX('Z', 2, AF5)>, /* I2S1_SDO */

                  <STM32_PINMUX('Z', 6, AF5)>; /* I2S1_MCK */

Any reference dts on i2s1 would be helpful.. and suggest on kernel error .

52 REPLIES 52
Ara.1
Senior

Hi bernard,

still i been diverted to other work, i will let you know on findings

Ara.1
Senior

Hi Bernard,

i am back on Audio , MCLK I2S issue, clock is getting enabled after rootfs some audio init script gets clock enable, but not possible before thiis, where sgtl5000 probe gets defer expires.

so may i get input any patch in uboot side where i can get i2s mclk gets enable before audio codec sgtl500 gets probe.

Ara.1
Senior

finally i got sound working, following are observations:

  1. speaker test utility works perfectly
  2. aplay works but i can play only wav file
  3. gst-play-1.0 play video, but no audio heard,

Has any one played mp3 file using

gst-play-1.0 file:///run/media/sda1/AudioFiles

is there anything am missing ?

even i tried .webm file as example

i see outs

root@st:~# gst-play-1.0 ST2297_visionv3.webm

Press 'k' to see a list of keyboard shortcuts.

Now playing /home/root/ST2297_visionv3.webm

Prerolling...

** (gst-play-1.0:976): WARNING **: 15:59:39.678: Could not bind to zwp_linux_dmabuf_v1

Redistribute latency...

Redistribute latency...

Redistribute latency...

0:00:13.3 / 0:04:02.4