justin66 / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

Squeezelite v1.8 not working on 4 channel iec958 interface #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. buy a focusrite saffire 6 USB 2
2. execute "squeezelite -s $SERVER -o iec958:CARD=S6USB20,DEV=0 -n saffire -a 
32 -f 32" to send audio directly to the DAC
3. it does not work cause the card requires 4 channel output in ALSA.

What is the expected output? What do you see instead?

to work as my Musical Fidelity does when I execute the command: "squeezelite -z 
-s $SERVER -o iec958:CARD=VLink,DEV=0 -a 24 -f 24_3 -n V-Link"

What version of the product are you using? On what operating system?

Slackware 13.37 and freaking UBUNTU 12.04

Please provide any additional information below.

I can play audio in all it's upsampled glory in the Focusrite Saffire by 
executing:

AUDIODEV="iec958:CARD=S6USB20,DEV=0" play --replay-gain track "$track" -t alsa 
-D -b 32 gain -6 sinc -L 10 sinc -L 16.352 sinc -L -21k -t 1049 rate -vsMa 96k 
gain 5.9 channels 4

I'll gladly test and recompile, I'm using the latest git available code 
(Squeezelite v1.8 with Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG 
compiled by me)

Squeelite works in both Slack & Ubuntu but I could not make it play audio on 
more than 2 (TWO) channels... I've tried an asoundrc hack with a slave device 
but didnt work either... Let me know what I may do to help debug this.

Original issue reported on code.google.com by tgay...@gmail.com on 24 Feb 2015 at 2:41

GoogleCodeExporter commented 9 years ago
I hope this additional information might help getting this issue fixed.

tomg@stinkpad:~$ 
tomg@stinkpad:~$ 
tomg@stinkpad:~$ date
Tue Feb 24 12:29:53 ART 2015
tomg@stinkpad:~$ 
tomg@stinkpad:~$ 
tomg@stinkpad:~$ squeezelite -l | grep S6
  sysdefault:CARD=S6USB20        - Saffire 6USB2.0, USB Audio - Default Audio Device
  front:CARD=S6USB20,DEV=0       - Saffire 6USB2.0, USB Audio - Front speakers
  surround21:CARD=S6USB20,DEV=0  - Saffire 6USB2.0, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
  surround40:CARD=S6USB20,DEV=0  - Saffire 6USB2.0, USB Audio - 4.0 Surround output to Front and Rear speakers
  surround41:CARD=S6USB20,DEV=0  - Saffire 6USB2.0, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=S6USB20,DEV=0  - Saffire 6USB2.0, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
  surround51:CARD=S6USB20,DEV=0  - Saffire 6USB2.0, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=S6USB20,DEV=0  - Saffire 6USB2.0, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=S6USB20,DEV=0      - Saffire 6USB2.0, USB Audio - IEC958 (S/PDIF) Digital Audio Output
tomg@stinkpad:~$ 
tomg@stinkpad:~$ 
tomg@stinkpad:~$ cat /proc/asound/S6USB20/stream0 
Focusrite Saffire 6USB2.0 at usb-0000:00:1a.7-3.1.2, high speed : USB Audio

Playback:
  Status: Stop
  Interface 1
    Altset 1
    Format: S32_LE
    Channels: 4
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100, 48000, 88200, 96000
    Data packet interval: 125 us

Capture:
  Status: Stop
  Interface 2
    Altset 1
    Format: S32_LE
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 44100, 48000, 88200, 96000
    Data packet interval: 125 us
