dac
int i, j, dac, err;
dac = azalia_codec_find_defdac(this, w->nid, j);
if (dac == -1)
if (dac != this->dacs.groups[this->dacs.cur].conv[0] &&
dac != this->spkr_dac && dac != this->fhp_dac)
dac = azalia_codec_find_defdac(this, w->nid, j);
if (dac == -1)
if (dac != this->dacs.groups[this->dacs.cur].conv[0] &&
dac != this->spkr_dac && dac != this->fhp_dac)
u32 dac;
u32 dac;
dac = interpolate(val, MIN_BRIGHTNESS_PART1, MAX_BRIGHTNESS_PART1,
dac = interpolate(val, MIN_BRIGHTNESS_PART2, MAX_BRIGHTNESS_PART2,
dac = interpolate(val, MAX_BRIGHTNESS_PART1, MIN_BRIGHTNESS_PART2,
return 16 * dac;
dcp->brightness.dac = calculate_dac(dcp, brightness);
dcp->brightness.dac = calculate_dac(dcp, dcp->brightness.nits);
req->swap.bl_value = dcp->brightness.dac;
struct radeon_encoder_atom_dac *dac = kzalloc(sizeof(struct radeon_encoder_atom_dac), GFP_KERNEL);
if (!dac)
dac->tv_std = radeon_atombios_get_tv_info(rdev);
return dac;
dac),
dac),
uint8_t bg, dac;
dac = dac_info->ucDAC1_DAC_Adjustment;
p_dac->ps2_pdac_adj = (bg << 8) | (dac);
uint8_t bg, dac;
dac = dac_info->ucDAC2_CRT2_DAC_Adjustment;
tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20);
dac = dac_info->ucDAC2_PAL_DAC_Adjustment;
tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20);
dac = dac_info->ucDAC2_NTSC_DAC_Adjustment;
tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20);
uint8_t dac;
dac = ci.sucConnectorInfo.sbfAccess.bfAssociatedDAC;
uint8_t rev, bg, dac;
dac = RBIOS8(dac_info + 0xd) & 0xf;
tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20);
dac = RBIOS8(dac_info + 0xf) & 0xf;
tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20);
dac = RBIOS8(dac_info + 0x11) & 0xf;
tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20);
dac = (RBIOS8(dac_info + 0xc) >> 4) & 0xf;
tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20);
dac = (RBIOS8(dac_info + 0xd) >> 4) & 0xf;
tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20);
dac = (RBIOS8(dac_info + 0xe) >> 4) & 0xf;
tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20);
dac = (RBIOS8(dac_info + 0x3) >> 4) & 0xf;
(bg << 16) | (dac << 20);
dac = RBIOS8(dac_info + 0x5) & 0xf;
(bg << 16) | (dac << 20);
uint8_t rev, bg, dac;
dac = (RBIOS8(dac_info + 0x2) >> 4) & 0xf;
p_dac->ps2_pdac_adj = (bg << 8) | (dac);
dac = RBIOS8(dac_info + 0x3) & 0xf;
p_dac->ps2_pdac_adj = (bg << 8) | (dac);
if ((dac == 0) || (bg == 0))
radeon_get_encoder_enum(struct drm_device *dev, uint32_t supported_device, uint8_t dac)
switch (dac) {
uint8_t dac);
ndev = sc->card->dac->ndev(sc);
sc->card->dac->devinfo(sc, dev, idx);
ndev = sc->card->dac->ndev(sc);
sc->card->dac->get(sc, ctl, idx);
ndev = sc->card->dac->ndev(sc);
return sc->card->dac->set(sc, ctl, idx);
struct envy_codec *dac;
volatile u_int32_t *dac = (u_int32_t *)(sc->sc_regs + PX_REG_BT463_RED);
dac[0] = (addr & 0xff); /* lo addr */
dac[1] = ((addr >> 8) & 0xff); /* hi addr */
volatile u_int32_t *dac = (u_int32_t *)(sc->sc_regs + PX_REG_BT463_RED);
dac[3] = c; /* R */
dac[3] = c; /* G */
dac[3] = c; /* B */
volatile u_int32_t *dac = (u_int32_t *)(sc->sc_regs + PX_REG_BT463_RED);
dac[3] = r;
dac[3] = g;
dac[3] = b;
volatile union dac *sc_ramdac; /* ramdac registers */