My config :
Odroid C1 (first one)
Debian jessie distribution from Meveric
Packages I installed for Squeezelite squeezeserver :
-no desktop
-Dbus / Samba / Alsa (alsa-base alsa-tools alsa-utils) / Perl (perl
module + perl) / faad / lame

for server :

Code:
--------------------
    apt-get install -y libsox-fmt-all libflac-dev libfaad2 libmad0
  wget -O logitechmediaserver_all.deb $(wget -q -O - "ht tp ://www. 
mysqueezebox. com/update/?version=7.9.0&revision=1&geturl=1&os=deb")
  dpkg -i logitechmediaserver_all.deb
  chown -R squeezeboxserver:nogroup /usr/share/squeezeboxserver/
--------------------

for squeezelite :

Code:
--------------------
    wget -O squeezelite-armv6hf ht tp: // ralph_irving. users. sourceforge. net 
/pico / squeezelite-armv6hf-noffmpeg
  mv squeezelite-armv6hf /usr/bin
  chmod a+x /usr/bin/squeezelite-armv6hf
--------------------

my device is a Hifimediy sabre USB DAC2 async :

Code:
--------------------
    
  /usr/bin/squeezelite-armv6hf -l
  Output devices:
  ...
  sysdefault:CARD=Audio          - SA9023 USB Audio, USB Audio - Default Audio 
Device
  front:CARD=Audio,DEV=0         - SA9023 USB Audio, USB Audio - Front speakers
  surround21:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=Audio,DEV=0        - SA9023 USB Audio, USB Audio - IEC958 
(S/PDIF) Digital Audio Output
  dmix:CARD=Audio,DEV=0          - SA9023 USB Audio, USB Audio - Direct sample 
mixing device
  dmix:CARD=Audio,DEV=1          - SA9023 USB Audio, USB Audio #1 - Direct 
sample mixing device
  dsnoop:CARD=Audio,DEV=0        - SA9023 USB Audio, USB Audio - Direct sample 
snooping device
  dsnoop:CARD=Audio,DEV=1        - SA9023 USB Audio, USB Audio #1 - Direct 
sample snooping device
  hw:CARD=Audio,DEV=0            - SA9023 USB Audio, USB Audio - Direct 
hardware device without any conversions
  hw:CARD=Audio,DEV=1            - SA9023 USB Audio, USB Audio #1 - Direct 
hardware device without any conversions
  plughw:CARD=Audio,DEV=0        - SA9023 USB Audio, USB Audio - Hardware 
device with all software conversions
  plughw:CARD=Audio,DEV=1        - SA9023 USB Audio, USB Audio #1 - Hardware 
device with all software conversions
--------------------

My asound.conf

Code:
--------------------
    
  cat /etc/asound.conf
  pcm.!default {
  type hw
  card 1
  device 0
  }
  ctl.!default {
  type hw
  card 1
  }
--------------------

playing 16/44100 FLAC with my DAC (sysdefault:CARD=Audio) :
the squeezelite log file :

Code:
--------------------
    /usr/bin/squeezelite-armv6hf -o sysdefault:CARD=Audio -f 
/var/log/squeezelite.log -d all=debug -C 5
  [14:41:36.262805] stream_init:294 init stream
  [14:41:36.263291] stream_init:295 streambuf size: 2097152
  [14:41:36.270036] output_init_alsa:873 init output
  [14:41:36.270163] output_init_alsa:902 requested alsa_buffer: 40 alsa_period: 
4 format: any mmap: 1
  [14:41:36.270250] output_init_common:347 outputbuf size: 3528000
  [14:41:36.270469] output_init_common:371 idle timeout: 5000
  [14:41:36.297148] output_init_common:411 supported rates: 384000 352800 
192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
  [14:41:36.364066] output_init_alsa:928 memory locked
  [14:41:36.364713] output_init_alsa:951 set output sched fifo rt: 45
  [14:41:36.364790] decode_init:130 init decode, include codecs:  exclude 
codecs:
  [14:41:36.364945] register_dsd:625 using dsd to decode dsf,dff
  [14:41:36.365208] register_ff:770 using ffmpeg to decode alc
  [14:41:36.365275] register_ff:754 using ffmpeg to decode wma,wmap,wmal
  [14:41:36.365340] register_faad:641 using faad to decode aac
  [14:41:36.365378] register_vorbis:330 using vorbis to decode ogg
  [14:41:36.365412] register_flac:286 using flac to decode flc
  [14:41:36.365444] register_pcm:414 using pcm to decode aif,pcm
  [14:41:36.365488] register_mad:413 using mad to decode mp3
  [14:41:36.366207] discover_server:818 sending discovery
  [14:41:36.366947] discover_server:829 got response from: 192.168.0.50:3483
  [14:41:36.367107] slimproto:917 connecting to 192.168.0.50:3483
  [14:41:36.367377] slimproto:956 connected
  [14:41:36.367448] slimproto:967 local player
  [14:41:36.367489] sendHELO:138 mac: 00:1e:06:a8:30:ad
  [14:41:36.367526] sendHELO:140 cap: 
Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8.5-823,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3,loc
  [14:41:36.417139] process:521 strm
  [14:41:36.417263] process_strm:269 strm command s
  [14:41:36.417306] process_strm:342 strm s autostart: 1 transition period: 10 
transition type: 0 codec: m
  [14:41:36.417362] sendSTAT:184 STAT: STMf
  [14:41:36.417442] codec_open:221 codec open: 'm'
  [14:41:36.417534] stream_sock:393 connecting to 192.168.0.50:9000
  [14:41:36.417746] stream_sock:422 header: GET 
/stream.mp3?player=00:1e:06:a8:30:ad HTTP/1.0
  
  
  [14:41:36.417807] sendSTAT:184 STAT: STMc
  [14:41:36.417854] process_strm:377 set fade mode: 0
  [14:41:36.418747] process:521 audg
  [14:41:36.418834] process_audg:433 audg gainL: 65536 gainR: 65536 adjust: 1
  [14:41:36.418874] set_volume:229 setting internal gain left: 65536 right: 
65536
  [14:41:36.419974] process:521 setd
  [14:41:36.420375] process:521 setd
  [14:41:36.421116] process:521 aude
  [14:41:36.421198] process_aude:415 enable spdif: 1 dac: 1
  [14:41:36.421831] process:521 audg
  [14:41:36.421910] process_audg:433 audg gainL: 65536 gainR: 65536 adjust: 1
  [14:41:36.421952] set_volume:229 setting internal gain left: 65536 right: 
65536
  [14:41:36.476585] stream_thread:180 headers: len: 116
  HTTP/1.1 200 OK
  Server: Logitech Media Server (7.9.0 - 1487237844)
  Connection: close
  Content-Type: audio/mpeg
  
  
  [14:41:36.476941] sendRESP:215 RESP
  [14:41:40.366104] output_thread:621 open output device: sysdefault:CARD=Audio
  [14:41:40.366387] alsa_open:338 opening device at: 44100
  [14:41:40.372945] alsa_open:389 opened device sysdefault:CARD=Audio using 
format: S32_LE sample rate: 44100 mmap: 1
  [14:41:40.373324] alsa_open:468 buffer: 40 period: 4 -> buffer size: 3763 
period size: 940
  [14:41:40.381004] mad_decode:243 setting track_start
  [14:41:40.381128] mad_decode:272 gapless: skipping 529 frames at start
  [14:41:40.415184] _output_frames:62 start buffer frames: 69743
  [14:41:40.415343] _output_frames:147 track start sample rate: 32000 
replay_gain: 0
  [14:41:40.425439] output_thread:621 open output device: sysdefault:CARD=Audio
  [14:41:40.426222] alsa_open:338 opening device at: 32000
  [14:41:40.432537] alsa_open:389 opened device sysdefault:CARD=Audio using 
format: S32_LE sample rate: 32000 mmap: 1
  [14:41:40.432911] alsa_open:468 buffer: 40 period: 4 -> buffer size: 2730 
period size: 682
  [14:41:40.465150] sendSTAT:184 STAT: STMs
  [14:41:40.465404] sendSTAT:184 STAT: STMt
  [14:41:41.001208] process:521 strm
  [14:41:41.001338] process_strm:269 strm command t
  [14:41:41.001393] sendSTAT:184 STAT: STMt
--------------------

And Alsa log :

Code:
--------------------
    cat /proc/asound/card1/pcm0p/sub0/hw_params
  access: MMAP_INTERLEAVED
  format: S16_LE
  subformat: STD
  channels: 2
  rate: 48000 (48000/1)
  period_size: 1024
  buffer_size: 16384
--------------------

If I try to force 16 bit and direct hardware with the -a command line :

Code:
--------------------
    /usr/bin/squeezelite-armv6hf -o sysdefault:CARD=Audio -a 80::16:0 -f 
/var/log/squeezelite.log -d all=debug -C 5
--------------------

Alsa stays in 48khz and squeezelite seems opening twice. First time in
44100 (Ok) and just after  in 32000 :confused: :

Code:
--------------------
    [15:05:08.088658] output_thread:621 open output device: 
sysdefault:CARD=Audio
  [15:05:08.088947] alsa_open:338 opening device at: 44100
  [15:05:08.095428] alsa_open:389 opened device sysdefault:CARD=Audio using 
format: S16_LE sample rate: 44100 mmap: 0
  [15:05:08.095780] alsa_open:468 buffer: 80 period: 4 -> buffer size: 3763 
period size: 940
  [15:05:08.103135] mad_decode:243 setting track_start
  [15:05:08.103271] mad_decode:272 gapless: skipping 529 frames at start
  [15:05:08.115772] _output_frames:62 start buffer frames: 32879
  [15:05:08.115934] _output_frames:147 track start sample rate: 32000 
replay_gain: 0
  [15:05:08.126023] output_thread:621 open output device: sysdefault:CARD=Audio
  [15:05:08.126801] alsa_open:338 opening device at: 32000
  [15:05:08.133145] alsa_open:389 opened device sysdefault:CARD=Audio using 
format: S16_LE sample rate: 32000 mmap: 0
  [15:05:08.133500] alsa_open:468 buffer: 80 period: 4 -> buffer size: 2730 
period size: 682
  [15:05:08.155098] sendSTAT:184 STAT: STMs
  [15:05:08.155336] sendSTAT:184 STAT: STMt
--------------------

If I try direct hardware :

Code:
--------------------
    /usr/bin/squeezelite-armv6hf -o hw:1,0 -a 80::16:0 -f 
/var/log/squeezelite.log -d all=debug -C 5
--------------------

Alsa gives :

Code:
--------------------
     cat /proc/asound/card1/pcm0p/sub0/hw_params
  access: RW_INTERLEAVED
  format: S16_LE
  subformat: STD
  channels: 2
  rate: 32000 (32000/1)
  period_size: 640
  buffer_size: 2560
--------------------

if I try direct hardware with -a:80::24:0 or -a:80::24_3:0 or without -a
option Odroid crashes with aKernel panic fault.

What is wrong ?


------------------------------------------------------------------------
robob95's Profile: http://forums.slimdevices.com/member.php?userid=66607
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to