channel.c
Source contains low-bit mask syntaxSysctl handler function signature
SHA-2564281ed57edddc973f2de197e71f2a5e60ef4d6669259fbfe109737fce7e119dc
MaleculeO(Er)H(Db₂)
Evidence
8:4… All rights reserved.
9 * Copyright (c) 2024-2025 The FreeBSD Foundation
10 *
11 * Portions of this software were developed by Christos Margiolis
12 * <christos@FreeBSD.org> under sponsorship from the FreeBSD Foundation.
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 * 1. Redistributions of source code must retain the above …
33:8… DAMAGE.
34 */
35
36#ifdef HAVE_KERNEL_OPTION_HEADERS
37#include "opt_snd.h"
38#endif
39
40#include <dev/sound/pcm/sound.h>
41#include <dev/sound/pcm/vchan.h>
42
43#include "feeder_if.h"
44
45int report_soft_formats = 1;
46SYSCTL_INT(_hw_snd, OID_AUTO, report_soft_formats, CTLFLAG_RW,
53:10… atency = CHN_LATENCY_DEFAULT;
54
55static int
56sysctl_hw_snd_latency(SYSCTL_HANDLER_ARGS)
57{
58 int err, val;
⋯5 lines
⋯4 lines
1005 int ch;
1006 int i;
1007 char b1[8];
1008 char b2[8];
1009
1010 memset(b1, 0, sizeof(b1));
⋯6 lines
1436:41… STER && vc < SND_VOL_C_MAX &&
1437 (vc == SND_VOL_C_MASTER || (vc & 1)) &&
1438 (vt == SND_CHN_T_VOL_0DB || (vt >= SND_CHN_T_BEGIN &&
1439 vt <= SND_CHN_T_END)) && (vt != SND_CHN_T_VOL_0DB ||
1440 …