Re: [PATCH v2 02/11] usb: gadget: u_audio: Support multiple sampling rates
From: John Keeping <hidden>
Date: 2021-12-21 11:35:59
From: John Keeping <hidden>
Date: 2021-12-21 11:35:59
On Mon, Dec 20, 2021 at 10:11:21PM +0100, Pavel Hofman wrote:
From: Julian Scheel <redacted> 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 <redacted> Signed-off-by: Pavel Hofman <redacted> ---
diff --git a/drivers/usb/gadget/function/uac_common.h b/drivers/usb/gadget/function/uac_common.h new file mode 100644 index 000000000000..3ecf89d6e814 --- /dev/null +++ b/drivers/usb/gadget/function/uac_common.h@@ -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 */
Why a new header for this - doesn't it belong in u_audio.h?