| 1 | // SPDX-FileCopyrightText: 2022-2025 Geoffrey D. Bennett <[email protected]> |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | // Get device-specific default port name |
| 7 | // Returns NULL if no device-specific name defined for this port |
| 8 | const char *get_device_port_name( |
| 9 | int pid, // USB product ID |
| 10 | int port_category, // PC_HW, PC_PCM, PC_MIX |
| 11 | int hw_type, // for PC_HW: HW_TYPE_ANALOGUE, HW_TYPE_SPDIF, HW_TYPE_ADAT |
| 12 | int is_snk, // 0 = source, 1 = sink |
| 13 | int port_num // 0-based port number |
| 14 | ); |
| 15 | |
| 16 | // Get device-specific default stereo pair name |
| 17 | // Returns NULL if no device-specific name defined for this pair |
| 18 | const char *get_device_pair_name( |
| 19 | int pid, // USB product ID |
| 20 | int port_category, // PC_HW, PC_PCM, PC_MIX |
| 21 | int hw_type, // for PC_HW: HW_TYPE_ANALOGUE, HW_TYPE_SPDIF, HW_TYPE_ADAT |
| 22 | int is_snk, // 0 = source, 1 = sink |
| 23 | int pair_num // 0-based pair number (pair 0 = ports 1-2, pair 1 = ports 3-4, etc.) |
| 24 | ); |