Revert "samples: usb-audio: add app.overlay and remove board specific overlays"
This reverts commit e53371bbc0bc37d911884937199733f23c43fb21. The "usbd0 aliases" approach has not proven to work. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
5e41c3477b
commit
e38e91ed16
8 changed files with 84 additions and 53 deletions
|
@ -1,24 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
usbd0 {
|
||||
hp_0 {
|
||||
label = "HEADPHONES";
|
||||
compatible = "usb-audio-hp";
|
||||
feature-mute;
|
||||
channel-l;
|
||||
channel-r;
|
||||
};
|
||||
mic_0 {
|
||||
label = "MICROPHONE";
|
||||
compatible = "usb-audio-mic";
|
||||
feature-mute;
|
||||
channel-l;
|
||||
channel-r;
|
||||
};
|
||||
};
|
||||
};
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&usbd {
|
||||
hp_0 {
|
||||
label = "HEADPHONES";
|
||||
compatible = "usb-audio-hp";
|
||||
feature-mute;
|
||||
channel-l;
|
||||
channel-r;
|
||||
};
|
||||
mic_0 {
|
||||
label = "MICROPHONE";
|
||||
compatible = "usb-audio-mic";
|
||||
feature-mute;
|
||||
channel-l;
|
||||
channel-r;
|
||||
};
|
||||
};
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&usbd {
|
||||
hp_0 {
|
||||
label = "HEADPHONES";
|
||||
compatible = "usb-audio-hp";
|
||||
feature-mute;
|
||||
channel-l;
|
||||
channel-r;
|
||||
};
|
||||
mic_0 {
|
||||
label = "MICROPHONE";
|
||||
compatible = "usb-audio-mic";
|
||||
feature-mute;
|
||||
channel-l;
|
||||
channel-r;
|
||||
};
|
||||
};
|
|
@ -4,10 +4,7 @@ tests:
|
|||
sample.usb.audio.headphones_microphone:
|
||||
depends_on: usb_device
|
||||
tags: usb
|
||||
filter: dt_alias_exists("usbd0")
|
||||
integration_platforms:
|
||||
- nrf52840dk_nrf52840
|
||||
- nrf5340dk_nrf5340_cpuapp
|
||||
platform_allow: nrf52840dk_nrf52840 nrf5340dk_nrf5340_cpuapp
|
||||
harness: console
|
||||
harness_config:
|
||||
type: multi_line
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
usbd0 {
|
||||
hs_0 {
|
||||
label = "HEADSET";
|
||||
compatible = "usb-audio-hs";
|
||||
mic-feature-mute;
|
||||
mic-channel-l;
|
||||
mic-channel-r;
|
||||
|
||||
hp-feature-mute;
|
||||
hp-channel-l;
|
||||
hp-channel-r;
|
||||
};
|
||||
};
|
||||
};
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&usbd {
|
||||
hs_0 {
|
||||
label = "HEADSET";
|
||||
compatible = "usb-audio-hs";
|
||||
mic-feature-mute;
|
||||
mic-channel-l;
|
||||
mic-channel-r;
|
||||
|
||||
hp-feature-mute;
|
||||
hp-channel-l;
|
||||
hp-channel-r;
|
||||
};
|
||||
};
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&usbd {
|
||||
hs_0 {
|
||||
label = "HEADSET";
|
||||
compatible = "usb-audio-hs";
|
||||
mic-feature-mute;
|
||||
mic-channel-l;
|
||||
mic-channel-r;
|
||||
|
||||
hp-feature-mute;
|
||||
hp-channel-l;
|
||||
hp-channel-r;
|
||||
};
|
||||
};
|
|
@ -4,10 +4,7 @@ tests:
|
|||
sample.usb.audio.headset:
|
||||
depends_on: usb_device
|
||||
tags: usb
|
||||
filter: dt_alias_exists("usbd0")
|
||||
integration_platforms:
|
||||
- nrf52840dk_nrf52840
|
||||
- nrf5340dk_nrf5340_cpuapp
|
||||
platform_allow: nrf52840dk_nrf52840 nrf5340dk_nrf5340_cpuapp
|
||||
harness: console
|
||||
harness_config:
|
||||
type: multi_line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue