Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bidirectional I2S #9909

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 31 additions & 7 deletions locale/circuitpython.pot
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,15 @@ msgstr ""
msgid "%q must be array of type 'h'"
msgstr ""

#: shared-bindings/audiobusio/I2S.c shared-bindings/audiobusio/I2SIn.c
#: shared-bindings/audiobusio/PDMIn.c
msgid "%q must be multiple of 8."
msgstr ""

#: ports/raspberrypi/bindings/cyw43/__init__.c py/argcheck.c py/objexcept.c
#: shared-bindings/bitmapfilter/__init__.c shared-bindings/canio/CAN.c
#: shared-bindings/digitalio/Pull.c shared-bindings/supervisor/__init__.c
#: shared-module/synthio/Synthesizer.c
#: shared-module/synthio/Biquad.c shared-module/synthio/Synthesizer.c
msgid "%q must be of type %q or %q, not %q"
msgstr ""

Expand Down Expand Up @@ -630,6 +631,8 @@ msgstr ""
msgid "Below minimum frame rate"
msgstr ""

#: ports/raspberrypi/common-hal/audiobusio/I2S.c
#: ports/raspberrypi/common-hal/audiobusio/I2SIn.c
#: ports/raspberrypi/common-hal/audiobusio/I2SOut.c
msgid "Bit clock and word select must be sequential GPIO pins"
msgstr ""
Expand All @@ -638,6 +641,10 @@ msgstr ""
msgid "Bitmap size and bits per value must match"
msgstr ""

#: ports/raspberrypi/common-hal/audiobusio/I2S.c
msgid "Bits per sample cannot be greater than input."
msgstr ""

#: supervisor/shared/safe_mode.c
msgid "Boot device must be first (interface #0)."
msgstr ""
Expand Down Expand Up @@ -1431,6 +1438,8 @@ msgstr ""

#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
#: ports/raspberrypi/common-hal/audiobusio/I2S.c
#: ports/raspberrypi/common-hal/audiobusio/I2SIn.c
#: ports/raspberrypi/common-hal/audiobusio/I2SOut.c
#: ports/raspberrypi/common-hal/audiopwmio/PWMAudioOut.c
msgid "No DMA channel found"
Expand Down Expand Up @@ -1463,6 +1472,14 @@ msgstr ""
msgid "No connection: length cannot be determined"
msgstr ""

#: ports/raspberrypi/common-hal/audiobusio/I2S.c
msgid "No data in"
msgstr ""

#: ports/raspberrypi/common-hal/audiobusio/I2S.c
msgid "No data out"
msgstr ""

#: shared-bindings/board/__init__.c
msgid "No default %q bus"
msgstr ""
Expand Down Expand Up @@ -1542,8 +1559,8 @@ msgstr ""
msgid "Not connected"
msgstr ""

#: shared-bindings/audiobusio/I2SOut.c shared-bindings/audioio/AudioOut.c
#: shared-bindings/audiopwmio/PWMAudioOut.c
#: shared-bindings/audiobusio/I2S.c shared-bindings/audiobusio/I2SOut.c
#: shared-bindings/audioio/AudioOut.c shared-bindings/audiopwmio/PWMAudioOut.c
msgid "Not playing"
msgstr ""

Expand Down Expand Up @@ -1900,6 +1917,10 @@ msgstr ""
msgid "SPI re-init"
msgstr ""

#: ports/raspberrypi/common-hal/audiobusio/I2S.c
msgid "Sample rate must match."
msgstr ""

#: shared-bindings/is31fl3741/FrameBuffer.c
msgid "Scale dimensions must divide by 3"
msgstr ""
Expand All @@ -1918,6 +1939,10 @@ msgstr ""
msgid "Server side context cannot have hostname"
msgstr ""

#: ports/raspberrypi/common-hal/audiobusio/I2S.c
msgid "Single channel output not supported."
msgstr ""

#: ports/cxd56/common-hal/camera/Camera.c
msgid "Size not supported"
msgstr ""
Expand Down Expand Up @@ -2020,6 +2045,7 @@ msgstr ""
msgid "Too many channels in sample"
msgstr ""

#: ports/raspberrypi/common-hal/audiobusio/I2S.c
#: ports/raspberrypi/common-hal/audiobusio/I2SOut.c
msgid "Too many channels in sample."
msgstr ""
Expand Down Expand Up @@ -2109,6 +2135,8 @@ msgstr ""

