mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
- dmodemd --usb: SmartUSB56 caller ID and the ST75951 silicon DAA; its LEDs, wake on ring, handset, international line controls, voice codec, RHOM and buzzer (each opt-in). - SmartDAA (Conexant): its power up, line setup, hook and country table. - V.22: 1200 bit/s symbols decided around their point. - Clang preferred where it is installed. The app says the SmartUSB56 has caller ID now too. The host's USB test links D-Modem-RE's fake stick alone, without the real libusb behind it: libusb_get_port_numbers (wake on ring's, unused there) stubbed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
27 lines
783 B
C++
27 lines
783 B
C++
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Copyright (C) 2026 Neo-Desktop
|
|
*
|
|
* usb_fake_device.cpp - the build host's usb_android.h: the fake
|
|
* stick (fake_pico_line.cpp) is found by
|
|
* libusb's own calls, no descriptor to wrap
|
|
*
|
|
*/
|
|
#include "usb/usb_android.h"
|
|
|
|
namespace dmodem_android {
|
|
|
|
void usb_use_fd(int) {}
|
|
|
|
} // namespace dmodem_android
|
|
|
|
/* what the fake leaves to the real libusb (upstream's tests preload the
|
|
fake in front of it; here it is linked in alone): the device's ports,
|
|
for wake on ring's sysfs switch (UsbLine::arm_wake(), with set_wake()
|
|
alone), unknown */
|
|
extern "C" int LIBUSB_CALL libusb_get_port_numbers(libusb_device *,
|
|
uint8_t *, int)
|
|
{
|
|
return LIBUSB_ERROR_NOT_SUPPORTED;
|
|
}
|