Lines Matching refs:aud_reg

463 	int aud_reg;  in ali_set_spdif_output()  local
470 aud_reg = ali_ac97_get(codec, AC97_EXTENDED_STATUS); in ali_set_spdif_output()
471 ali_ac97_set(codec, AC97_EXTENDED_STATUS, (aud_reg & ~AC97_EA_SPDIF)); in ali_set_spdif_output()
475 aud_reg = ali_ac97_get(codec, AC97_MASTER_VOL_STEREO); in ali_set_spdif_output()
476 ali_ac97_set(codec, AC97_MASTER_VOL_STEREO, (aud_reg & ~VOL_MUTED)); in ali_set_spdif_output()
486 aud_reg = ali_ac97_get(codec, AC97_SPDIF_CONTROL); in ali_set_spdif_output()
489 aud_reg = (aud_reg & AC97_SC_SPSR_MASK) | AC97_SC_SPSR_32K; in ali_set_spdif_output()
492 aud_reg = (aud_reg & AC97_SC_SPSR_MASK) | AC97_SC_SPSR_44K; in ali_set_spdif_output()
495 aud_reg = (aud_reg & AC97_SC_SPSR_MASK) | AC97_SC_SPSR_48K; in ali_set_spdif_output()
499 aud_reg = ali_ac97_get(codec, AC97_EXTENDED_STATUS); in ali_set_spdif_output()
500 ali_ac97_set(codec, AC97_EXTENDED_STATUS, (aud_reg & ~AC97_EA_SPDIF)); in ali_set_spdif_output()
505 ali_ac97_set(codec, AC97_SPDIF_CONTROL, aud_reg); in ali_set_spdif_output()
507 aud_reg = ali_ac97_get(codec, AC97_EXTENDED_STATUS); in ali_set_spdif_output()
508 aud_reg = (aud_reg & AC97_EA_SLOT_MASK) | slots | AC97_EA_SPDIF; /* ALC650 don't support VRA */ in ali_set_spdif_output()
509 ali_ac97_set(codec, AC97_EXTENDED_STATUS, aud_reg); in ali_set_spdif_output()
511 aud_reg = ali_ac97_get(codec, AC97_POWER_CONTROL); in ali_set_spdif_output()
512 aud_reg |= 0x0002; in ali_set_spdif_output()
513 ali_ac97_set(codec, AC97_POWER_CONTROL, aud_reg); in ali_set_spdif_output()
519 aud_reg = ali_ac97_get(codec, AC97_EXTENDED_STATUS); in ali_set_spdif_output()
520 if (!(aud_reg & 0x0400)) { in ali_set_spdif_output()
522 ali_ac97_set(codec, AC97_EXTENDED_STATUS, (aud_reg & ~AC97_EA_SPDIF)); in ali_set_spdif_output()
527 aud_reg = ali_ac97_get(codec, 0x6a); in ali_set_spdif_output()
528 ali_ac97_set(codec, 0x6a, (aud_reg & 0xefff)); in ali_set_spdif_output()
543 int aud_reg; in ali_set_dac_channels() local
546 aud_reg = ali_ac97_get(codec, AC97_EXTENDED_STATUS); in ali_set_dac_channels()
547 aud_reg |= AC97_EA_PRI | AC97_EA_PRJ | AC97_EA_PRK; in ali_set_dac_channels()
554 aud_reg &= ~AC97_EA_PRJ; in ali_set_dac_channels()
558 aud_reg &= ~(AC97_EA_PRJ | AC97_EA_PRI | AC97_EA_PRK); in ali_set_dac_channels()
564 ali_ac97_set(codec, AC97_EXTENDED_STATUS, aud_reg); in ali_set_dac_channels()