Skip to content

Commit

Permalink
samples: usb-audio: add app.overlay and use zephyr_udc0
Browse files Browse the repository at this point in the history
USB audio class samples are generic and can be built for any
board that supports USB device and isochronous endpoints.
Add app.overlay that uses reference to zephyr_udc0 and remove
board specific overlays.

Note: USB audio is still experimental and even though the sample can
be built for specific platform, it does not mean that it can be run
on it without issues.

Signed-off-by: Johann Fischer <[email protected]>
  • Loading branch information
jfischer-no authored and carlescufi committed Aug 19, 2021
1 parent e4f8947 commit 976c5fe
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

&usbd {
&zephyr_udc0 {
hp_0 {
label = "HEADPHONES";
compatible = "usb-audio-hp";
Expand Down

This file was deleted.

5 changes: 4 additions & 1 deletion samples/subsys/usb/audio/headphones_microphone/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ tests:
sample.usb.audio.headphones_microphone:
depends_on: usb_device
tags: usb
platform_allow: nrf52840dk_nrf52840 nrf5340dk_nrf5340_cpuapp
platform_exclude: native_posix native_posix_64
integration_platforms:
- nrf52840dk_nrf52840
- nrf5340dk_nrf5340_cpuapp
harness: console
harness_config:
type: multi_line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

&usbd {
&zephyr_udc0 {
hs_0 {
label = "HEADSET";
compatible = "usb-audio-hs";
Expand Down

This file was deleted.

5 changes: 4 additions & 1 deletion samples/subsys/usb/audio/headset/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ tests:
sample.usb.audio.headset:
depends_on: usb_device
tags: usb
platform_allow: nrf52840dk_nrf52840 nrf5340dk_nrf5340_cpuapp
platform_exclude: native_posix native_posix_64
integration_platforms:
- nrf52840dk_nrf52840
- nrf5340dk_nrf5340_cpuapp
harness: console
harness_config:
type: multi_line
Expand Down

0 comments on commit 976c5fe

Please sign in to comment.