Max2Play Home › Forums › Max2Play on Raspberry PI › Amp2 on Raspberri Pi2 with max2play settings
- This topic has 10 replies, 2 voices, and was last updated 6 years, 4 months ago by Joris.
-
Posted in: Max2Play on Raspberry PI
-
4. August 2018 at 20:55 #36827
Hello everybody,
I’m having this funny problem that on my latest multi room addition the music sounds like the singers are in a concert hall. I hope you guys find a solution for me.
Let me explain my setup:
A raspberryPi 3 works as squeezebox server.
A couple of Pi2 with amp+ hifiberry’s are working as squeezeplayers
the latest entry is a Pi2 with amp2.The latter works, but as mentioned befor, not so good.
I guess it is some setting that is not ok, but I don’t know which one.
In the advanced options from the squeezelite settings I use
– sysdefault-snd_rpi_h
– ALSA param: 2000:4::
– the other fields are blank.What do I need to do to get rid of the „echo effect“ on the music?
Does someone know?
6. August 2018 at 12:55 #36835Hi Joris,
Please try replacing the ALSA parameter with „80:4::“ and adding „hw:1“ to your command line options (if you do not have your build in audio removed in the Raspberry Settings, if it is removed use „hw:0“). After saving, please also reboot your device.
6. August 2018 at 13:37 #36837Hi Heiner,
Thx a lot for your help!
I’ve tried your suggestion (ALSA parameter with „80:4::“ and adding „hw:1“ in command line ) but I get this error:Trying to launch ... NOT successful Click here to show detailed information Error: command line argument error Squeezelite Max2Play v1.0.2 based on v1.8.4-726, Copyright 2012-2015 Adrian Smith, 2015-2016 Ralph Irving. See -t for license terms Usage: /opt/squeezelite/squeezelite [options] -s [:] Connect to specified server, otherwise uses autodiscovery to find server -o Specify output device, default "default", - = output to stdout -l List output devices -a : :: Specify ALSA params to open output device, b = buffer time in ms or size in bytes, p = period count or size in bytes, f sample format (16|24|24_3|32), m = use mmap (0|1) -a Specify sample format (16|24|32) of output file when using -o - to output samples to stdout (interleaved little endian only) -b : Specify internal Stream and Output buffer sizes in Kbytes -c , Restrict codecs to those specified, otherwise load all available codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec) -C Close output device when idle after timeout seconds, default is to keep it open while player is 'on' -d = Set logging level, logs: all|slimproto|stream|decode|output|ir, level: info|debug|sdebug -G : Specify the BCM GPIO# to use for Amp Power Relay and if the output should be Active High or Low -e , Explicitly exclude native support of one or more codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec) -f Write debug to logfile -i [] Enable lirc remote control support (lirc config file ~/.lircrc used if filename not specified) -m Set mac address, format: ab:cd:ef:12:34:56 -M Set the squeezelite player model name sent to the server (default: SqueezeLite) -n Set the player name -N Store player name in filename to allow server defined name changes to be shared between servers (not supported with -n) -W Read wave and aiff format from header, ignore server parameters -p Set real time priority of output thread (1-99) -P Store the process id (PID) in filename -r [:] Sample rates supported, allows output to be off when squeezelite is started; rates = |-|,,; delay = optional delay switching rates in ms -S Absolute path to script to launch on power commands from LMS -R -u [params] Resample, params = ::::::, recipe = (v|h|m|l|q)(L|I|M)(s) [E|X], E = exception - resample only if native rate not supported, X = async - resample to max rate for device, otherwise to max sync rate flags = num in hex, attenuation = attenuation in dB to apply (default is -1db if not explicitly set), precision = number of bits precision (NB. HQ = 20. VHQ = 28), passband_end = number in percent (0dB pt. bandwidth to preserve. nyquist = 100%), stopband_start = number in percent (Aliasing/imaging control. > passband_end), phase_response = 0-100 (0 = minimum / 50 = linear / 100 = maximum) -D [delay] Output device supports DSD over PCM (DoP), delay = optional delay switching between PCM and DoP in ms -v Visualiser support -L List volume controls for output device -U Unmute ALSA control and set to full volume (not supported with -V) -V Use ALSA control for volume adjustment, otherwise use software volume adjustment -Q Sync local ALSA volume changes with Squeezebox Server Volume when using -V option -B Use to set PowerOn/Off Player on status of connected Bluetooth-Speakers (only for Pulse Audiooutput) -I Squeezebox Server CLI Port (optional). Default 9090 -X Use a GPIO Button to switch between Play and Pause - works well with rotary encoders with button for Volume and Play/Pause -z Daemonize -Z Report rate to server in helo as the maximum sample rate we can support -t License terms -? Display this help text Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR GPIO DSD CONTROLSBS ALSASYNC BLUETOOTHSYNC
Also with HW:0 I get the same. And even an message at the hifiberry page that the soundcard is located at HW:1
What shall i do now?
6. August 2018 at 13:40 #36838Hi Joris,
Please try removing the ALSA parameters completely. Also make sure there are no additional blank spaces or any other irregularity.
6. August 2018 at 16:04 #36840Please copy your debug info log from the Audioplayer here.
6. August 2018 at 19:24 #36841Hi Heiner,
I hope you mean this:
#### SQUEEZELITE VERSION #### Squeezelite Max2Play v1.0.2 based on v1.8.4-726, Copyright 2012-2015 Adrian Smith, 2015-2016 Ralph Irving. #### SQUEEZELITE BUILDOPTIONS #### Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR GPIO DSD CONTROLSBS ALSASYNC BLUETOOTHSYNC #### AUDIOPLAYER CONFIG #### ### Configuration of Audioplayers SQUEEZELITE_PARAMETER=-o sysdefault:CARD=sndrpihifiberry -a 80:4:: -ohw:1,0 SQUEEZESLAVE_PARAMETER=-n plugequal SHAIRPORT_PARAMETER=-d default:CARD=sndrpihifiberry -t hardware -m hw:1 -c Digital USE_USB_DAC=0 USE_EQUALIZER=0 SYSTEM_USER=pi YMPD_PARAMETER=--webport 8081 #### SQUEEZELITE -l #### Output devices: null - Discard all samples (playback) or generate zero samples (capture) equal plugequal - Equalizer for plughw:0,0 default:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device dmix:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample mixing device dmix:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample mixing device dsnoop:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample snooping device dsnoop:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample snooping device hw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct hardware device without any conversions hw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct hardware device without any conversions plughw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Hardware device with all software conversions plughw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Hardware device with all software conversions default:CARD=sndrpihifiberry - snd_rpi_hifiberry_dacplus, - Default Audio Device sysdefault:CARD=sndrpihifiberry - snd_rpi_hifiberry_dacplus, - Default Audio Device dmix:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dacplus, - Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dacplus, - Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dacplus, - Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dacplus, - Hardware device with all software conversions #### SHAIRPORT (SYNC) VERSION #### 3.1.1-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/usr/local/etc #### OUTPUT SOUND DETAILS CARD 0 #### closed #### OUTPUT SOUND DETAILS CARD 1 #### closed
7. August 2018 at 12:54 #36843Hi Joris,
I do, this seems to indicate your sound card is somehow deactivated. Please selecting „none“ in the HiFiBerry Plugin, rebooting, selecting AMP2 again and rebooting once more.
7. August 2018 at 17:22 #36845Hi Heiner,
So after some trying and errors I have now this.
#### SQUEEZELITE VERSION #### Squeezelite Max2Play v1.0.2 based on v1.8.4-726, Copyright 2012-2015 Adrian Smith, 2015-2016 Ralph Irving. #### SQUEEZELITE BUILDOPTIONS #### Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR GPIO DSD CONTROLSBS ALSASYNC BLUETOOTHSYNC #### AUDIOPLAYER CONFIG #### ### Configuration of Audioplayers SQUEEZELITE_PARAMETER=-o sysdefault:CARD=sndrpihifiberry -a 80:4:: -o hw:1 SQUEEZESLAVE_PARAMETER=-n plugequal SHAIRPORT_PARAMETER=-d default:CARD=sndrpihifiberry -t hardware -m hw:1 -c Digital USE_USB_DAC=0 USE_EQUALIZER=0 SYSTEM_USER=pi YMPD_PARAMETER=--webport 8081 #### SQUEEZELITE -l #### Output devices: null - Discard all samples (playback) or generate zero samples (capture) equal plugequal - Equalizer for plughw:0,0 default:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device dmix:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample mixing device dmix:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample mixing device dsnoop:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample snooping device dsnoop:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample snooping device hw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct hardware device without any conversions hw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct hardware device without any conversions plughw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Hardware device with all software conversions plughw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Hardware device with all software conversions default:CARD=sndrpihifiberry - snd_rpi_hifiberry_dacplus, - Default Audio Device sysdefault:CARD=sndrpihifiberry - snd_rpi_hifiberry_dacplus, - Default Audio Device dmix:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dacplus, - Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dacplus, - Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dacplus, - Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dacplus, - Hardware device with all software conversions #### SHAIRPORT (SYNC) VERSION #### 3.1.1-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/usr/local/etc #### OUTPUT SOUND DETAILS CARD 0 #### closed #### OUTPUT SOUND DETAILS CARD 1 #### access: MMAP_INTERLEAVED format: S32_LE subformat: STD channels: 2 rate: 44100 (44100/1) period_size: 882 buffer_size: 3528
Dough, I had to ad:
– -o hw:1 in command line
– 80:4:: in ALSA param.Unfortunately, still the same weird metallic sounds
8. August 2018 at 9:47 #36855Okay, this output looks good. What power supply do you use for the AMP2?
-
You must be logged in to reply to this topic.