No sound post-upgrade with HifiBerry AMP+ when playing video files; OK with music files, YouTube

I recently upgraded my Pi3 with HifiBerry AMP+ to OSMC 2017.05-2 through the UI. Video files now play without audio through the amp, yet MP3 files and YouTube streams play fine. Audio output through HDMI works fine as well. No other upgrades are pending, although I did an “apt-get update; apt-get dist-upgrade” to be sure.

If you have any ideas, please let me know. I noticed others had issues with audio and DACs after the upgrade to OSMC.2017.05-1, with fixes applied in OSMC.2017.05-2. My system appears to be up-to-date, however.

Boot config and log file output follow:

> cat /boot/config.txt 
gpu_mem_1024=256  
dtoverlay=hifiberry-amp
disable_splash=1
start_x=1
sdtv_aspect=1  
disable_overscan=1
hdmi_ignore_cec_init=1  
gpu_mem_256=128  
gpu_mem_512=256  
overscan_scale=1
dtparam=audio=off  

> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_amp], device 0: HifiBerry AMP HiFi tas5713-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0

> dmesg | grep snd                       
[    4.915840] snd-hifiberry-amp soc:sound: ASoC: CODEC DAI tas5713-hifi not registered - will retry
[    5.016621] snd-hifiberry-amp soc:sound: ASoC: CODEC DAI tas5713-hifi not registered - will retry
[    6.316060] snd-hifiberry-amp soc:sound: tas5713-hifi <-> 3f203000.i2s mapping ok

(A full dmesg.log can be found at https://paste.osmc.tv/ohitosipuy.)

AMP+ configured as ALSA device:

14:38:26.186 T:1959120896  NOTICE: Enumerated ALSA devices:
14:38:26.186 T:1959120896  NOTICE:     Device 1
14:38:26.186 T:1959120896  NOTICE:         m_deviceName      : @
14:38:26.186 T:1959120896  NOTICE:         m_displayName     : Default (snd_rpi_hifiberry_amp Analog)
14:38:26.186 T:1959120896  NOTICE:         m_displayNameExtra:
14:38:26.186 T:1959120896  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
14:38:26.186 T:1959120896  NOTICE:         m_channels        : FL,FR
14:38:26.186 T:1959120896  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000
14:38:26.186 T:1959120896  NOTICE:         m_dataFormats     : AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
14:38:26.186 T:1959120896  NOTICE:         m_streamTypes     : No passthrough capabilities

Log file output when playing video (no sound):

13:58:26.689 T:1959120896  NOTICE: VideoPlayer: Opening: nfs://192.168.1.1/tmp/mnt/Data/media/shows/Dirk Gently/D1RK.G3N7LY.5.H0L1571C.D373C71V3.4G3NCY.S01E01-08/Dirk.Gently.s.Holistic.Detective.Agency.1x05.Very.Erectus.ITA.ENG.DLMux.XviD-Pir8.avi
13:58:26.690 T:1959120896 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
13:58:26.693 T:1328538608  NOTICE: Creating InputStream
13:58:26.875 T:1328538608  NOTICE: Creating Demuxer
13:58:30.726 T:1328538608  NOTICE: Opening stream: 0 source: 256
13:58:30.727 T:1328538608  NOTICE: Creating video codec with codec id: 13
13:58:30.739 T:1328538608  NOTICE: Creating video thread
13:58:30.740 T:1395647472  NOTICE: running thread: video_thread
13:58:30.740 T:1328538608  NOTICE: Opening stream: 2 source: 256
13:58:30.740 T:1328538608  NOTICE: Finding audio codec for: 86017
13:58:30.741 T:1328538608  NOTICE: Creating audio thread
13:58:30.741 T:1320150000  NOTICE: running thread: CVideoPlayerAudio::Process()
13:58:30.741 T:1328538608  NOTICE: Opening stream: 0 source: 1025
13:58:30.767 T:1320150000  NOTICE: Creating audio stream (codec id: 86017, channels: 2, sample rate: 48000, no pass-through)

This issue has been fixed in kernel source: HiFiBerry Amp+ 48kHz not working in 4.9 · Issue #2016 · raspberrypi/linux · GitHub
but I don’t think it has reached OSMC kernel.

Should be fixed next time OSMC bumps the kernel version.

Should be fixed in

So will be in the next update.

In a few hours, it should be ready for testing.

I’d appreciate it if you could test this and provide feedback before we release this as an update to other users. To test this update:

  1. Login via the command line
  2. Edit the file /etc/apt/sources.list
  3. Add the following line: deb http://apt.osmc.tv jessie-devel main
  4. Run the following commands to update: sudo apt-get update && sudo apt-get dist-upgrade && reboot
  5. Your system should have have received the update.

Please see if the issue is resolved.

I also recommend you edit /etc/apt/sources.list again and remove the line that you added after updating. This will return you to the normal update channel.

1 Like

Sound comes through the AMP+ fine with the new devel release, Sam. Thanks.

Ian.

Thanks for testing this.

Glad to hear it works.

Sam