最終更新:2025-10-07 (火) 06:45:17 (310d)
CONFIG_USB_AUDIO
Top / CONFIG_USB_AUDIO
Linux 2.6.31~
- Linux/USBガジェット/UACのドライバ
drivers/usb/gadget/legacy/Kconfig
- Audio Gadget
- Linux 3.17~
This Gadget Audio driver is compatible with USB Audio Class specification 2.0. It implements 1 AudioControl interface, 1 AudioStreaming Interface each for USB-OUT and USB-IN. Number of channels, sample rate and sample size can be specified as module parameters. This driver doesn't expect any real Audio codec to be present on the device - the audio streams are simply sinked to and sourced from a virtual ALSA sound card created. The user-space application may choose to do whatever it wants with the data received from the USB Host and choose to provide whatever it wants as audio data to the USB Host.
モジュール
drivers/usb/gadget/Kconfig
- Audio Gadget (EXPERIMENTAL)
https://elixir.bootlin.com/linux/v2.6.31/source/drivers/usb/gadget/Kconfig#L604
config CONFIG_USB_AUDIO
- tristate "Audio Gadget"
- depends on CONFIG_SND
- select CONFIG_USB_LIBCOMPOSITE
- select CONFIG_SND_PCM?
- select CONFIG_USB_F_UAC1 if (CONFIG_GADGET_UAC1 && !CONFIG_GADGET_UAC1_LEGACY?)
- select CONFIG_USB_F_UAC1_LEGACY? if (CONFIG_GADGET_UAC1 && CONFIG_GADGET_UAC1_LEGACY?)
- select CONFIG_USB_F_UAC2 if !CONFIG_GADGET_UAC1
- select CONFIG_USB_U_AUDIO if (CONFIG_USB_F_UAC2 || CONFIG_USB_F_UAC1)

