Skip to content

some small changes and improvements - #209

Merged
ZigFisher merged 1 commit into
OpenIPC:masterfrom
cronyx:master
Apr 18, 2022
Merged

ZigFisher merged 1 commit into
OpenIPC:masterfrom
cronyx:master

Conversation

@cronyx

@cronyx cronyx commented Apr 18, 2022

Copy link
Copy Markdown
Member

No description provided.

@ZigFisher

Copy link
Copy Markdown
Collaborator

Thanks !

@ZigFisher
ZigFisher merged commit 57c6a56 into OpenIPC:master Apr 18, 2022
widgetii added a commit that referenced this pull request Aug 15, 2026
…, osal timer teardown) (#2267)

Picks up three commits:

  2d637e3 osal: wait for the timer callback before freeing the timer (#211)
  f69ecc9 kernel/hi3516cv200: recognize the gc2023_mipi sensor type (#207)
  849f066 acodec: retune the ADC when a clock change invalidates it (#209)

The acodec one fixes an audible tone on the analog mic of every V4 part
after a cold boot -- 609 Hz at a 16 kHz sample rate, plus harmonics, up
to 20 dB over the noise floor, lasting until something restarted the
streamer. The codec's ADC tuning is only valid for the codec clock that
was running when it was made, and enabling an audio input reprograms
that clock, so the tuning it had a moment earlier is stale and nothing
recalibrated. The driver now watches the hardware validity bit and
retunes. Reported as OpenIPC/majestic#285, reproduced on gk7205v200 and
hi3516ev200; gk7202v300, gk7205v300 and gk7605v100 share the same build
target and are covered too.

The osal one stops timer teardown freeing a timer whose callback may
still be running, or which has re-armed itself -- del_timer() does not
wait, and destroy kfree()s straight after. It reaches every module using
osal timers: vi, vpss, chnl, pm, rtc, ir, vdec and dis across the V2, V3
and V4 families.

Verified on a lab gk7205v200 built from this hash: 33 modules built, the
full 36-module stack boots, 10 x load_goke -a teardown cycles, 8 x
SIGHUP pipeline rebuilds, video throughout, no oops and no warnings.
Cold-boot mic capture goes from 41 LSB rms with the comb to 5 LSB with
no coherent tone.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants