hifiberry-os icon indicating copy to clipboard operation
hifiberry-os copied to clipboard

When Analog Input is enabled but not active/playing, loud periodic noise output on speakers

Open tobiv opened this issue 4 years ago • 17 comments

Describe the bug A very loud, scratch-like noise is being output when the Analog Input is enabled, but not active/playing. The noise is not continuous, but goes on for ~1 second, then off for ~1 second, and so on. It is so loud that it's audible even when Volume is all the way down at zero. Edit to add: LED D2 flashes in same interval as noise.

HiFiBerryOS version 20201213

HiFiBerry sound card

  1. DAC+ ADC Pro
  2. Amp60

To Reproduce Steps to reproduce the behavior:

  1. Analog Input disabled. It doesn't matter if anything is connected to the input.
  2. Select and play Source other than the Analog Input. It doesn't matter if sound is playing, as long as the Source is shown in Now Playing.
  3. Go to Sources, enable Analog Input. Noise immediately starts, over sound from current Source or just by itself.
  4. Go to Now Playing, and Stop/Pause current source.
  5. Now Playing switches to Analog Input and the noise stops.

(Setting "Start when Signal detected" makes no difference to this.)

Expected behavior No scary noise by simply having Analog Input enabled.

Screenshots N/A

Browser (if applicable)

  • OS: macOS 11.1
  • Browser: Firefox
  • Version: 84.0.1

Additional context N/A

tobiv avatar Dec 30 '20 14:12 tobiv

Edit to add: LED D2 flashes in same interval as noise.

I also posted this on the hifiberry hardware support forum, suspecting a hardware issue due to the flashing LED.

tobiv avatar Jan 03 '21 17:01 tobiv

You might have set the sensitivity too high. Try changing the sensitivity.

hifiberry avatar Jan 04 '21 10:01 hifiberry

I have tried all three sensitivities and also with "Start when Signal detected" turned off, that didn't help.

tobiv avatar Jan 04 '21 18:01 tobiv

Further testing: Input is working fine if it's the first thing playing after a reboot. So the issue only after switching to another source.

tobiv avatar Jan 10 '21 09:01 tobiv

The same here.

HifiBerry sound card

  • DAC+ADC Pro
  • AAMP60 Latest hifiberry os 28.02.2022

There is a loud scratch noise while enabling analog input. It doesn´t matter if aamp60 is used or not. Often analog input starts automatically playing although it isn´t set in the options "Start when Signal Detected".

what´s wrong ?

treuwark avatar Mar 02 '22 21:03 treuwark

Try changing the sensitivity of the input.

hifiberry avatar Mar 03 '22 07:03 hifiberry

Do you mean this ?

grafik

treuwark avatar Mar 03 '22 17:03 treuwark

yes

hifiberry avatar Mar 03 '22 20:03 hifiberry

The setting has no effect. There is a scratch noise. What to do ?

treuwark avatar Mar 04 '22 06:03 treuwark

I can't say more. As a workaround, disable analog input if you don't use it.

hifiberry avatar Mar 04 '22 07:03 hifiberry

FWIW, if you stop the current source before turning on the input, it works. There is still a faint noise when turning on the input, and occasionally when autostart is enabled. Better with sensitivity on low, but then it turns off on quiet parts… 😄

tobiv avatar Mar 04 '22 09:03 tobiv

@hifiberry Disabling is no option. I have choosen this, because of the analog input.

@tobiv Thank you. In parts i can retrace that behavior you described. My problem as mentioned in my first post, analog input starts playing, although "Start When signal Detected" is disabled. Stopping in the web interface of a browser connected via lan, has no effect. In the ui icon is shortly changing. Other sources work correct for stop/start.

Where can stop/start be affected ? Which log file should be checked ? How to stop/start via command line for testing purpose ?

treuwark avatar Mar 05 '22 17:03 treuwark

This is the output when stopping

