On Mon, Dec 20, 2021 at 10:11:21PM +0100, Pavel Hofman wrote: > From: Julian Scheel <julian@xxxxxxxx> > > 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@xxxxxxxx> > Signed-off-by: Pavel Hofman <pavel.hofman@xxxxxxxxxxx> > --- > 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?