|  Cameron Clough | feba2f3fe5 | fix micd input device (#27160) * try no device
* unused
* move sounddevice import | 3 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> | 3 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 baf9887e2d3e7dce8c24a93e970bb5a2d3609d50.
* Revert "use pactl package"
This reverts commit 0c1f3a4b865e44052affa57323ae4a21d274d6e3.
* Revert "micd: don't update filtered sound level if playing sound (#26652)"
This reverts commit 86cd919a57.
* Revert "check micd proc"
This reverts commit 9ebbe2aa42bdfd2f7f8bf226978a518d984fb154.
Co-authored-by: Cameron Clough <cameronjclough@gmail.com> | 3 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 0898cbeec736916ffaee5e963df048b48636ece5. | 3 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> | 3 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 | 3 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 4bbd870746ec86d1c9871a6175def96cf7f751a6.
* 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> | 3 years ago |