# HG changeset patch # User Mychaela Falconia # Date 1649143723 0 # Node ID e0c7fa6be0fc215b1630c67986b3a0c325fc310e # Parent e1878231dbcd496e8ce73bd63934b2fff608b785 aud-pirelli: copying official fw diff -r e1878231dbcd -r e0c7fa6be0fc Makefile --- a/Makefile Tue Apr 05 06:22:50 2022 +0000 +++ b/Makefile Tue Apr 05 07:28:43 2022 +0000 @@ -1,4 +1,4 @@ -SUBDIR= aud-c139 aud-caramel aud-fcdev3b batteries charging +SUBDIR= aud-c139 aud-caramel aud-fcdev3b aud-pirelli batteries charging all: ${SUBDIR} diff -r e1878231dbcd -r e0c7fa6be0fc aud-pirelli/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aud-pirelli/Makefile Tue Apr 05 07:28:43 2022 +0000 @@ -0,0 +1,23 @@ +BINFILES= handheld.cfg handheld.vol headset.cfg headset.vol +INSTDIR= /opt/freecalypso/aud-pirelli + +all: ${BINFILES} + +handheld.cfg: handheld.src + tiaud-compile $< $@ + +handheld.vol: Makefile + tiaud-mkvol 150 $@ + +headset.cfg: headset.src + tiaud-compile $< $@ + +headset.vol: Makefile + tiaud-mkvol 150 $@ + +install: ${BINFILES} + mkdir -p ${INSTDIR} + install -c -m 644 ${BINFILES} ${INSTDIR} + +clean: + rm -f *.cfg *.vol diff -r e1878231dbcd -r e0c7fa6be0fc aud-pirelli/handheld.src --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aud-pirelli/handheld.src Tue Apr 05 07:28:43 2022 +0000 @@ -0,0 +1,28 @@ +# Handheld audio mode on the Pirelli DP-L10 target - this audio mode +# config has been lifted directly from Pirelli's official fw, +# specifically the state when the volume control is at the maximum. +# +# We shall do volume control in our own FreeCalypso way, hence DL PGA +# and sidetone settings need to follow the maximum volume configuration +# from Pirelli. + +mic default { + gain 3 + output-bias 1 + fir 0 0xFFF8 0x0003 0x0008 0xFFFE 0x001E 0x0069 0x0037 0xFFD2 + fir 8 0x0064 0x0078 0xFE34 0xFD60 0x0042 0xFE70 0xF33F 0x7E9D + fir 16 0xF33F 0xFE70 0x0042 0xFD60 0xFE34 0x0078 0x0064 0xFFD2 + fir 24 0x0037 0x0069 0x001E 0xFFFE 0x0008 0x0003 0xFFF8 +} + +speaker ear { + gain 4 + fir 0 0x0005 0x0004 0xFFF6 0xFFF6 0xFFEE 0x0013 0x0043 0xFFC7 + fir 8 0x0040 0x010F 0xFEBA 0xFCB4 0xFE9E 0x0643 0x16E5 0x3634 + fir 16 0x16E5 0x0643 0xFE9E 0xFCB4 0xFEBA 0x010F 0x0040 0xFFC7 + fir 24 0x0043 0x0013 0xFFEE 0xFFF6 0xFFF6 0x0004 0x0005 +} + +sidetone -17 + +aec-new 2 1 0x14 0xCCC 0x59AD 0x4000 0x32 0x1000 0x1000 0 4 0 diff -r e1878231dbcd -r e0c7fa6be0fc aud-pirelli/headset.src --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aud-pirelli/headset.src Tue Apr 05 07:28:43 2022 +0000 @@ -0,0 +1,29 @@ +# Headset audio mode on the Pirelli DP-L10 target - this audio mode +# config has been lifted directly from Pirelli's official fw, +# specifically the state when the volume control is at the maximum. +# +# We shall do volume control in our own FreeCalypso way, hence DL PGA +# and sidetone settings need to follow the maximum volume configuration +# from Pirelli. + + +mic headset { + gain 6 + output-bias 1 + fir 0 0x0002 0xFFFB 0x0002 0x0028 0xFFD5 0xFF9B 0x0058 0x00A8 + fir 8 0x006C 0xFE28 0xFD6B 0x0596 0x03FF 0xF505 0xFDFA 0x7F5C + fir 16 0xFDFA 0xF505 0x03FF 0x0596 0xFD6B 0xFE28 0x006C 0x00A8 + fir 24 0x0058 0xFF9B 0xFFD5 0x0028 0x0002 0xFFFB 0x0002 +} + +speaker headset { + gain 2 + fir 0 0xFFEE 0xFFF9 0x0045 0xFF8C 0x005B 0x001A 0xFE95 0x02DF + fir 8 0xFEA4 0xFD2E 0x05DC 0xF5AC 0x1069 0xF907 0xE847 0x7F5C + fir 16 0xE847 0xF907 0x1069 0xF5AC 0x05DC 0xFD2E 0xFEA4 0x02DF + fir 24 0xFE95 0x001A 0x005B 0xFF8C 0x0045 0xFFF9 0xFFEE +} + +sidetone -23 + +aec-new 2 1 0x14 0xCCC 0x59AD 0x4000 0x32 0x1000 0x1000 0 4 0