diff options
author | Ajay Agarwal <ajaya@codeaurora.org> | 2019-01-08 19:26:53 +0530 |
---|---|---|
committer | Ajay Agarwal <ajaya@codeaurora.org> | 2019-01-09 10:16:53 +0530 |
commit | 25bc0948aee5f9e88f1f95d7a091e64abf929693 (patch) | |
tree | 711caa494bf5f4b52b1c1ba86688f0a339af6272 /Documentation | |
parent | 7b9edc5d9f6f8e658d9a0d3b39a245019cb24d72 (diff) |
Revert "usb: gadget: add f_uac1 variant based on a new u_audio api"
This reverts commit 8706efd80958ef729efe7f1cc0c5a994ce26f071.
Required for clean picking of UAC opensource changes.
Change-Id: I5cd6d43ffce71db0bad71ea43e97a40703fb61cf
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/ABI/testing/configfs-usb-gadget-uac1 | 14 | ||||
-rw-r--r-- | Documentation/usb/gadget-testing.txt | 44 |
2 files changed, 0 insertions, 58 deletions
diff --git a/Documentation/ABI/testing/configfs-usb-gadget-uac1 b/Documentation/ABI/testing/configfs-usb-gadget-uac1 deleted file mode 100644 index abfe447c848f..000000000000 --- a/Documentation/ABI/testing/configfs-usb-gadget-uac1 +++ /dev/null @@ -1,14 +0,0 @@ -What: /config/usb-gadget/gadget/functions/uac1.name -Date: June 2017 -KernelVersion: 4.14 -Description: - The attributes: - - c_chmask - capture channel mask - c_srate - capture sampling rate - c_ssize - capture sample size (bytes) - p_chmask - playback channel mask - p_srate - playback sampling rate - p_ssize - playback sample size (bytes) - req_number - the number of pre-allocated request - for both capture and playback diff --git a/Documentation/usb/gadget-testing.txt b/Documentation/usb/gadget-testing.txt index d9c27809c8c8..0c1dc63f0560 100644 --- a/Documentation/usb/gadget-testing.txt +++ b/Documentation/usb/gadget-testing.txt @@ -20,7 +20,6 @@ provided by gadgets. 17. UAC2 function 18. UVC function 19. PRINTER function -20. UAC1 function (new API) 1. ACM function @@ -770,46 +769,3 @@ host: More advanced testing can be done with the prn_example described in Documentation/usb/gadget-printer.txt. - - -20. UAC1 function (virtual ALSA card, using u_audio API) -================= - -The function is provided by usb_f_uac1.ko module. -It will create a virtual ALSA card and the audio streams are simply -sinked to and sourced from it. - -Function-specific configfs interface ------------------------------------- - -The function name to use when creating the function directory is "uac1". -The uac1 function provides these attributes in its function directory: - - c_chmask - capture channel mask - c_srate - capture sampling rate - c_ssize - capture sample size (bytes) - p_chmask - playback channel mask - p_srate - playback sampling rate - p_ssize - playback sample size (bytes) - req_number - the number of pre-allocated request for both capture - and playback - -The attributes have sane default values. - -Testing the UAC1 function -------------------------- - -device: run the gadget -host: aplay -l # should list our USB Audio Gadget - -This function does not require real hardware support, it just -sends a stream of audio data to/from the host. In order to -actually hear something at the device side, a command similar -to this must be used at the device side: - -$ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 & - -e.g.: - -$ arecord -f dat -t wav -D hw:CARD=UAC1Gadget,DEV=0 | \ -aplay -D default:CARD=OdroidU3 |