Go Back   Home > Forums > > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Twisted Pear Superior quality electronic kits

Reply
 
Thread Tools Search this Thread
Old 29th May 2016, 08:20 AM   #1671
miero is offline miero  Czech Republic
diyAudio Member
 
Join Date: Jun 2011
Location: Prague
francolargo: have you tried to increase sox priority? if it does not help, you can try also setting it to real-time priority using chrt 1 sox ...
__________________
BeagleBone Black with I2S, DSD and SPDIF interface (Linux driver)
http://bbb.ieero.com/
  Reply With Quote
Old 29th May 2016, 10:23 AM   #1672
bern is offline bern  Poland
diyAudio Member
 
Join Date: Jul 2010
Hi,
I'm considering connecting dual mono balanced NOS DAC (4x PCM1704) directly to the Cronus
(as in the diagram)

I've seen (in this post) that there is possible to split DATA to Left and Right data channel (thank you Frank And James!).
But could it be possible to split additionally each (R,L channel) to positive and negative (inverted) balanced data signal?
If so, is this 'software' split (R+, R-, L+, L-) and mapping could give me good quality sound?
Is that split and mapping can be demanding for bbb's CPU?
  Reply With Quote
Old 29th May 2016, 10:40 AM   #1673
miero is offline miero  Czech Republic
diyAudio Member
 
Join Date: Jun 2011
Location: Prague
Yes, it is possible.

You would need to assign a negative volume (-1) to the - channels.
__________________
BeagleBone Black with I2S, DSD and SPDIF interface (Linux driver)
http://bbb.ieero.com/
  Reply With Quote
Old 29th May 2016, 11:00 AM   #1674
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Quote:
Originally Posted by miero View Post
francolargo: have you tried to increase sox priority? if it does not help, you can try also setting it to real-time priority using chrt 1 sox ...
Hi Miero! I will experiment with this more. I use either SoX or squeezelite, and SoX runs well when I increase its priority using chrt -f 45... However, something is interrupting squeezelite from time to time. If I increase the priority of squeezelite by 19 using 'nice' - improvements but still interruptions. Increase by a full 20%, then the remote control gets poorly responsive. I will explore...

Thanks very much for the Jessie boticize script! I will test it now on a spare uSD card.

Frank

Last edited by francolargo; 29th May 2016 at 11:15 AM.
  Reply With Quote
Old 29th May 2016, 02:52 PM   #1675
ichiban is offline ichiban  United States
It's always something!
diyAudio Member
 
ichiban's Avatar
 
Join Date: Oct 2004
Location: Tonawanda, N.Y.
Support for Botic Linux driver
Default running TIDAL on BBB ?

Is it possible to run Chrome/TIDAL on the BOTIC/BBB?


-ICHI
__________________
Currently listening to F4 or F6/w curve matched SemiSouth outputs
  Reply With Quote
Old 30th May 2016, 05:32 AM   #1676
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Quote:
Originally Posted by miero View Post
If someone will do the clean install of Debian, please test.
Hi Miero,

I sent PMs with Boticize process logs. ...hope they help...

Frank
  Reply With Quote
Old 30th May 2016, 07:59 AM   #1677
bern is offline bern  Poland
diyAudio Member
 
Join Date: Jul 2010
Quote:
Originally Posted by miero View Post
Yes, it is possible.

You would need to assign a negative volume (-1) to the - channels.
thanks miero,
I've made some tests.
Unfortunately I can't receive data signal on R2, R3 resistors.
I have data signal only on R4, R5 resistors.

My configurations is as fallows:
asound file:
Code:
pcm.!botic-split {
     type plug
     slave {
     pcm "t-table"
     rate "unchanged"
     }
}
ctl.!default {
     type hw
     card 0
}