Mar 05 19:07:17 hifiberry systemd[1]: Starting Store volume... Mar 05 19:07:17 hifiberry systemd[1]: Starting Cleanup of Temporary Directories... Mar 05 19:07:17 hifiberry systemd-tmpfiles[1251]: /usr/lib/tmpfiles.d/samba.conf:1: Line references path below legacy directory /var/run/, updating /var/run/samba → /run/samba; please update the tmpfiles.d/ drop-in file accordingly. Mar 05 19:07:17 hifiberry store-volume[1250]: Storing ALSA volume... Mar 05 19:07:17 hifiberry systemd[1]: systemd-tmpfiles-clean.service: Deactivated successfully. Mar 05 19:07:17 hifiberry systemd[1]: Finished Cleanup of Temporary Directories. Mar 05 19:07:17 hifiberry systemd[1]: store-volume.service: Deactivated successfully. Mar 05 19:07:17 hifiberry systemd[1]: Finished Store volume. Mar 05 19:08:06 hifiberry python3[388]: INFO: controller - sent Pause to org.mpris.MediaPlayer2.alsaloop Mar 05 19:08:06 hifiberry python3[388]: 127.0.0.1 - - [05/Mar/2022 19:08:06] "POST /api/player/playpause HTTP/1.1" 200 2 Mar 05 19:08:06 hifiberry beocreate2[723]: Source 'alsaloop' has deactivated. Mar 05 19:08:06 hifiberry python3[388]: INFO: http_post - posted metadata update to http://127.0.0.1:80/sources/metadata ({'artist': None, 'title': None, 'albumArtist': None, 'albumTitle': None, 'artUrl': None, 'externalArtUrl': None, 'discNumber': None, 'tracknumber': None, 'playerName': 'alsaloop', 'playerState': 'stopped', 'streamUrl': dbus.String('alsaloop://', variant_level=1), 'playCount': None, 'mbid': None, 'artistmbid': None, 'albummbid': None, 'loved': None, 'wiki': None, 'loveSupported': False, 'tags': [], 'skipped': False, 'host_uuid': None, 'releaseDate': None, 'trackid': None, 'hifiberry_cover_found': False, 'duration': 0, 'time': 0, 'position': 0, 'positionupdate': 1646503686.8503897, 'trackId': None}) Mar 05 19:08:06 hifiberry python3[1028]: INFO: root - playback status changed from stopped to playing Mar 05 19:08:07 hifiberry python3[388]: WARNING: controller - Metadata without artist, album or title - what's wrong here? [alsaloop, playing] None: None (None) None Mar 05 19:08:07 hifiberry beocreate2[723]: Source 'alsaloop' has activated. Mar 05 19:08:07 hifiberry python3[388]: INFO: http_post - posted metadata update to http://127.0.0.1:80/sources/metadata ({'artist': None, 'title': None, 'albumArtist': None, 'albumTitle': None, 'artUrl': None, 'externalArtUrl': None, 'discNumber': None, 'tracknumber': None, 'playerName': 'alsaloop', 'playerState': 'playing', 'streamUrl': dbus.String('alsaloop://', variant_level=1), 'playCount': None, 'mbid': None, 'artistmbid': None, 'albummbid': None, 'loved': None, 'wiki': None, 'loveSupported': False, 'tags': [], 'skipped': False, 'host_uuid': None, 'releaseDate': None, 'trackid': None, 'hifiberry_cover_found': False, 'duration': 0, 'time': 0, 'position': 0, 'positionupdate': 1646503687.9065309, 'trackId': None}) Mar 05 19:08:10 hifiberry beocreate2[723]: Checking MPD database update status...

treuwark avatar Mar 05 '22 18:03 treuwark

Is this still active?

hifiberry avatar Jan 12 '24 11:01 hifiberry

Yes, it is still happening, just tested (v20230404). Should I try with the latest alpha?

tobiv avatar Jan 17 '24 14:01 tobiv

Feel free to try. Nothing specific has been done to address this, but as you seem to be the only user with this issue, it might just work.

hifiberry avatar Jan 17 '24 15:01 hifiberry

Feel free to try. Nothing specific has been done to address this, but as you seem to be the only user with this issue, it might just work.

No, its still active. I didn´t follow up at that time, because there was no improvement.

treuwark avatar Jan 19 '24 18:01 treuwark