Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Power line hum on Lime2 with mainline kernel

Featured Replies

After figuring out how to enable analog audio on the Lime2 (https://forum.armbian.com/index.php?/topic/4224-analog-audio-on-lime2-with-stable-kernel-version-49/), I now have the problem that there is a clearly noticeable mainline hum whenever no sound is playing. The hum goes away as soon as any sound is playing on the device, and it returns a couple seconds after the sound stopped. It appears like some kind of power saving feature kicks in.

 

With the legacy kernel the hum goes away during boot and does not return.

 

Any ideas?

 

  • Author

Thanks for the tip! Still no luck :-(

I changed the governor from "ondemand" to "performance", but the problem persists. I also noticed that the hum stays during playback, if either "Power Amplifier DAC" or "Power Amplifier Mute" is muted.

  • Author

I found a workaround!

 

After looking at some kernel stack traces, I found that this guy was responsible: https://www.kernel.org/doc/html/latest/sound/soc/dapm.html

 

When the PCM device is closed the following happens in the kernel:

snd_pcm_release() -> soc_pcm_close() -> delay of `pmdown_time` -> close_delayed_work()

The last function powers down the audio subsystem, causing the hum. To circumvent this behavior, I simply set `pmdown_time` to -1:

echo -1 > /sys/devices/platform/soc@01c00000/1c22c00.codec/cdc/pmdown_time

Now, once the sound subsystem is powered on, it stays powered on. Not ideal but it seems to work.

Bernie mentioned in this - post - that it is caused by "a voltage difference between ground and AV Jack" so this is probably a HW design mistake.

As this workaround also seems to work on Banana Pi, what is the possible problem in doing as suggested above?

 

The only disadvantage I can think of is a slightly higher power consumption.

Or am I missing something?

Cheers, Bernie_O.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.