Commit graph

24 commits

Author SHA1 Message Date
sam blenny
71294d0145 first pass at volume control overhaul
This commit makes several interrelated changes at once:
1. There's a new lookup table based dB to int7 conversion mechansim
   for the analog volume setting properties (based on Table 6-24)
2. Major docs comment revisions for properties involved in DAC
   volume, speaker volume, headphone volume, speaker gain, and
   headphone gain
3. Added "_" prefix to private helper classes to stop them from
   cluttering up the Sphinx html docs build
4. Merged setter & getter comments into the setter comment for
   the properties I modified. NOTE: Sphinx does not render docs
   comments on property setters!
4. Assorted small-ish revisions to exception handling and
   arguments (convert SPK_GAIN_* constants to dB) to resolve
   inconsistent or surprising behavior discovered while revising
   docs comments

Overall, the goals here are:
1. Make volume setting implementation work and be non-surprising
2. Document how it works
3. Make the TLV320 html docs more readable and complete. A lot of
   the docs comment info wasn't making it through into the html
   docs build because Sphinx ignores setter comments.

The comments build fine, but it's possible the code has errors.
Saving that testing for another day.
2025-08-24 09:44:50 +00:00
Liz
f24788d94a
Merge pull request #7 from adafruit/add_reset
Some checks failed
Build CI / test (push) Has been cancelled
add hardware reset to examples
2025-05-07 16:47:45 -04:00
Liz
1fa7603d77 precommit 2025-05-07 16:44:39 -04:00
Liz
ef1cc7633f add hardware reset to examples 2025-05-07 16:41:25 -04:00
Liz
995ae32c2a
Merge pull request #6 from adafruit/volume_update
create dac_volume
2025-05-06 08:11:21 -04:00
Liz
588bcfecff Update README.rst 2025-05-06 08:08:51 -04:00
Liz
1c7a72dd05 create dac_volume 2025-05-05 12:15:33 -04:00
Liz
b4108f53e4
check for built-in i2s in example
Some checks failed
Build CI / test (push) Has been cancelled
2025-04-25 18:43:30 -04:00
Liz
8d5541065e make speaker louder by default
Some checks failed
Build CI / test (push) Has been cancelled
2025-04-07 08:40:31 -04:00
Liz
51c14aaab3
Update README.rst 2025-04-02 10:27:28 -04:00
Scott Shawcroft
2f3491ce61
Merge pull request #2 from adafruit/initial_lib
Some checks failed
Build CI / test (push) Has been cancelled
library, examples and docs
2025-04-01 10:13:53 -07:00
Liz
759f7c2075
remove link text
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2025-03-31 16:06:29 -04:00
Liz
41b982c956 Update tlv320_fulltest.py 2025-03-31 10:47:42 -04:00
Liz
08a9a85b1c fix init order for speaker
tested with rev b fruit jam
2025-03-21 17:04:07 -04:00
Liz
2a2e91727f fix property comments 2025-03-19 13:42:42 -04:00
BlitzCityDIY
67cc08310d docs 2025-03-19 11:49:08 -04:00
BlitzCityDIY
15d5317a3d ruff 2025-03-19 11:40:56 -04:00
BlitzCityDIY
f5db1f6348 remove todos, tested with fruitjam rev b 2025-03-19 11:27:57 -04:00
Liz
f2f553390c typing and ruff 2025-03-18 17:14:45 -04:00
Liz
5af8082cfa propertized and simpletest 2025-03-18 11:32:51 -04:00
Liz
98eb909cfc full port, full test
needs cleaning up, but driver is working
2025-03-14 13:46:45 -04:00
Liz
a65bcdc3d4 sine tone and initial library 2025-03-12 16:55:16 -04:00
Liz
6c5dce4c1b cookiecutter 2025-03-12 14:58:45 -04:00
Liz
ae9437894e
Initial commit 2025-03-12 14:56:26 -04:00