GioF71 / tidal-connect

Simple script for configuring Tidal Connect with Docker (also on Volumio, MoodeAudio, OSMC)
MIT License
72 stars 6 forks source link

Is it possible to run TidalConnect on MoOdeAudio? #103

Closed tomazi78 closed 5 months ago

tomazi78 commented 5 months ago

I have RPi4. Is it possible to run TidalConnect on MOodeAudio? I performed 'install docker', 'clone' and 'update' one by one. The option to select TIDALCONNECT does not appear in the application list. What am I doing wrong? Is something missing? Does the latest MOode system block the ability to activate this script?

tomazi78 commented 5 months ago

Anyway please post container logs

docker-compose logs -f

It would be great if you can post the text instead of images. If you are using putty you just need to select some text to copy to the clipboard X

cat /proc/asound/cards

Sorry I am using a phone

pi@moodeaudio:~/tidal-connect $ docker-compose logs -f Attaching to tidal-connect tidal-connect | Tidal Connect - https://github.com/GioF71/tidal-connect.git - entrypoint.sh version 0.1.2 tidal-connect | FRIENDLY_NAME=TIDAL connect tidal-connect | MODEL_NAME=Audio Streamer tidal-connect | MQA_CODEC=false tidal-connect | MQA_PASSTHROUGH=false tidal-connect | CARD_NAME= tidal-connect | CARD_INDEX=2 tidal-connect | CARD_DEVICE= tidal-connect | File [asound.conf] has not been provided tidal-connect | File /etc/asound.conf does not exists. tidal-connect | Specified CARD_INDEX=[2] tidal-connect | Set card_index=[2] tidal-connect | Creating sound configuration file (card_index=2)... tidal-connect | Sound configuration file created. tidal-connect | pcm.!default { tidal-connect | type plug tidal-connect | slave.pcm { tidal-connect | type hw tidal-connect | card 2 tidal-connect | } tidal-connect | } tidal-connect | PLAYBACK_DEVICE=[default] tidal-connect | Starting Speaker Application in Background (TMUX) tidal-connect | Sleeping for a while (3 seconds)... tidal-connect | Starting TIDAL Connect ... tidal-connect | STARTING TidalConnect services, version: 1.1.3 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.front.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.rear tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.center_lfe tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.side tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und21 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und21 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround40.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und40 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und41 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und50 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und51 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround71.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und71 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec95 8 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | Cannot connect to server socket err = No such file or directo ry tidal-connect | Cannot connect to server request channel tidal-connect | jack server is not running or cannot be started tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | Could not find device: 'default'. Fallback to default device tidal-connect | Valid devices are: 'sysdefault' 'dmix' tidal-connect | STARTED TidalConnect services. tidal-connect | [2024-02-17 15:02:05.088] [tisoc] [warning] [PlaybackControll erImpl.cpp:472] Illegal state:1 tidal-connect | [2024-02-17 15:02:33] [info] asio async_shutdown error: asio. misc:2 (End of file) tidal-connect | [2024-02-17 15:02:34.294] [tisoc] [warning] [PlaybackControll erImpl.cpp:472] Illegal state:1 tidal-connect | [2024-02-17 15:02:34.750] [tisoc] [warning] [logger.cpp:22] [ audio_worker.cpp:321] Attempting to initialize a decoder without initial data! tidal-connect | [2024-02-17 15:03:13] [info] asio async_shutdown error: asio. misc:2 (End of file) tidal-connect | [2024-02-17 15:04:11.150] [tisoc] [error] [logger.cpp:25] [op eration_curl.cpp:258] curl_easy_perform failed: Timeout was reached - Resolvi ng timed out after 5515 milliseconds tidal-connect | [2024-02-17 15:04:11.150] [tisoc] [error] [logger.cpp:25] [ht tp_stream_fetcher.cpp:162] Content-Range is missing from response!

tomazi78 commented 5 months ago

cat /proc/asound/cards

pi@moodeaudio:~/tidal-connect $ cat /proc/asound/cards 0 [b1 ]: bcm2835_hdmi - bcm2835 HDMI 1 bcm2835 HDMI 1 1 [Headphones ]: bcm2835_headpho - bcm2835 Headphones bcm2835 Headphones 2 [v12 ]: USB-Audio - SMSL A8 v1.2 SMSL SMSL A8 v1.2 at usb-0000:01:00.0-1.2, high speed pi@moodeaudio:~/tidal-connect $

I'm sorry you have to work with so much crap that I can't even copy it exactly. I use Putty and I don't know why it crosses out the font

GioF71 commented 5 months ago

Try skipping to another track. Maybe use standard resolution. This application uses some old libraries and sometimes that error "Content-Range is missing ..." happens as reported by other users.