pcm.t-table  {
    type route
    slave {
     pcm "hw:0,0"
     channels 4
    }
    ttable {
      0.0   1  #left channel to output 0
      1.1   1  #right channel to output 1
      2.0   -1  #left channel to output 2 inverted
      3.1   -1  #right channel to output 3 inverted
    }
}
optargs line of uEnv.txt file (hope right justified DATA format is selected):
Code:
optargs=snd_soc_botic.ext_masterclk=3 snd_soc_botic.serconfig=MMMM snd_soc_botic.dai_format=16386 snd_soc_botic.blr_ratio=64
squeezelite runs with following parameters: ('botic-split' as output device is selected as well as 24 bit output with -a ::24)
Code:
squeezelite -o botic-split -a ::24 -n BBB -r 192000 -u hs::0.5:28:91.3:100:0 -D 80 -C 1 -f /opt/squeezelite.log -d all=info
squeezelite log:
Code:
usr/local/bin/squeezelite -o botic-split -a ::24 -n BBB -r 192000 -u hs::0.5:28:91.3:100:0 -D 80 -C 1 -f /opt/squeezelite.log -d all=info 
[17:10:31.901061] stream_init:294 init stream
[17:10:32.070841] output_init_alsa:865 init output
[17:10:32.071085] output_init_alsa:895 requested alsa_buffer: 40 alsa_period: 4 format: 24 mmap: 1
[17:10:32.083488] output_init_common:411 supported rates: 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000 
[17:10:32.087831] output_init_alsa:909 unable to lock memory: Cannot allocate memory
[17:10:32.602781] decode_init:130 init decode, include codecs:  exclude codecs: 
[17:10:32.617075] register_dsd:625 using dsd to decode dsf,dff
[17:10:32.742154] register_ff:732 using ffmpeg to decode alc
[17:10:32.742370] register_ff:716 using ffmpeg to decode wma,wmap,wmal
[17:10:32.742428] register_faad:641 using faad to decode aac
[17:10:32.742758] register_vorbis:330 using vorbis to decode ogg
[17:10:32.742842] register_flac:286 using flac to decode flc
[17:10:32.742889] register_pcm:404 using pcm to decode aif,pcm
[17:10:32.742993] register_mad:413 using mad to decode mp3
[17:10:32.760272] resample_init:362 resampling sync recipe: 0x44, flags: 0x00, scale: 0.94, precision: 28.0, passband_end: 0.91300, stopband_begin: 1.00000, phase_response: 0.0
[17:10:32.760656] discover_server:807 sending discovery
[17:10:32.771538] discover_server:818 got response from: 192.168.1.1:3483
[17:10:32.772063] slimproto:899 connecting to 192.168.1.1:3483
[17:10:32.773377] slimproto:932 connected
[17:10:32.773556] sendHELO:136 mac: 0f:0c:43:01:0a:94
[17:10:32.773659] sendHELO:138 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8.4-720,ModelName=SqueezeLite,MaxSampleRate=192000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3
[17:10:32.822952] codec_open:221 codec open: 'f'
[17:10:32.823584] stream_sock:393 connecting to 192.168.1.1:9000
[17:10:32.825062] stream_sock:422 header: GET /stream.mp3?player=0f:0c:43:01:0a:94 HTTP/1.0


[17:10:32.901102] stream_thread:180 headers: len: 118
HTTP/1.1 200 OK
Server: Logitech Media Server (7.9.0 - 1463778102)
Connection: close
Content-Type: audio/x-flac


[17:10:33.157421] write_cb:116 setting track_start
[17:10:33.157677] resample_newstream:189 resampling from 96000 -> 192000
[17:10:33.250471] output_thread:664 open output device: botic-split
[17:10:33.259939] alsa_open:381 opening device at: 44100
[17:10:33.418525] alsa_open:432 opened device botic-split using format: S24_LE sample rate: 44100 mmap: 1
[17:10:33.422848] alsa_open:511 buffer: 40 period: 4 -> buffer size: 1764 period size: 441
[17:10:33.748937] process_newstream:124 processing: active
[17:10:33.904445] _output_frames:62 start buffer frames: 45240
[17:10:33.904699] _output_frames:147 track start sample rate: 192000 replay_gain: 0
[17:10:33.914896] output_thread:664 open output device: botic-split
[17:10:33.915455] alsa_open:381 opening device at: 192000
[17:10:33.918829] alsa_open:432 opened device botic-split using format: S24_LE sample rate: 192000 mmap: 1
[17:10:33.920507] alsa_open:511 buffer: 40 period: 4 -> buffer size: 7680 period size: 1920
[17:10:34.011930] output_thread:698 XRUN
[09:21:48.392636] stream_thread:253 end of stream
Where I made a mistake? I would be grateful for any hints.
I use botic 4.5.0-botic7-rc1
TIA

Last edited by bern; 30th May 2016 at 08:02 AM.
  Reply With Quote
Old 30th May 2016, 07:17 PM   #1678
bern is offline bern  Poland
diyAudio Member
 
Join Date: Jul 2010
When I use botic 4.0.0-botic5 instead of botic 4.5.0-botic7-rc1 with squeezelite I receive 'unable to set period count Invalid argument'. See log:
Quote:
.....
....
....
[21:10:25.882294] decode_flush:193 decode flush
[21:10:25.882512] process_flush:173 process flush
[21:10:25.882613] output_flush:424 flush output buffer
[21:10:25.955206] codec_open:221 codec open: 'f'
[21:10:25.955475] stream_sock:393 connecting to 192.168.1.1:9000
[21:10:25.956950] stream_sock:422 header: GET /stream.mp3?player=0f:0c:43:01:0a:94 HTTP/1.0