tomg@stinkpad:~$ 
tomg@stinkpad:~$ 
tomg@stinkpad:~$ 
tomg@stinkpad:~$ /home/tomg/SOX/squeezelite -s 192.168.1.76 -a 32 -o 
iec958:CARD=S6USB20,DEV=0 -a p=48000:f=32:m=1 -n Saffire -v -d all=debug
[12:30:48.003065] stream_init:290 init stream
[12:30:48.003521] stream_init:291 streambuf size: 2097152
[12:30:48.006801] output_init_alsa:817 init output
[12:30:48.006941] output_init_alsa:846 requested alsa_buffer: 0 alsa_period: 0 
format: m=1 mmap: 1
[12:30:48.006995] output_init_common:346 outputbuf size: 3528000
[12:30:48.007148] output_init_common:370 idle timeout: 0
[12:30:48.025535] output_init_common:410 supported rates: 96000 88200 48000 
44100 
[12:30:48.028243] output_init_alsa:860 unable to lock memory: Cannot allocate 
memory
[12:30:48.032500] output_thread:638 open output device: 
iec958:CARD=S6USB20,DEV=0
[12:30:48.032701] alsa_open:355 opening device at: 44100
[12:30:48.032513] output_init_alsa:883 unable to set output sched fifo: 
Operation not permitted
[12:30:48.033310] output_vis_init:135 opened visulizer shared memory as 
/squeezelite-00:1d:72:90:37:9d
[12:30:48.033437] decode_init:129 init decode, include codecs:  exclude codecs: 
[12:30:48.046017] load_ff:621 loaded libavcodec.so.56 (56.1.100)
[12:30:48.046306] load_ff:638 loaded libavformat.so.56 (56.4.101)
[12:30:48.046434] load_ff:652 loaded libavutil.so.54 (54.7.100)
[12:30:48.048101] alsa_open:406 opened device iec958:CARD=S6USB20,DEV=0 using 
format: S32_LE sample rate: 44100 mmap: 1
[12:30:48.048408] alsa_open:437 channel count not available: Invalid argument
[12:30:48.048842] register_ff:731 using ffmpeg to decode alc
[12:30:48.048896] register_ff:715 using ffmpeg to decode wma,wmap,wmal
[12:30:48.049594] load_faad:610 loaded libfaad.so.2
[12:30:48.049638] register_faad:640 using faad to decode aac
[12:30:48.050037] load_vorbis:300 loaded libvorbisfile.so.3
[12:30:48.050078] register_vorbis:329 using vorbis to decode ogg
[12:30:48.050842] load_flac:258 loaded libFLAC.so.8
[12:30:48.050886] register_flac:286 using flac to decode flc
[12:30:48.050957] register_pcm:384 using pcm to decode aif,pcm
[12:30:48.051293] load_mad:383 loaded libmad.so.0
[12:30:48.051334] register_mad:412 using mad to decode mp3
[12:30:48.051651] slimproto:848 connecting to 192.168.1.76:3483
[12:30:48.051847] slimproto:881 connected
[12:30:48.051894] slimproto:892 local player
[12:30:48.051928] sendHELO:124 mac: 00:1d:72:90:37:9d
[12:30:48.051962] sendHELO:126 cap: 
Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Fi
rmware=v1.8,ModelName=SqueezeLite,MaxSampleRate=96000,alc,wma,wmap,wmal,aac,ogg,
flc,aif,pcm,mp3,loc
[12:30:48.053873] process:494 strm
[12:30:48.053945] process_strm:256 strm command q
[12:30:48.053979] decode_flush:190 decode flush
[12:30:48.054010] output_flush:423 flush output buffer
[12:30:48.054043] sendSTAT:171 STAT: STMf
[12:30:48.054211] process:494 setd
[12:30:48.054250] sendSETDName:230 set playername: Saffire
[12:30:48.054327] process:494 setd
[12:30:48.054570] process:494 aude
[12:30:48.054605] process_aude:395 enable spdif: 0 dac: 0
[12:30:48.054836] process:494 audg
[12:30:48.054871] process_audg:413 audg gainL: 65536 gainR: 65536 adjust: 0
[12:30:48.054904] set_volume:246 setting internal gain left: 65536 right: 65536
[12:30:52.000661] process:494 strm
[12:30:52.000775] process_strm:256 strm command t
[12:30:52.000800] sendSTAT:171 STAT: STMt
[12:30:53.048585] output_thread:638 open output device: 
iec958:CARD=S6USB20,DEV=0
[12:30:53.048746] alsa_open:355 opening device at: 44100
[12:30:53.050089] alsa_open:406 opened device iec958:CARD=S6USB20,DEV=0 using 
format: S32_LE sample rate: 44100 mmap: 1
[12:30:53.050147] alsa_open:437 channel count not available: Invalid argument
[12:30:56.000616] process:494 strm
[12:30:56.000715] process_strm:256 strm command t
[12:30:56.000740] sendSTAT:171 STAT: STMt
[12:30:58.050301] output_thread:638 open output device: 
iec958:CARD=S6USB20,DEV=0
[12:30:58.050462] alsa_open:355 opening device at: 44100
[12:30:58.051781] alsa_open:406 opened device iec958:CARD=S6USB20,DEV=0 using 
format: S32_LE sample rate: 44100 mmap: 1
[12:30:58.051822] alsa_open:437 channel count not available: Invalid argument
[12:31:00.000696] process:494 strm
[12:31:00.000798] process_strm:256 strm command t
[12:31:00.000824] sendSTAT:171 STAT: STMt
[12:31:03.051919] output_thread:638 open output device: 
iec958:CARD=S6USB20,DEV=0
[12:31:03.052051] alsa_open:355 opening device at: 44100
[12:31:03.052964] alsa_open:406 opened device iec958:CARD=S6USB20,DEV=0 using 
format: S32_LE sample rate: 44100 mmap: 1
[12:31:03.052996] alsa_open:437 channel count not available: Invalid argument
[12:31:04.000619] process:494 strm
[12:31:04.000724] process_strm:256 strm command t
[12:31:04.000750] sendSTAT:171 STAT: STMt
^C[12:31:06.622504] slimproto_stop:919 slimproto stop
[12:31:06.722780] decode_close:175 close decode
[12:31:06.778949] stream_close:322 close stream
[12:31:06.828610] output_close_alsa:890 close output
^C
tomg@stinkpad:~$ ^C
tomg@stinkpad:~$ ^C
tomg@stinkpad:~$ 

Original comment by tgay...@gmail.com on 24 Feb 2015 at 3:32