Commit Graph

33 Commits

Author SHA1 Message Date
George Norton 9c036f07f8
Fix save config (#27)
* Fix save config

* Fix save config when no audio is playing

* Fix build issue with the github workflow compiler
2023-10-16 18:35:38 -04:00
PloopyCo 84306c0922 Adjusted Oratory's default EQ:
- Less bass. Excursion limits happen at 30-50Hz first, so reducing response in this range makes it a little less likely this will be a problem. Plus, I like it.
- A little more response above 12kHz.

Updated config version to 4.

Added a parameter for post EQ gain. Applied once after EQ is calculated.
2023-09-14 05:06:57 -04:00
George Norton 41d4023961
Run the DAC in 24bit mode. (#25)
* Run the DAC in 24bit mode.

* Update comment.

* Remove accidental paste

* Fix distortion.

* Shift up the samples into -1..1, not much different, but we get an extra bit of resolution at the low end.
2023-09-14 04:49:56 -04:00
George Norton 1e6896f918
Enable oratory's 15 band EQ (#23)
* Attempt at optimizing so the new filtering runs better.

* Additional improvements.

* Further optimisations.

* Seems to work OK with 10 filters. Just noise with 11.

* Increase config buffer size, and make the bqf_transform function inline

* Remove extra loop and process input evently across both cores.

* Enable 15 band EQ.

* Shift some load of core1

* Revert buffer size change

* Mark USB transfer as done sooner.

* Fast multiply.

* Fix build failure.

* Rollback changes we dont need.

* Fix save config to flash

* Increase filter stages to 20. We cant quite run that many though.

* Replace a few doubles with floats. According to the raspberry-pi-pico-c-sdk manual, doubles are around 3 times slower than floats.
2023-08-23 15:47:01 -04:00
ploopyco fd6cbf54d5 refactored volume updates and filter configs to run on core 1 2023-08-16 13:31:56 -04:00
ploopyco c03b463390
- Replaced default EQ filter set with an 8-band EQ based on measurements from Oratory1990 and VSG (#21)
- Default configuration reverses the left/right channels in the DAC, because the headphones are wired backwards (oopie!)

Co-authored-by: PloopyCo <contact@ploopy.co>
2023-08-15 03:15:21 -04:00
ploopyco 5779320f68 fixed bug that causes some DACs to fail after first plugin 2023-08-10 13:37:29 -04:00
Phil Lam 8ac4089aa0 Updated the DAC case design files to revision OOO, which has a larger hole at the TRS jack output connector to accommodate cables with larger overmolds on the plug. 2023-07-28 22:20:04 -04:00
Phil Lam 85ab78a2b8 Added new headband designs that come in 3 sizes and are more robust. 2023-07-18 20:26:33 -04:00
ploopyco e90d2eb0e8 added pm10 2023-07-14 15:09:06 -04:00
ploopyco 481219341d q3.28 changes 2023-07-14 15:06:20 -04:00
ploopyco 009dd2e698
Headphones toolbox (#18) (#19)
* Initial, very incomplete, toolbox interface.

* Refactored things to move ugly structs out of run.c. Experimental config structures.

* Extra comments.

* Continuted to implement communication protocol. Can now validate Filter Configuration Structures

* Config save/load works.

* Reverse stereo and preamp.

* Fixes and minor features.

* Codec confiuguration implementation.

* Support sending configs back to the client.

* Fix broken audio when changing a filter type.

* Fix broken audio when changing a filter type.

* Try to create a build workflow

* Report version info

* Disable interrupts while reconfiguring, reset all filters if one has a type change.

* Reset memory on filter type change..

* Shuffle cores.

* Slight refactoring.

* Only update a filter if something has changed.

* Re-order PCM3060 init i2c commands.

* Fixed point math tweaks. Treat samples as normalized (-1..1), this doesnt change much, except the filter coefficients get way more bits of precision.

* Allow the user to create fully custom filters.

* Increase the max fix16 size to -32.0..32.0 as it seems it is possible to create coefficients which are >16.

---------

Co-authored-by: George Norton <george_norton_uk@hotmail.com>
Co-authored-by: George Norton <30636555+george-norton@users.noreply.github.com>
2023-07-14 14:53:04 -04:00
ploopyco 0564b9c3a5
Update README.md 2023-06-23 14:32:49 -04:00
ploopyco 93b0f380d3
Update README.md 2023-05-31 14:14:09 -04:00
ploopyco 794a547414 new firmware build 2023-05-24 14:40:07 -04:00
George Norton 032ed19550
Fix the LRCK signal which was reversing the channels. (#14) 2023-05-24 14:22:51 -04:00
ploopyco eb00a051e1 added pm8 and doco 2023-05-17 15:26:09 -04:00
George Norton 47b94b8d73
PCM3060 volume control (#13)
* Initial set of changes to offload the volume controls to the DAC.

* Minor cleanup. Added Independent Left/Right volume control.

* Code cleanup.
2023-05-17 15:13:24 -04:00
ploopyco a8f9b522de updated firmware to pm7 2023-04-18 16:19:51 -04:00
George Norton 69fdc8a4e2
Basic support for rebooting into the bootloader. (#10) 2023-04-13 09:08:59 -04:00
george-norton 992df01067
Fix audio distortion (#8)
* Fix an overflow in the fix16_t usage which can lead to audio distortion.

* Add a simple test application for running the filtering stages on a PC.

* Fix readme typos.

* Rename test to tools.

* Remove volume multiplier

---------

Co-authored-by: George Norton <george.norton@mediakind.com>
2023-04-05 16:23:35 -04:00
ploopyco cca0639485 fixed -2db bug 2023-03-22 14:11:30 -04:00
ploopyco 1771ccab54 fixed digital distortion issue; uploaded new firmware 2023-03-08 12:14:17 -05:00
ploopyco eab154b9ee
Create README.md 2023-02-17 09:36:38 -05:00
ploopyco 01373819c9
Added gould schematic 2023-02-08 17:03:03 -05:00
ploopyco 2ba4966fa6
Update user.h 2023-02-08 06:22:49 -05:00
ploopyco 4783722e46
Update user.c 2023-02-08 06:22:34 -05:00
ploopyco 71241dc6f2 added dxfs 2023-02-03 17:56:24 -05:00
ploopyco 2f2329aae3
Update README.md 2023-02-03 15:33:18 -05:00
ploopyco e6d51d6ef5 updated firmware to pm4; updated readme 2023-02-03 15:32:09 -05:00
ploopyco a6d16ada4d added electronics 2023-02-03 15:24:19 -05:00
ploopyco d530889f4c firmware, mechanicals 2023-02-03 15:23:55 -05:00
ploopyco 50c0888a53 init 2023-02-03 15:23:53 -05:00