[21:10:25.975717] stream_thread:180 headers: len: 118
HTTP/1.1 200 OK
Server: Logitech Media Server (7.9.0 - 1463778102)
Connection: close
Content-Type: audio/x-flac


[21:10:26.471537] write_cb:116 setting track_start
[21:10:26.471984] resample_newstream:189 resampling from 88200 -> 176400
[21:10:26.696273] process_newstream:124 processing: active
[21:10:28.235325] output_thread:664 open output device: botic-split
[21:10:28.240107] alsa_open:381 opening device at: 44100
[21:10:28.243571] alsa_open:432 opened device botic-split using format: S24_LE sample rate: 44100 mmap: 1
[21:10:28.244620] alsa_open:471 unable to set period count Invalid argument
[21:10:33.244814] output_thread:664 open output device: botic-split
[21:10:33.247604] alsa_open:381 opening device at: 44100
[21:10:33.250991] alsa_open:432 opened device botic-split using format: S24_LE sample rate: 44100 mmap: 1
[21:10:33.252036] alsa_open:471 unable to set period count Invalid argument
[21:10:38.252241] output_thread:664 open output device: botic-split
[21:10:38.255477] alsa_open:381 opening device at: 44100
[21:10:38.258872] alsa_open:432 opened device botic-split using format: S24_LE sample rate: 44100 mmap: 1
[21:10:38.259916] alsa_open:471 unable to set period count Invalid argument
......
.......

Last edited by bern; 30th May 2016 at 07:39 PM.
  Reply With Quote
Old 30th May 2016, 08:48 PM   #1679
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Hi Bern,

The problem may be in the '-a' parameters. You have only the bit depth, the 3rd of 4 parameters. Numbers 1 and 2 are the buffer size and the period size. It is confusing that this specification can be used with two different units - either time (in msec?) or bytes. If you choose time for the buffer (say, '80') then the periods parameter is the count of periods (say, '4'). However, if you choose bytes (I use '8192') then the period size is also measured in bytes (and I use '2048'). So I think squeezelite just needs more info to run. Perhaps test with values that are close to default like: '-a 80:4:24:0'

Good luck!
  Reply With Quote
Old 31st May 2016, 02:34 AM   #1680
bern is offline bern  Poland
diyAudio Member
 
Join Date: Jul 2010
Quote:
Originally Posted by francolargo View Post
Hi Bern,

The problem may be in the '-a' parameters. You have only the bit depth, the 3rd of 4 parameters. Numbers 1 and 2 are the buffer size and the period size. It is confusing that this specification can be used with two different units - either time (in msec?) or bytes. If you choose time for the buffer (say, '80') then the periods parameter is the count of periods (say, '4'). However, if you choose bytes (I use '8192') then the period size is also measured in bytes (and I use '2048'). So I think squeezelite just needs more info to run. Perhaps test with values that are close to default like: '-a 80:4:24:0'

Good luck!
Thanks Frank,
With 4.0.0-botic5 I tried '-a 80:4:24:0' and '-a 16384:1024:24:' and couldn't run squeezelite (still receive error: 'unable to set period count Invalid argument') so I returned to botic 4.5.0-botic7-rc1.
In both botic 4.0.0-botic5 and 4.5.0-botic7-rc1 I can play:
Code:
root@botic:~# speaker-test -D botic-split -c 4

speaker-test 1.0.27.2

Playback device is botic-split
Stream parameters are 48000Hz, S16_LE, 4 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 4 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
Time per period = 11.624481
but still no DATA signal on R2, R3 (only on R4, R5)
Maybe there is something wrong with selected:
dai_format=16386
I don't understand syntax of this parameter. It should give right justified data format...
  Reply With Quote

Reply


Support for Botic Linux driverHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open baffle with fullrange driver and bass support Godzilla Full Range 5 22nd July 2011 01:32 PM
Low end support for single driver monitors strider75 Multi-Way 97 30th September 2009 03:02 PM
ASIO support (driver) for Labview Aoxomox Digital Line Level 0 3rd May 2009 05:29 PM
Linux/BruteFIR support coming in LspCAD tcpip Multi-Way 18 18th October 2005 03:08 AM
linux badgers Introductions 3 3rd April 2005 03:27 PM


New To Site? Need Help?

All times are GMT. The time now is 10:14 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki