{"record":{"id":"6c98111801f1c3ff","repo":"AlexxIT/go2rtc","slug":"alsa-unknown-path-s","errorCode":null,"errorMessage":"alsa: unknown path: %s","messagePattern":"alsa: unknown path: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/alsa/open_linux.go","lineNumber":43,"sourceCode":"\tdev, err := device.Open(path)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif !dev.CheckFormat(device.SNDRV_PCM_FORMAT_S16_LE) {\n\t\t_ = dev.Close()\n\t\treturn nil, errors.New(\"alsa: format S16LE not supported\")\n\t}\n\n\tswitch path[len(path)-1] {\n\tcase 'p': // playback\n\t\treturn newPlayback(dev)\n\tcase 'c': // capture\n\t\treturn newCapture(dev)\n\t}\n\n\t_ = dev.Close()\n\treturn nil, fmt.Errorf(\"alsa: unknown path: %s\", path)\n}\n","sourceCodeStart":25,"sourceCodeEnd":45,"githubUrl":"https://github.com/AlexxIT/go2rtc/blob/c245815e75e2a5fd60b4290f12bfc04e55a984d3/pkg/alsa/open_linux.go#L25-L45","documentation":"Open determined the device path is neither a playback ('p' suffix) nor capture ('c' suffix) ALSA node, so it cannot choose a producer type. The device was opened and format-checked successfully but is closed again and rejected; the input path at fault is included in the message.","triggerScenarios":"Thrown at pkg/alsa/open_linux.go:43 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a standard ALSA path ending with the direction letter, e.g. hw:0,0p for playback or hw:0,0c for capture","Verify the device name with aplay -l / arecord -l"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c245815e75e2a5fd60b4290f12bfc04e55a984d3","analyzedAt":"2026-09-07T11:47:02.965Z","contentChangedAt":"2026-09-07T11:47:02.965Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}