sound/usb/line6/pod.c
Source file repositories/reference/linux-study-clean/sound/usb/line6/pod.c
File Facts
- System
- Linux kernel
- Corpus path
sound/usb/line6/pod.c- Extension
.c- Size
- 13271 bytes
- Lines
- 543
- Domain
- Driver Families
- Bucket
- sound/usb
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/slab.hlinux/wait.hlinux/interrupt.hlinux/module.hlinux/usb.hsound/core.hsound/control.hcapture.hdriver.hplayback.h
Detected Declarations
struct usb_line6_podfunction line6_pod_process_messagefunction parameterfunction serial_number_showfunction firmware_version_showfunction device_id_showfunction requirementsfunction snd_pod_control_monitor_infofunction snd_pod_control_monitor_getfunction snd_pod_control_monitor_putfunction pod_initfunction pod_probe
Annotated Snippet
struct usb_line6_pod {
/* Generic Line 6 USB data */
struct usb_line6 line6;
/* Instrument monitor level */
int monitor_level;
/* Current progress in startup procedure */
int startup_progress;
/* Serial number of device */
u32 serial_number;
/* Firmware version (x 100) */
int firmware_version;
/* Device ID */
int device_id;
};
#define line6_to_pod(x) container_of(x, struct usb_line6_pod, line6)
#define POD_SYSEX_CODE 3
/* *INDENT-OFF* */
enum {
POD_SYSEX_SAVE = 0x24,
POD_SYSEX_SYSTEM = 0x56,
POD_SYSEX_SYSTEMREQ = 0x57,
/* POD_SYSEX_UPDATE = 0x6c, */ /* software update! */
POD_SYSEX_STORE = 0x71,
POD_SYSEX_FINISH = 0x72,
POD_SYSEX_DUMPMEM = 0x73,
POD_SYSEX_DUMP = 0x74,
POD_SYSEX_DUMPREQ = 0x75
/* dumps entire internal memory of PODxt Pro */
/* POD_SYSEX_DUMPMEM2 = 0x76 */
};
enum {
POD_MONITOR_LEVEL = 0x04,
POD_SYSTEM_INVALID = 0x10000
};
/* *INDENT-ON* */
enum {
POD_DUMP_MEMORY = 2
};
enum {
POD_BUSY_READ,
POD_BUSY_WRITE,
POD_CHANNEL_DIRTY,
POD_SAVE_PRESSED,
POD_BUSY_MIDISEND
};
static const struct snd_ratden pod_ratden = {
.num_min = 78125,
.num_max = 78125,
.num_step = 1,
.den = 2
};
static struct line6_pcm_properties pod_pcm_properties = {
.playback_hw = {
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_PAUSE |
SNDRV_PCM_INFO_SYNC_START),
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
.rates = SNDRV_PCM_RATE_KNOT,
.rate_min = 39062,
.rate_max = 39063,
.channels_min = 2,
.channels_max = 2,
.buffer_bytes_max = 60000,
.period_bytes_min = 64,
.period_bytes_max = 8192,
.periods_min = 1,
.periods_max = 1024},
.capture_hw = {
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |
Annotation
- Immediate include surface: `linux/slab.h`, `linux/wait.h`, `linux/interrupt.h`, `linux/module.h`, `linux/usb.h`, `sound/core.h`, `sound/control.h`, `capture.h`.
- Detected declarations: `struct usb_line6_pod`, `function line6_pod_process_message`, `function parameter`, `function serial_number_show`, `function firmware_version_show`, `function device_id_show`, `function requirements`, `function snd_pod_control_monitor_info`, `function snd_pod_control_monitor_get`, `function snd_pod_control_monitor_put`.
- Atlas domain: Driver Families / sound/usb.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.