mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
usb: gadget: u_audio: Support multiple sampling rates
Implement support for multiple sampling rates in u_audio part of the audio gadget. The currently configured rates are exposed through read-only amixer controls 'Capture Rate' and 'Playback Rate'. Signed-off-by: Julian Scheel <julian@jusst.de> Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com> Link: https://lore.kernel.org/r/20220121155308.48794-3-pavel.hofman@ivitera.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ce6a7bfbe5
commit
c565ad07ef
9
drivers/usb/gadget/function/uac_common.h
Normal file
9
drivers/usb/gadget/function/uac_common.h
Normal file
@@ -0,0 +1,9 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
*/
|
||||
|
||||
#ifndef UAC_COMMON_H
|
||||
#define UAC_COMMON_H
|
||||
|
||||
#define UAC_MAX_RATES 10 /* maximum number of rates configurable by f_uac1/2 */
|
||||
#endif
|
||||
Reference in New Issue
Block a user