Help with s905x Analog out on 7.0.2.009

  • As I understand it, on the latest builds audio should be sent to HDMI, Analog (AV out) and SPDIF simultaneously regardless of the settings in Kodi unless using Bluetooth/Pulseaudio.

    I have been banging my head against the wall trying to get analog out working with no success.

    I'm running 7.0.2.009 on a X96 s905x 2/16G box. I have also tried a couple of the last devel builds. No dice.

    I can see the interfaces:

    The only thing immediately suspicious in dmesg is:

    Code
    dmesg | grep snd
    [    3.845857@1] aml_snd_card: headphone detection disable=1
    [    3.846243@1] aml_snd_m8_card aml_m8_snd.46: T9015-audio-hifi <-> I2S.39 mapping ok
    [    3.853509@1] aml_snd_m8_card aml_m8_snd.46: dit-hifi <-> SPDIF.40 mapping ok
    [    3.866774@1] aml_snd_m8_card aml_m8_snd.46: pcm2bt-pcm <-> PCM.41 mapping ok
    [    3.873754@1] aml_snd_m8_card aml_m8_snd.46: ASoC: no source widget found for LOUTL
    [    3.881345@1] aml_snd_m8_card aml_m8_snd.46: ASoC: Failed to add route LOUTL -> direct -> Ext Spk
    [    3.890134@1] aml_snd_m8_card aml_m8_snd.46: ASoC: no source widget found for LOUTR
    [    3.897722@1] aml_snd_m8_card aml_m8_snd.46: ASoC: Failed to add route LOUTR -> direct -> Ext Spk
    [    4.017846@1] aml_snd_card: audio use jtag pinmux as i2s output, read val =ffffffff

    Am I wrong in assuming that the device tree is correct since aplay -l lists the devices?

  • Analog audio in S905X is via T9015 codec which seems to have mapped correctly on your device. What kind of audio cable do you use? With my S905X device a standard 3.5mm plug is working well. Can you confirm that analog audio works for you in Android?


  • Analog audio in S905X is via T9015 codec which seems to have mapped correctly on your device. What kind of audio cable do you use? With my S905X device a standard 3.5mm plug is working well. Can you confirm that analog audio works for you in Android?

    Although I now have LE on NAND, analog out was working with android during the brief time I was testing.

    I have discovered through alsamixer that Audio i2s and Audio spdif were both muted. When I unmute/mute Audio i2s in alsamixer I can hear a thud through my amplifier, but no further output. Maybe i2s has a hidden mixer control which is currently set to 0?
    [hr]
    Hmmmm... only controls for i2s and spdif are MONO switches.

    Edited once, last by Jaaxx (November 25, 2016 at 8:07 AM).

  • I think this is going to turn into a full bug report soon. Seems no one else is having this issue.

    I find this when starting a livetv stream:

    And this little bit of oddness at the tail end of "amixer -c 0 contents"

    Code
    numid=10,iface=PCM,name='Playback Channel Map'
      ; type=INTEGER,access=rw---R--,values=8,min=0,max=36,step=0
    amixer: Control hw:0 element read error: Invalid argument

    I will setup a fresh SD card with 009 and create a new post with a full bug report and logs as soon as I have a little more time.