No sound on Raspberry PI 1 with Onkyo Reciever

Hi,

I’ve been successfully running Raspbmc for a couple of years on a Raspberry Pi 1 512MB. Today I upgraded to OSMC without changing any of my set up and I can’t get any sound through HDMI. Sound through the analogue port is fine.

I’m assuming these is either a config issue?

The receiver I’m using is a Onkyo TX-SR605. HDMI cable from the PI to the receiver, and then through that to the TV.

Please help :smiley:

Are you using the userdata folder from the old install?
Might be worth deleting that and setting up your settings again.
At the very least go to system/audio output in settings and “Reset above settings to default”, and then make sure the settings look right.

Yeah, it was a complete reinstall. I’ve tweaked the settings a lot, and then reset to default as well.

A direct HDMI connection from the PI to the TV produces sound, so it appears to be something between OSMC and my amp. This was all fine with raspbmc. Not sure what I need to do :confused:

Have you tried out different settings in Audio Output? Fixed [44,48,etc], Best Match, Passthrough Enabled, etc.

Seems like your Pi may be outputting audio that your receiver doesn’t support.

Yep. Tried them all. Has OSMC changed that much from Raspbmc that it would stop working entirely? I’m not convinced this isn’t just a setting somewhere…

Is everything in OSMC Settings > Pi Config set to defaults? Not sure if the sound card overlays in there could cause any problems.

Yeah, it is.

Playing something with debug logs on would be great for us to look at.

Also: be sure to set audio for passthrough as well. You’ll need ‘Advanced’ or ‘Expert’ settings for this I believe.

Sam

Thanks Sam. Been away a couple of days, so only just had chance to do this. I enabled debug mode for the sound component. Started party mode, then hit next to start a new track and captured this:

22:49:24 T:3024269312   DEBUG: LIRC: Update - NEW at 213248972:197 0 KEY_NEXT linux-input-layer (KEY_NEXT)
22:49:24 T:3024269312   DEBUG: OnKey: sleep (0xdf) pressed, action is SkipNext
22:49:24 T:3024269312   DEBUG: DoWork - Saving file state for audio item musicdb://songs/4822.mp3
22:49:25 T:3024269312   DEBUG: Loading settings for musicdb://songs/2798.mp3
22:49:25 T:3024269312   DEBUG: CPlayerCoreFactory::GetPlayers(musicdb://songs/2798.mp3)
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/mms/udp
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
22:49:25 T:3024269312   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
22:49:25 T:3024269312   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
22:49:25 T:3024269312   DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (3)
22:49:25 T:3024269312   DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1
22:49:25 T:3024269312   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: PAPlayer (3)
22:49:25 T:3024269312   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
22:49:25 T:3024269312   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
22:49:25 T:3024269312   DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
22:49:25 T:3024269312   DEBUG: CSMBFile::Close closing fd 10001
22:49:25 T:3024262176   DEBUG: CActiveAE::DiscardStream - audio stream deleted
22:49:25 T:3024262176   DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
22:49:25 T:3024269312    INFO: CActiveAEResamplePi::~CActiveAEResamplePi
22:49:25 T:3024269312   DEBUG: CActiveAEResamplePi:DeInit
22:49:25 T:3024269312   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_mixer handle 0x5689a68
22:49:25 T:2685400096   DEBUG: OnPlayBackStopped: play state was 2, starting 1
22:49:25 T:2685400096   DEBUG: Thread PAPlayer 2685400096 terminating
22:49:25 T:3024262176    INFO: CActiveAEResamplePi::~CActiveAEResamplePi
22:49:25 T:3024262176   DEBUG: CActiveAEResamplePi:DeInit
22:49:25 T:3024262176   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_mixer handle 0xa0f195e8
22:49:25 T:3024262176   DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
22:49:25 T:3024269312   DEBUG: CSMBFile::Open - opened mp3/Levellers/Letters From The Underground/02-Death Loves Youth.mp3, fd                                                                                                               =10001
22:49:25 T:3024269312   DEBUG: Open - probing detected format [mp3]
22:49:25 T:3024269312   DEBUG: Open - setting usetoc to 0 for accurate VBR MP3 seek
22:49:25 T:3024269312   DEBUG: Open - avformat_find_stream_info starting
22:49:25 T:3024269312   DEBUG: ffmpeg[B442B000]: [mp3] Estimating duration from bitrate, this may be inaccurate
22:49:25 T:3024269312   DEBUG: Open - av_find_stream_info finished
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]: Input #0, mp3, from 'musicdb://songs/2798.mp3':
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:   Metadata:
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     title           : Death Loves Youth
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     album           : Letters From The Underground
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     encoded_by      : Encoded with FreeRIP
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     genre           : Folk Rock
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     artist          : Levellers
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     album_artist    : Levellers
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     TLEN            : 231640
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     track           : 2/11
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     date            : 2008
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:   Duration: 00:03:51.69, start: 0.000000, bitrate: 192 kb/s
22:49:25 T:3024269312    INFO: ffmpeg[B442B000]:     Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
22:49:25 T:3024269312   DEBUG: CDVDDemuxFFmpeg::AddStream(0, ...) -> 0
22:49:25 T:3024269312   DEBUG: FactoryCodec - Audio: passthrough - Opening
22:49:25 T:3024269312   DEBUG: FactoryCodec - Audio: passthrough - Failed
22:49:25 T:3024269312   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
22:49:25 T:3024269312   DEBUG: FactoryCodec - Audio: FFmpeg - Opened
22:49:26 T:3024269312   DEBUG: CSMBFile::Open - opened mp3/Levellers/Letters From The Underground/02-Death Loves Youth.mp3, fd                                                                                                               =10000
22:49:26 T:3024269312   DEBUG: unrecognized ID3 frame detected: MCDI
22:49:26 T:3024269312   DEBUG: unrecognized ID3 frame detected: TLEN
22:49:26 T:3024269312   DEBUG: CSMBFile::Close closing fd 10000
22:49:26 T:3024269312   DEBUG: SeekTime - seek ended up on time 0
22:49:26 T:3024269312   DEBUG: Previous line repeats 1 times.
22:49:26 T:3024269312    INFO: CActiveAEResamplePi::CActiveAEResamplePi
22:49:26 T:3024269312    INFO: CActiveAEResamplePi::Init remap:(nil) chan:2->2 rate:44100->44100 format:6->3 bits:16->32 dithe                                                                                                               r:0->0 norm:0 upmix:0
22:49:26 T:3024269312    INFO: CActiveAEResamplePi::Init    1.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00
22:49:26 T:3024269312    INFO: CActiveAEResamplePi::Init    0.00   1.00   0.00   0.00   0.00   0.00   0.00   0.00
22:49:26 T:3024269312    INFO: CActiveAEResamplePi::Init    0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00
22:49:26 T:3024269312    INFO: Previous line repeats 5 times.
22:49:26 T:3024269312   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_mixer input port 232 output port 231 m_handle                                                                                                                0x5689a68
22:49:26 T:3024269312   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_mixer) - port(232), nBufferCo                                                                                                               untMin(1), nBufferCountActual(1), nBufferSize(524288), nBufferAlignmen(32)
22:49:26 T:3024269312   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.audio_mixer) - port(231), nBufferC                                                                                                               ountMin(1), nBufferCountActual(1), nBufferSize(524288) nBufferAlignmen(32)
22:49:26 T:3024269312   DEBUG: ffmpeg[B442B000]: [mp3] Could not update timestamps for skipped samples.
22:49:27 T:3024269312    INFO: AudioDecoder: File is queued
22:49:27 T:3024262176    INFO: CActiveAEResamplePi::CActiveAEResamplePi
22:49:27 T:3024262176    INFO: CActiveAEResamplePi::Init remap:(nil) chan:2->6 rate:44100->44100 format:3->3 bits:32->32 dithe                                                                                                               r:0->0 norm:1 upmix:1
22:49:27 T:3024262176    INFO: CActiveAEResamplePi::Init    1.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00
22:49:27 T:3024262176    INFO: CActiveAEResamplePi::Init    0.00   1.00   0.00   0.00   0.00   0.00   0.00   0.00
22:49:27 T:3024262176    INFO: CActiveAEResamplePi::Init    0.50   0.50   0.00   0.00   0.00   0.00   0.00   0.00
22:49:27 T:3024262176    INFO: Previous line repeats 1 times.
22:49:27 T:3024262176    INFO: CActiveAEResamplePi::Init    1.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00
22:49:27 T:3024269312   DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 1.000000, Track/Album Gain 89.000000, P                                                                                                               eak 0.000000
22:49:27 T:3024262176    INFO: CActiveAEResamplePi::Init    0.00   1.00   0.00   0.00   0.00   0.00   0.00   0.00
22:49:27 T:3024262176    INFO: CActiveAEResamplePi::Init    0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00
22:49:27 T:3024262176    INFO: Previous line repeats 1 times.
22:49:27 T:3024262176   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_mixer input port 232 output port 231 m_handle                                                                                                                0xa0f195e8
22:49:27 T:3024262176   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_mixer) - port(232), nBufferCo                                                                                                               untMin(1), nBufferCountActual(1), nBufferSize(524288), nBufferAlignmen(32)
22:49:27 T:3024262176   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.audio_mixer) - port(231), nBufferC                                                                                                               ountMin(1), nBufferCountActual(1), nBufferSize(524288) nBufferAlignmen(32)
22:49:27 T:3024269312    INFO: PAPlayer::PrepareStream - Ready
22:49:27 T:3024269312   DEBUG: PlayFile: OpenFile succeed, play state 1
22:49:27 T:2685400096  NOTICE: Thread PAPlayer start, auto delete: false
22:49:27 T:2685400096   DEBUG: PAPlayer::Process - Playback started
22:49:27 T:2685400096   DEBUG: OnPlayBackStarted: play state was 1, starting 0
22:49:27 T:3024269312   DEBUG: CGUIInfoManager::SetCurrentSong(musicdb://songs/2798.mp3)
22:49:27 T:3024269312   DEBUG: Loading additional tag info for file smb://LS-GL613/mp3/Levellers/Letters From The Underground/                                                                                                               02-Death Loves Youth.mp3
22:49:27 T:3024269312   DEBUG: CSMBFile::Open - opened mp3/Levellers/Letters From The Underground/02-Death Loves Youth.mp3, fd                                                                                                               =10000
22:49:27 T:3024269312   DEBUG: unrecognized ID3 frame detected: MCDI
22:49:27 T:3024269312   DEBUG: unrecognized ID3 frame detected: TLEN
22:49:27 T:3024269312   DEBUG: CSMBFile::Close closing fd 10000
22:49:27 T:3024269312   DEBUG: CAnnouncementManager - Announcement: OnRemove from xbmc
22:49:27 T:3024269312   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnRemove
22:49:27 T:3024269312   DEBUG: GetRandomSong query = select * from songview  WHERE songview.idSong not in (6156, 6722, 5080, 3                                                                                                               829, 5110, 5722, 2798, 4822, 990, 3464) ORDER BY RANDOM() LIMIT 1
22:49:28 T:3024269312   DEBUG: SELECT albumview.*,albumartistview.*   FROM albumview   LEFT JOIN albumartistview ON albumview.                                                                                                               idAlbum = albumartistview.idAlbum   WHERE albumview.idAlbum = 303   ORDER BY albumartistview.iOrder
22:49:28 T:3024269312   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
22:49:29 T:3024269312   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
22:49:29 T:3024269312    INFO: PARTY MODE MANAGER: Adding randomly selected song at 9:[smb://LS-GL613/mp3/Levellers/Zeitgeist                                                                                                                [Bonus Disc]/10-Hobo.mp3]
22:49:29 T:3024269312   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
22:49:29 T:3024269312   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
22:49:29 T:3024269312   DEBUG: UPnP: Building didl for object 'musicdb://songs/2798.mp3'
22:49:29 T:3024269312   DEBUG: LIRC: Update - NEW at 213253050:197 0 KEY_NEXT_UP linux-input-layer (KEY_NEXT_UP)
22:49:29 T:2513429536  NOTICE: Thread JobWorker start, auto delete: true
22:49:29 T:2513429536   DEBUG: DoWork - Saving file state for audio item musicdb://songs/4822.mp3
22:49:29 T:3024269312   DEBUG: CGUIMediaWindow::GetDirectory (playlistmusic://)
22:49:29 T:3024269312   DEBUG:   ParentPath = [playlistmusic://]
22:49:29 T:2496652320  NOTICE: Thread BackgroundLoader start, auto delete: false
22:49:29 T:2513429536   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle                                                                                                                0x60a4418
22:49:29 T:2513429536   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferC                                                                                                               ountMin(2), nBufferCountActual(2), nBufferSize(130032), nBufferAlignmen(16)
22:49:29 T:2513429536   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0                                                                                                               x55d2170
22:49:29 T:2513429536   DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(                                                                                                               1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
22:49:29 T:2513429536   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x60a4418
22:49:29 T:2513429536   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x55d2170
22:49:29 T:2513429536   DEBUG: DecodeJpegToTexture: decoded special://masterprofile/Thumbnails/0/01cc7745.jpg 540x540
22:49:29 T:2513429536   DEBUG: DoWork - took 137 ms to load special://masterprofile/Thumbnails/0/01cc7745.jpg
22:49:30 T:2496652320   DEBUG: Thread BackgroundLoader 2496652320 terminating
22:49:40 T:2892284960   DEBUG: script.module.osmcsetting.updates :  - blurp 999 - MyMusicPlaylist.xml
22:49:59 T:2513429536   DEBUG: Thread JobWorker 2513429536 terminating (autodelete)

Could this line indicate something?

  • 22:49:25 T:3024269312 DEBUG: FactoryCodec - Audio: passthrough - Failed

No that is normal. Just shows that mp3 passthrough is not supported (as it doesn’t exist).

damn. Thought we might have something there. Any ideas on what to do next? I’m at a loss. I kinda don’t want to downgrade back to Raspbmc…

I’m giving up and attempting to roll back to Raspbmc but I can’t get the image to work. I’ve reformatted my SDcard, and written the image to it, but I don’t get anything from the PI to the TV via HDMI when I power it on. Am I missing a step? (No instructions with the image I can see)

If I install Noobs, that works fine (but as I don’t have a USB keyboard/mouse I’m stuck)

I’m getting fed up of nothing working :confused:

er…

Reinstalling OSMC from Noobs didn’t work… but changing the screen resolution from 1280 x 1024p to 1920 x 1080p did?

I now have sound…

confused

1280x1024 is a DMT (PC monitor) mode not a CEA (TV) mode.

Some TV’s (or AV receivers, if you connect via an AV receiver) will not accept sound in anything other than a CEA mode, even though the Pi is capable of sending sound in DMT modes.

You should stick to either 1280x720 or 1920x1080 as your output resolution if you want to guarantee getting sound on all HDMI devices.

You can check whether the current mode is CEA or DMT by running the following command via ssh:

tvservice -s

These two commands will list what CEA and DMT modes your HDMI device (TV or AV receiver) reports that it can accept:

tvservice -m CEA
tvservice -m DMT

What will it default to resolution wise on install? I don’t remember specifically setting it to that res (being as I have a full HD Tv, that would be a bit silly :slight_smile: )

osmc@osmc:~$ tvservice -s
state 0x12001a [HDMI DMT (82) RGB full 16:9], 1920x1080 @ 59.94Hz, progressive
osmc@osmc:~$ tvservice -m CEA
Group CEA has 22 modes:
(native) mode 1: 640x480 @ 60Hz 4:3, clock:25MHz progressive
mode 2: 720x480 @ 60Hz 4:3, clock:27MHz progressive
mode 3: 720x480 @ 60Hz 16:9, clock:27MHz progressive
mode 4: 1280x720 @ 60Hz 16:9, clock:74MHz progressive
mode 5: 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced
mode 14: 720x480 @ 60Hz 4:3, clock:54MHz x2 progressive
mode 15: 720x480 @ 60Hz 16:9, clock:54MHz x2 progressive
(prefer) mode 16: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive
mode 17: 720x576 @ 50Hz 4:3, clock:27MHz progressive
mode 18: 720x576 @ 50Hz 16:9, clock:27MHz progressive
mode 19: 1280x720 @ 50Hz 16:9, clock:74MHz progressive
mode 20: 1920x1080 @ 50Hz 16:9, clock:74MHz interlaced
mode 21: 720x576 @ 50Hz 4:3, clock:27MHz x2 interlaced
mode 25: 720x576 @ 50Hz 4:3, clock:54MHz x4 interlaced
mode 30: 720x576 @ 50Hz 16:9, clock:54MHz x2 progressive
mode 31: 1920x1080 @ 50Hz 16:9, clock:148MHz progressive
mode 32: 1920x1080 @ 24Hz 16:9, clock:74MHz progressive
mode 33: 1920x1080 @ 25Hz 16:9, clock:74MHz progressive
mode 34: 1920x1080 @ 30Hz 16:9, clock:74MHz progressive
mode 35: 720x480 @ 60Hz 4:3, clock:108MHz x4 progressive
mode 36: 720x480 @ 60Hz 16:9, clock:108MHz x4 progressive
mode 38: 720x576 @ 50Hz 16:9, clock:108MHz x4 progressive
osmc@osmc:~$ tvservice -m DMT
Group DMT has 12 modes:
mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive
mode 6: 640x480 @ 75Hz 4:3, clock:31MHz progressive
mode 9: 800x600 @ 60Hz 4:3, clock:40MHz progressive
mode 11: 800x600 @ 75Hz 4:3, clock:49MHz progressive
mode 16: 1024x768 @ 60Hz 4:3, clock:65MHz progressive
mode 17: 1024x768 @ 70Hz 4:3, clock:75MHz progressive
mode 18: 1024x768 @ 75Hz 4:3, clock:78MHz progressive
mode 35: 1280x1024 @ 60Hz 5:4, clock:108MHz progressive
mode 39: 1360x768 @ 60Hz 16:9, clock:85MHz progressive
mode 42: 1400x1050 @ 60Hz 4:3, clock:121MHz progressive
mode 51: 1600x1200 @ 60Hz 4:3, clock:162MHz progressive
mode 82: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive

Hi,

Also had this problem and your solution didn’t help me but managed to get it working this way if anyone else has this issue.

Add these lines to /boot/config.txt and reboot Raspberry.

hdmi_force_hotplug=1
hdmi_drive=2

hdmi_force_hotplug=1 sets the Raspberry to use HDMI mode even if no HDMI monitor is detected. hdmi_drive=2 sets the Raspberry to normal HDMI mode (Sound will be sent if supported and enabled). Without this line, the Rasperry would switch to DVI (with no audio) mode by default.

Thanks to shinken in the runeaudio forum