tomazi78 commented 5 months ago

Try skipping to another track. Maybe use standard resolution. This application uses some old libraries and sometimes that error "Content-Range is missing ..." happens as reported by other users.

doesn't work

GioF71 commented 5 months ago

It was working yesterday, what happened?

Let's see the contents of .env

cat $HOME/tidal-connect/.env

Disconnect Tidal Connect and let's check nothing is playing:

cat /proc/asound/*/pcm*p/sub0/hw_params

tomazi78 commented 5 months ago

cat /proc/asound//pcmp/sub0/hw_params

pi@moodeaudio:~/tidal-connect $ cat $HOME/tidal-connect/.env CARD_INDEX=2 pi@moodeaudio:~/tidal-connect $ cat /proc/asound//pcmp/sub0/hw_params access: MMAP_INTERLEAVED format: S16_LE subformat: STD channels: 2 rate: 96000 (96000/1) period_size: 4800 buffer_size: 24000 closed access: MMAP_INTERLEAVED format: S16_LE subformat: STD channels: 2 rate: 96000 (96000/1) period_size: 4800 buffer_size: 24000 closed closed access: MMAP_INTERLEAVED format: S32_LE subformat: STD channels: 2 rate: 44100 (44100/1) period_size: 5513 buffer_size: 22050 closed access: MMAP_INTERLEAVED format: S32_LE subformat: STD channels: 2 rate: 44100 (44100/1) period_size: 5513 buffer_size: 22050 pi@moodeaudio:~/tidal-connect $

GioF71 commented 5 months ago

Something is playing here!

tomazi78 commented 5 months ago

Something is playing here!

the radio is playing all the time

The radio was playing all the time, after every shift we did. There are no problems with the radio. The problem is with TidalConnect - it stopped playing

GioF71 commented 5 months ago

Yesterday I have made a mistake for the smsl-a8 softvol. The file name was wrong unfortunately. You can try again:

cd $HOME/tidal-connect
git config pull.rebase false
git pull
echo "ASOUND_FILE_PREFIX=smsl-a8-softvol" > .env
docker-compose up -d

But before that, try to route moode to the internal audio, so it should get out of the way of your dac. After you do that, verify that nothing is playing on the dac:

watch cat /proc/asound/v12/pcm0p/sub0/hw_params

That is important, if something is playing here, Tidal Connect will never work

tomazi78 commented 5 months ago

watch cat /proc/asound/v12/pcm0p/sub0/hw_params

pi@moodeaudio:~/tidal-connect $ git config pull.rebase false git pull echo "ASOUND_FILE_PREFIX=smsl-a8-softvol" > .env docker-compose up -d remote: Enumerating objects: 3, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (3/3), 1.48 KiB | 757.00 KiB/s, done. From https://github.com/GioF71/tidal-connect b1e23a0..1b91dc6 main -> origin/main Updating b1e23a0..1b91dc6 Fast-forward userconfig/{smsl-a8-softvol.conf => smsl-a8-softvol.asound.conf} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename userconfig/{smsl-a8-softvol.conf => smsl-a8-softvol.asound.conf} (100%) Recreating tidal-connect ... done pi@moodeaudio:~/tidal-connect $ watch cat /proc/asound/v12/pcm0p/sub0/hw_params pi@moodeaudio:~/tidal-connect $

watch cat /proc/asound/v12/pcm0p/sub0/hw_params

Every 2.0s: cat /proc/asound/v12/pcm0p/sub0/hw_params moodeaudio: Sat Feb 17 16:56:09 2024

closed

GioF71 commented 5 months ago

Ok try Tidal Connect now from the app...

GioF71 commented 5 months ago

Also post container logs...

cd $HOME/tidal-connect
docker-compose logs -f
tomazi78 commented 5 months ago

Ok try Tidal Connect now from the app...

doesn't work

tomazi78 commented 5 months ago

Ok try Tidal Connect now from the app...

I RESTARTed the system and EVERYTHING started working - TidalConnect plays and the volume control also works

GioF71 commented 5 months ago

Hurrah :-)

tomazi78 commented 5 months ago

cd $HOME/tidal-connect docker-compose logs -f

pi@moodeaudio:~ $ cd $HOME/tidal-connect docker-compose logs -f Attaching to tidal-connect tidal-connect | Tidal Connect - https://github.com/GioF71/tidal-connect.git - entrypoint.sh version 0.1.2 tidal-connect | FRIENDLY_NAME=TIDAL connect tidal-connect | MODEL_NAME=Audio Streamer tidal-connect | MQA_CODEC=false tidal-connect | MQA_PASSTHROUGH=false tidal-connect | CARD_NAME= tidal-connect | CARD_INDEX= tidal-connect | CARD_DEVICE= tidal-connect | File [/userconfig/smsl-a8-softvol.asound.conf] has been provi ded, copying to [/etc/asound.conf] ... tidal-connect | FORCE_PLAYBACK_DEVICE empty, setting to [custom] tidal-connect | Current /etc/asound.conf: tidal-connect | pcm.tidal-v12 { tidal-connect | type plug tidal-connect | slave.pcm { tidal-connect | type hw tidal-connect | card v12 tidal-connect | device 0 tidal-connect | } tidal-connect | } tidal-connect | tidal-connect | pcm.custom { tidal-connect | type softvol tidal-connect | slave { tidal-connect | pcm "tidal-v12" tidal-connect | } tidal-connect | control { tidal-connect | name "Master" tidal-connect | card 0 tidal-connect | } tidal-connect | } tidal-connect | File [/etc/asound.conf] cannot be modified. tidal-connect | pcm.tidal-v12 { tidal-connect | type plug tidal-connect | slave.pcm { tidal-connect | type hw tidal-connect | card v12 tidal-connect | device 0 tidal-connect | } tidal-connect | } tidal-connect | tidal-connect | pcm.custom { tidal-connect | type softvol tidal-connect | slave { tidal-connect | pcm "tidal-v12" tidal-connect | } tidal-connect | control { tidal-connect | name "Master" tidal-connect | card 0 tidal-connect | } tidal-connect | } tidal-connect | Setting playback device to [custom] ... tidal-connect | PLAYBACK_DEVICE=[custom] tidal-connect | Starting Speaker Application in Background (TMUX) tidal-connect | Sleeping for a while (3 seconds)... tidal-connect | Starting TIDAL Connect ... tidal-connect | STARTING TidalConnect services, version: 1.1.3 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.front.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.rear tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.center_lfe tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.side tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und21 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und21 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround40.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und40 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und41 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und50 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und51 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround71.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und71 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec95 8 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | Cannot connect to server socket err = No such file or directo ry tidal-connect | Cannot connect to server request channel tidal-connect | jack server is not running or cannot be started tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | Could not find device: 'custom'. Fallback to default device tidal-connect | Valid devices are: 'sysdefault' 'default' 'dmix' tidal-connect | STARTED TidalConnect services. tidal-connect | [2024-02-17 15:57:23.585] [tisoc] [warning] [SessionManagerIm pl.cpp:147] No Session: IDLE tidal-connect | [2024-02-17 15:57:23] [info] asio async_shutdown error: asio. misc:2 (End of file) tidal-connect | [2024-02-17 15:57:58.667] [tisoc] [warning] [PlaybackControll erImpl.cpp:472] Illegal state:1 tidal-connect | [2024-02-17 15:58:40.005] [tisoc] [error] [avahiImpl.cpp:113] avahiClientCallback() AVAHI_CLIENT_S_COLLISION/AVAHI_CLIENT_FAILURE tidal-connect | Tidal Connect - https://github.com/GioF71/tidal-connect.git - entrypoint.sh version 0.1.2 tidal-connect | FRIENDLY_NAME=TIDAL connect tidal-connect | MODEL_NAME=Audio Streamer tidal-connect | MQA_CODEC=false tidal-connect | MQA_PASSTHROUGH=false tidal-connect | CARD_NAME= tidal-connect | CARD_INDEX= tidal-connect | CARD_DEVICE= tidal-connect | File [/userconfig/smsl-a8-softvol.asound.conf] has been provi ded, copying to [/etc/asound.conf] ... tidal-connect | FORCE_PLAYBACK_DEVICE empty, setting to [custom] tidal-connect | Current /etc/asound.conf: tidal-connect | pcm.tidal-v12 { tidal-connect | type plug tidal-connect | slave.pcm { tidal-connect | type hw tidal-connect | card v12 tidal-connect | device 0 tidal-connect | } tidal-connect | } tidal-connect | tidal-connect | pcm.custom { tidal-connect | type softvol tidal-connect | slave { tidal-connect | pcm "tidal-v12" tidal-connect | } tidal-connect | control { tidal-connect | name "Master" tidal-connect | card 0 tidal-connect | } tidal-connect | } tidal-connect | File [/etc/asound.conf] cannot be modified. tidal-connect | pcm.tidal-v12 { tidal-connect | type plug tidal-connect | slave.pcm { tidal-connect | type hw tidal-connect | card v12 tidal-connect | device 0 tidal-connect | } tidal-connect | } tidal-connect | tidal-connect | pcm.custom { tidal-connect | type softvol tidal-connect | slave { tidal-connect | pcm "tidal-v12" tidal-connect | } tidal-connect | control { tidal-connect | name "Master" tidal-connect | card 0 tidal-connect | } tidal-connect | } tidal-connect | Setting playback device to [custom] ... tidal-connect | PLAYBACK_DEVICE=[custom] tidal-connect | Starting Speaker Application in Background (TMUX) tidal-connect | Sleeping for a while (3 seconds)... tidal-connect | Starting TIDAL Connect ... tidal-connect | STARTING TidalConnect services, version: 1.1.3 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | Expression 'GetExactSampleRate( hwParams, &defaultSr )' faile d in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.front.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.rear tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.center_lfe tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.side tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und21 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und21 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround40.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und40 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und41 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und50 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und51 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.surround71.0:CARD=0' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surro und71 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec95 8 tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif tidal-connect | ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find defi nition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' tidal-connect | ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func _refer returned error: No such file or directory tidal-connect | ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No s uch file or directory tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | Cannot connect to server socket err = No such file or directo ry tidal-connect | Cannot connect to server request channel tidal-connect | jack server is not running or cannot be started tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | STARTED TidalConnect services. tidal-connect | [2024-02-17 16:00:17.512] [tisoc] [warning] [PlaybackControll erImpl.cpp:472] Illegal state:1

tomazi78 commented 5 months ago

If I were to run TidalConnect on a clean system, it would be a disaster ;-) Now that you know what didn't work, can you specify what is necessary and what to do step by step? Is that too much to ask? Thank you very much for your help. You are very patient and knowledgeable. This will definitely help others who are trying to do this

I'm an idiot, but I'm also ready to install the MoOde system again and try to install TidalConnect on a clean system and have the volume control work.

GioF71 commented 5 months ago

If I were to run TidalConnect on a clean system, it would be a disaster ;-) Now that you know what didn't work, can you specify what is necessary and what to do step by step? Is that too much to ask? Thank you very much for your help. You are very patient and knowledgeable. This will definitely help others who are trying to do this

Well actually, assuming that docker and docker-compose are installed, considering that I have created a file for your dac (userconfig/smsl-a8-softvol.asound.conf), the configuration reduces to a mere:

cd $HOME/tidal-connect
echo "ASOUND_FILE_PREFIX=smsl-a8-softvol" > .env
docker-compose up -d

But that is the configuration for your dac. I am not a real ALSA expert so it's difficult to help other people with messages... it ends up taking a long time. Maybe with some issues already solved here and tracked here on github, more people can get this running on their own.

But in your case, I see you had issues with docker installation. Another user helped me identifying ambiguities and errors in the documentation. Where did the process become difficult to follow? Do you have a spare Pi3/Pi4, or a spare microsd card, to try the process from the beginning?

Also a big issue was the radio playing. Why was it playing? That has probably misled us a few time until you redirected the audio to onboard audio, or anyway made it stop trying to play to the same dac you wanted to use for Tidal Connect.

GioF71 commented 5 months ago

I'm an idiot, but I'm also ready to install the MoOde system again and try to install TidalConnect on a clean system and have the volume control work.

Why would you say these things about yourself?

tomazi78 commented 5 months ago

I also noticed that on a locked screen, when TidalConnect is running and when music is playing, you cannot control anything on the locked screen. The Tidal application does not appear at all and you cannot switch songs or control the volume. You need to unlock the screen.

GioF71 commented 5 months ago

Yes, I also noticed some weird behaviors. Have you ever tried mopidy? There is a nice plugin named mopidy-tidal, I have tried and it's very nice. The author is also in the process of making it compatible with hires. That would mean that from your phone you could connect to a web app that resembles Tidal's menus, playlists, favorites, etc, and playback to the device where mopidy is installed. I have tried and it's very nice. But I would like to build a docker image for that, for easy configurability. That, on my book, would be a very decent alternative to Tidal Connect

GioF71 commented 5 months ago

Ah I forgot to ask, please star the repo if you like the work. It's always encouraging. Thank you.

tomazi78 commented 5 months ago

Jestem idiotą, ale jestem też gotowy, aby ponownie zainstalować system MoOde i spróbować zainstalować TidalConnect na czystym systemie i sprawić, by regulacja głośności działała.

Dlaczego miałbyś mówić takie rzeczy o sobie?

I'm from another country and Google translate greatly distorts the meaning of what I wrote - it's a pity, but I won't do anything about it

GioF71 commented 5 months ago

I was just asking to click the "star" on the repository.

GioF71 commented 5 months ago

As you did already. Thank you

GioF71 commented 5 months ago

Closing this, seems to be solved. Open another if needed! Thank you