Skip to content

Instantly share code, notes, and snippets.

@miawgogo
Last active January 19, 2017 14:32
Show Gist options
  • Save miawgogo/9566e9dfe20e8c1c17fe3ed05978ce1b to your computer and use it in GitHub Desktop.
Save miawgogo/9566e9dfe20e8c1c17fe3ed05978ce1b to your computer and use it in GitHub Desktop.

Problem: The connection to alsa fails when playing any jupiter broadcasting audio file, ogg or non ogg, this only happens when playing audio to the pi-dac+ over its I2S intiface but not when using the usb dac i have. Other files play fine

MPD config

Log part that i am intrested in when playing the JB ogg:

client: [0] command returned 1
client: [0] process command "pause "0""
alsa_output: opened default:CARD=IQaudIODAC type=PLUG
alsa_output: format=S24_LE (Signed 24 bit Little Endian)
alsa_output: buffer: size=8..65536 time=181..1486078
alsa_output: period: size=4..32768 time=90..743039
alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
exception: Failed to open "Sony HiFi" [alsa]
exception: nested: Error opening ALSA device "default:CARD=IQaudIODAC"
exception: snd_pcm_hw_params() failed: Invalid argument
exception: Failed to open "Sony HiFi" [alsa]
exception: nested: Error opening ALSA device "default:CARD=IQaudIODAC"
exception: snd_pcm_hw_params() failed: Invalid argument

and MP3:

mad: detected LAME version 3.99 ("LAME3.99r")
mad: LAME peak found: 0.000000
mad: LAME track gain found: -2.500000
mad: encoder delay is 576, encoder padding is 1681
decoder: audio_format=44100:24:1, seekable=true
alsa_output: opened default:CARD=IQaudIODAC type=PLUG
alsa_output: format=S24_LE (Signed 24 bit Little Endian)
alsa_output: buffer: size=8..65536 time=181..1486078
alsa_output: period: size=4..32768 time=90..743039
alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
exception: Failed to open "Sony HiFi" [alsa]
exception: nested: Error opening ALSA device "default:CARD=IQaudIODAC"
exception: snd_pcm_hw_params() failed: Invalid argument
exception: Failed to open "Sony HiFi" [alsa]
exception: nested: Error opening ALSA device "default:CARD=IQaudIODAC"
exception: snd_pcm_hw_params() failed: Invalid argument
player: problems opening audio device while playing "Podcasts/bsd-0173.mp3"

When playing Oasis

playlist: play 1:"Oasis/(What's the Story) Morning Glory-/04 Don't Look Back in Anger.mp3"
decoder_thread: probing plugin mad
decoder: audio_format=44100:24:2, seekable=true
alsa_output: opened default:CARD=IQaudIODAC type=PLUG
alsa_output: format=S24_LE (Signed 24 bit Little Endian)
alsa_output: buffer: size=8..65536 time=181..1486078
alsa_output: period: size=4..32768 time=90..743039
alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
alsa_output: buffer_size=22050 period_size=4410
output: opened plugin=alsa name="Sony HiFi" audio_format=44100:24:2

mpd -V output:

Music Player Daemon 0.20.2

Copyright (C) 2003-2007 Warren Dukes <[email protected]>
Copyright (C) 2008-2015 Max Kellermann <[email protected]>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
 simple proxy upnp

Storage plugins:
 local smbclient nfs curl

Neighbor plugins:
 smbclient upnp

Decoders plugins:
 [mad] mp3 mp2
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [opus] opus ogg oga
 [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
 [audiofile] wav au aiff aif
 [dsdiff] dff
 [dsf] dsf
 [faad] aac
 [wavpack] wv
 [modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
 [ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
 [gme] ay gbs gym hes kss nsf nsfe sap spc vgm vgz
 [pcm]

Filters:
 libsamplerate soxr

Tag plugins:
 id3tag

Output plugins:
 shout null fifo pipe alsa ao oss pulse jack httpd recorder

Encoder plugins:
 null vorbis opus lame wave flac

Archive plugins:
 [bz2] bz2
 [iso] iso

Input plugins:
 file alsa archive curl ffmpeg smbclient nfs mms cdio_paranoia

Playlist plugins:
 extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols:
 file:// http:// https:// mms:// mmsh:// mmst:// mmsu:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps:// smb:// nfs:// cdda:// alsa://

Other features:
 avahi epoll icu inotify ipv6 systemd tcp un ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment