Dean Lee
313a2826c2
mcid.py: optimize FFT and A-weighting calculations ( #33057 )
...
* Precomputing weighting
* add comments back
* use cache
* spacing
spacing
* clean up
* lower by diff
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
9 months ago
Justin Newberry
4f3a186a6f
soundd/micd: retry getting stream ( #30701 )
...
retry soundd/micd
1 year ago
Justin Newberry
b0831fb117
soundd/micd: increase stream buffer size ( #30685 )
...
* increase buffer
* update cpu refs
* go to 100ms
* correct spot
1 year ago
Justin Newberry
bc70c94f75
soundd/micd: more robust setup procedure ( #30640 )
...
* just use the default device :/
* Ruff
* this seems like the most reliable way
* Ruff
* move comments too
* wait for devices
* fix that
* and that
* ruff
* add logging for avaliable devices
---------
Co-authored-by: Comma Device <device@comma.ai>
1 year ago
Adeeb Shihadeh
35f819c823
swaglog.py goes in common/ ( #30631 )
...
* swaglog.py goes in common/
* all of these go in release
* we'll even include the pyx
1 year ago
Justin Newberry
5600a82889
Soundd: only update ambient db when not playing an alert ( #30620 )
...
* move to soundd + only when quiet
* not filtered
1 year ago
Adeeb Shihadeh
a1d36961cf
new msgs default to invalid ( #30587 )
...
* new msgs default to invalid
* fix lm
* set more valid
* update rest
* update refs
* fix logMessage
* more valids
* cleanup
* fix llk test
* pigeond is also valid
* more valids
1 year ago
Adeeb Shihadeh
b68cfbb332
cleanup old sm pm args ( #30241 )
...
* cleanup sm pm
* fix controlsd
* fix
2 years ago
Justin Newberry
1ee6ed4b16
Linter: remove pylint ( #29611 )
...
remove pylint
2 years ago
Adeeb Shihadeh
a9626f95b6
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b991
.
* fix pm test
2 years ago
Cameron Clough
feba2f3fe5
fix micd input device ( #27160 )
...
* try no device
* unused
* move sounddevice import
2 years ago
Shane Smiskol
20dba2f33d
Micd: update sound levels in callback ( #26674 )
...
* update once reached 4096
* update once reached 4096
* reduce
* debug & cmt
* fix
* fifo again
* fix
* clean that up
* update filter on demand
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2 years ago
Shane Smiskol
060b69ee2f
micd: revert check playing sound (high cpu usage) ( #26672 )
...
* don't use hardware
* check micd proc
* use pactl package
* cleanup
* Revert "cleanup"
This reverts commit baf9887e2d
.
* Revert "use pactl package"
This reverts commit 0c1f3a4b86
.
* Revert "micd: don't update filtered sound level if playing sound (#26652 )"
This reverts commit 86cd919a57
.
* Revert "check micd proc"
This reverts commit 9ebbe2aa42
.
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2 years ago
Shane Smiskol
de061eacbe
soundd: lower max volume breakpoint ( #26673 )
...
* revert tune
* remove hanning window
* retune from hanning window
* add hanning back
* update once reached 4096
* Revert "update once reached 4096"
This reverts commit 0898cbeec7
.
2 years ago
Shane Smiskol
d087fab2c0
micd: apply A-weighting to the sound pressure level ( #26668 )
...
* record
* record
* draft
* some clean up
* some clean up
* wishful tuning
* log pressure level (db) for debugging
* fix
* tuning
* ignore complex to real warning
* remove this
* Update selfdrive/ui/soundd/sound.cc
* Update system/micd.py
* remove warning supp
* bump cereal to master
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2 years ago
Cameron Clough
86cd919a57
micd: don't update filtered sound level if playing sound ( #26652 )
...
* add is_sound_playing to hardware.py
* micd: don't update filtered sound level if playing sound
2 years ago
Cameron Clough
108ff15f5d
micd: scale sound volume with ambient noise level ( #26399 )
...
* test changing sound volume
* test changing sound volume
* create system/hardware/pc/hardware.h
* implement Hardware::set_volume using pactl
* soundd: use Hardware::set_volume
* add sounddevice dependency
* sounddevice example
* simple micd
* cleanup
* remove this
* fix process config
* add to release files
* hardware: get sound input device
* no more offroad
* debug
* calculate volume from all measurements since last update
* use microphone noise level to update sound volume
* fix scale
* mute microphone during alerts
* log raw noise level
* hardware: reduce tici min volume
* improve scale
* add package
* clear measurements on muted
* change default to min volume and respond quicker
* fixes
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* logarithmic scaling
* fix
* respond quicker
* fixes
* tweak scaling
* specify default device
* Revert "hardware: get sound input device"
This reverts commit 50f594f7a3bab005023482bc793147a8c8dae5d7.
* tuning
* forgot to update submaster
* tuning
* don't mute microphone, and clip measurement
* remove submaster
* fixes
* tuning
* implement Hardware::set_volume using pactl
* Revert "test changing sound volume"
This reverts commit 4bbd870746
.
* draft
* draft
* calculate sound pressure level in dB
* fix setting
* faster filter
* start at initial value
* don't run command in background
* pactl: use default sink
* use sound pressure db
* tuning
* bump up max volume threshold
* update filter slower
* fix divide by zero
* bump cereal
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2 years ago