Lines Matching +full:gpo +full:- +full:config +full:- +full:1

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2008-2012 Alexander Motin <mav@FreeBSD.org>
12 * 1. Redistributions of source code must retain the above copyright
46 /* 9 - 25 = anything else */
47 #define HDAA_QUIRK_SOFTPCMVOL (1 << 9)
48 #define HDAA_QUIRK_FIXEDRATE (1 << 10)
49 #define HDAA_QUIRK_FORCESTEREO (1 << 11)
50 #define HDAA_QUIRK_EAPDINV (1 << 12)
51 #define HDAA_QUIRK_SENSEINV (1 << 14)
53 /* 26 - 31 = vrefs */
54 #define HDAA_QUIRK_IVREF50 (1 << 26)
55 #define HDAA_QUIRK_IVREF80 (1 << 27)
56 #define HDAA_QUIRK_IVREF100 (1 << 28)
57 #define HDAA_QUIRK_OVREF50 (1 << 29)
58 #define HDAA_QUIRK_OVREF80 (1 << 30)
59 #define HDAA_QUIRK_OVREF100 (1U << 31)
67 #define HDAA_AMP_VOL_DEFAULT (-1)
70 #define HDAA_AMP_MUTE_LEFT (1 << 0)
71 #define HDAA_AMP_MUTE_RIGHT (1 << 1)
75 #define HDAA_AMP_RIGHT_MUTED(v) (((v) & HDAA_AMP_MUTE_RIGHT) >> 1)
78 #define HDAA_ADC_MONITOR (1 << 0)
82 #define HDAA_CTL_OUT 1
123 uint32_t config; member
144 int devleft[SOUND_MIXER_NRDEVICES]; /* Left ampl in 1/4dB. */
145 int devright[SOUND_MIXER_NRDEVICES]; /* Right ampl in 1/4dB. */
177 int minamp[SOUND_MIXER_NRDEVICES]; /* Minimal amps in 1/4dB. */
178 int maxamp[SOUND_MIXER_NRDEVICES]; /* Maximal amps in 1/4dB. */
201 uint32_t gpo; member
245 ((0 - (ctl)->offset) * ((ctl)->size + 1))
248 (((ctl)->step - (ctl)->offset) * ((ctl)->size + 1))
251 ((ctl)->step * ((ctl)->size + 1))
254 (((ctl)->size + 1) * ((int)(val) - (ctl)->offset))
257 imax(imin((((qdb) + (ctl)->size / 2 * ((qdb) > 0 ? 1 : -1)) / \
258 ((ctl)->size + 1) + (ctl)->offset), (ctl)->step), 0)
261 (((uint32_t)hda_get_vendor_id(devinfo->dev) << 16) + \
262 hda_get_device_id(devinfo->dev))
265 (((uint32_t)hda_get_subdevice_id(devinfo->dev) << 16) + \
266 hda_get_subvendor_id(devinfo->dev))
269 uint32_t hdaa_widget_pin_patch(uint32_t config, const char *str);