Показать сообщение отдельно
Старый 29.03.2017, 16:14   #16
Ноябрь
Новый Пользователь
 
Регистрация: 05.11.2011
Регион: 40
Сообщений: 1
Ноябрь is on a distinguished road
По умолчанию

Вот такую инициализацию 7419 делаю при включении

void data_init_default(void)
{
// SndAmp
SND_AMP_CONFIG[Main_source_selector].subadress = 0x00; //0b00000000;
SND_AMP_CONFIG[Main_source_selector].data = 0x83; //0b10000110; // Source: QD/SE: SE3 + GAIN 0 dB + AutoZero OFF
SND_AMP_CONFIG[Main_loudness].subadress = 0x01; //0b00000001;
SND_AMP_CONFIG[Main_loudness].data = 0xC0; //0b11000000; // Soft-step = OFF + High boost = OFF + Center frequency = Flat + 0 db
SND_AMP_CONFIG[Soft_mute_clock_generator].subadress = 0x02; //0b00000010;
SND_AMP_CONFIG[Soft_mute_clock_generator].data = 0xFD; //0b11111101; // Soft-mute OFF + Pin and IIC + Clock fast mode = off
SND_AMP_CONFIG[Volume].subadress = 0x03; //0b00000011;
SND_AMP_CONFIG[Volume].data = 0xA2; //0b10100010; // -18 dB + Soft-step = OFF
SND_AMP_CONFIG[Treble].subadress = 0x04; //0b00000100;
SND_AMP_CONFIG[Treble].data = 0x80; //0b10000000; // Internal Vref + 0 db
SND_AMP_CONFIG[Middle].subadress = 0x05; //0b00000101;
SND_AMP_CONFIG[Middle].data = 0x00; //0b00000000; // 0 db
SND_AMP_CONFIG[Bass].subadress = 0x06; //0b00000110;
SND_AMP_CONFIG[Bass].data = 0x00; //0b00000000; // 0 db
SND_AMP_CONFIG[Second_source_selector].subadress = 0x07; //0b00000111;
SND_AMP_CONFIG[Second_source_selector].data = 0x07; //0b00000111; // Rear Speaker Source = main source + 0 db + Source selector = mute
SND_AMP_CONFIG[Subwoofer_middle_bass].subadress = 0x08; //0b00001000;
SND_AMP_CONFIG[Subwoofer_middle_bass].data = 0xFF; //0b11111111; // off
SND_AMP_CONFIG[Mixing_gain_effect].subadress = 0x09; //0b00001001;
SND_AMP_CONFIG[Mixing_gain_effect].data = 0xF7; //0b11110111; // off + Subwoofer = ON
SND_AMP_CONFIG[Speaker_attenuator_left_front].subadress = 0x0A; //0b00001010;
SND_AMP_CONFIG[Speaker_attenuator_left_front].data = 0x80; //0b10000000; // gain 0 dB + Soft-step = OFF
SND_AMP_CONFIG[Speaker_attenuator_right_front].subadress = 0x0B; //0b00001011;
SND_AMP_CONFIG[Speaker_attenuator_right_front].data = 0x80; //0b10000000; // gain 0 dB + Soft-step = OFF
SND_AMP_CONFIG[Speaker_attenuator_left_rear].subadress = 0x0C; //0b00001100;
SND_AMP_CONFIG[Speaker_attenuator_left_rear].data = 0x80; //0b10000000; // gain 0 dB + Soft-step = OFF
SND_AMP_CONFIG[Speaker_attenuator_right_rear].subadress = 0x0D; //0b00001101;
SND_AMP_CONFIG[Speaker_attenuator_right_rear].data = 0x80; //0b10000000; // gain 0 dB + Soft-step = OFF
SND_AMP_CONFIG[Mixing_level_control].subadress = 0x0E; //0b00001110;
SND_AMP_CONFIG[Mixing_level_control].data = 0x80; //0b10000000; // gain 0 dB + Soft-step = OFF
SND_AMP_CONFIG[Subwoofer_attenuator].subadress = 0x0F; //0b00001111;
SND_AMP_CONFIG[Subwoofer_attenuator].data = 0x80; //0b10000000; // gain 0 dB + Soft-step = OFF
SND_AMP_CONFIG[Spectrum_analyzer_clock_source_AC_mode].subadress = 0x10; //0b00010000;
SND_AMP_CONFIG[Spectrum_analyzer_clock_source_AC_mode].data = 0x5F; //0b01011111; // AC coupling after In gain + Clock source = internal
SND_AMP_CONFIG[Testing_audio_processor].subadress = 0x11; //0b00010001;
SND_AMP_CONFIG[Testing_audio_processor].data = 0x00; //0b00000000; // testing mode OFF
Write_config();
}
Ноябрь вне форума   Ответить с цитированием