#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
#: ports/raspberrypi/common-hal/audiobusio/I2S.c
#: ports/raspberrypi/common-hal/audiobusio/I2SIn.c
#: ports/raspberrypi/common-hal/audiobusio/I2SOut.c
#: ports/raspberrypi/common-hal/audiopwmio/PWMAudioOut.c
msgid "Unable to allocate buffers for signed conversion"
Expand Down Expand Up @@ -3383,10 +3411,6 @@ msgstr ""
msgid "label redefined"
msgstr ""

#: shared-bindings/audiomixer/MixerVoice.c
msgid "level must be between 0 and 1"
msgstr ""

#: py/objarray.c
msgid "lhs and rhs should be compatible"
msgstr ""
Expand Down
7 changes: 7 additions & 0 deletions ports/atmel-samd/common-hal/audiobusio/I2S.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

// Although IS2 is not enabled on this family, this file is still required for the build to pass
11 changes: 11 additions & 0 deletions ports/atmel-samd/common-hal/audiobusio/I2S.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

#pragma once

#include "shared-module/audiocore/__init__.h"

// Although IS2 is not enabled on this family, this file is still required for the build to pass
7 changes: 7 additions & 0 deletions ports/atmel-samd/common-hal/audiobusio/I2SIn.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

// Although IS2In is not enabled on this family, this file is still required for the build to pass
11 changes: 11 additions & 0 deletions ports/atmel-samd/common-hal/audiobusio/I2SIn.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

#pragma once

#include "shared-module/audiocore/__init__.h"

// Although IS2In is not enabled on this family, this file is still required for the build to pass
7 changes: 7 additions & 0 deletions ports/espressif/common-hal/audiobusio/I2S.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

// Although IS2 is not enabled on this family, this file is still required for the build to pass
11 changes: 11 additions & 0 deletions ports/espressif/common-hal/audiobusio/I2S.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

#pragma once

#include "shared-module/audiocore/__init__.h"

// Although IS2 is not enabled on this family, this file is still required for the build to pass
7 changes: 7 additions & 0 deletions ports/espressif/common-hal/audiobusio/I2SIn.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

// Although IS2In is not enabled on this family, this file is still required for the build to pass
11 changes: 11 additions & 0 deletions ports/espressif/common-hal/audiobusio/I2SIn.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

#pragma once

#include "shared-module/audiocore/__init__.h"

// Although IS2In is not enabled on this family, this file is still required for the build to pass
7 changes: 7 additions & 0 deletions ports/mimxrt10xx/common-hal/audiobusio/I2S.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

// Although IS2 is not enabled on this family, this file is still required for the build to pass
11 changes: 11 additions & 0 deletions ports/mimxrt10xx/common-hal/audiobusio/I2S.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

#pragma once

#include "shared-module/audiocore/__init__.h"

// Although IS2 is not enabled on this family, this file is still required for the build to pass
7 changes: 7 additions & 0 deletions ports/mimxrt10xx/common-hal/audiobusio/I2SIn.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

// Although IS2In is not enabled on this family, this file is still required for the build to pass
11 changes: 11 additions & 0 deletions ports/mimxrt10xx/common-hal/audiobusio/I2SIn.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

#pragma once

#include "shared-module/audiocore/__init__.h"

// Although IS2In is not enabled on this family, this file is still required for the build to pass
7 changes: 7 additions & 0 deletions ports/nordic/common-hal/audiobusio/I2S.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

// Although IS2 is not enabled on this family, this file is still required for the build to pass
11 changes: 11 additions & 0 deletions ports/nordic/common-hal/audiobusio/I2S.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

#pragma once

#include "shared-module/audiocore/__init__.h"

// Although IS2 is not enabled on this family, this file is still required for the build to pass
7 changes: 7 additions & 0 deletions ports/nordic/common-hal/audiobusio/I2SIn.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

// Although IS2In is not enabled on this family, this file is still required for the build to pass
11 changes: 11 additions & 0 deletions ports/nordic/common-hal/audiobusio/I2SIn.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 Cooper Dalrymple
//
// SPDX-License-Identifier: MIT

#pragma once

#include "shared-module/audiocore/__init__.h"

// Although IS2In is not enabled on this family, this file is still required for the build to pass
Loading
Loading