Alc5632 regs dump

Материал из Toshiba AC100 wiki
Перейти к навигации Перейти к поиску

There is an issue with headphones in 1001 kernel. The best solution is to update kernel (http://dev.i-random.ru/ac100/kernel/ or http://dl.dropbox.com/u/36754970/ac100/Kernel-11.19/index.xhtml)

In other case check this:

Download tool https://dl.dropboxusercontent.com/u/40761340/www/ac100/tools/alc-ctl Download script https://dl.dropboxusercontent.com/u/40761340/www/ac100/scripts/dump_alc_regs.sh Start playback Change permissions and run script:

chmod a+x ./dump_alc_regs.sh
sudo ./dump_alc_regs.sh > regs.txt

You could check hp state yourself:

wget https://dl.dropboxusercontent.com/u/40761340/www/ac100/scripts/sound_state_scripts-2011-11-17.tar.bz2
tar jxf sound_state_scripts-2011-11-17.tar.bz2
cp regs.txt sound_state_script
cd sound_state_script
./state.sh hp

You will get something like this:

HP state:

Reg 3e (000a - 1010)
11  0: Power On HP Out Left Volume. 0-Down, 1-On
10  0: Power On HP Outt Right Volume. 0-Down, 1-On

Reg 04 (0505 - 10100000101)
15  0: Mute HP Left Control. 0-On, 1-Mute
7   0: Mute HP Right Control. 0-On, 1-Mute
[12 8] 00101 (5): HP Output Left Volume (HPLV) in 1.5dB Steps
[4 0] 00101 (5): HP Output Right Volume (HPRV) in 1.5dB Steps

Reg 10 (0000 - 0)
3   0: Mute DAC Left Volume Output to HP L Mixer. 0-On, 1-Mute
2   0: Mute DAC Right Volume Output to HP R Mixer. 0-On, 1-Mute

Reg 1c (0748 - 11101001000)
1   0: DAC Left Volume Output to HP Left Amplifier. 0-Mute, 1-On
0   0: DAC Right Volume Output to HP Right Amplifier. 0-Mute, 1-On
9   1: HP Left Volume Input Select. 0-VMID, 1-HP Left Mixer
8   1: HP Right Volume Input Select. 0-VMID, 1-HP Right Mixer

Reg 0c (1010 - 1000000010000)
15  0: Mute DAC Left Input. 0-On, 1-Mute
7   0: Mute DAC Right Input. 0-On, 1-Mute
[13 8] 010000 (16): DAC Right Volume (0.75 db step)
[5 0] 010000 (16): DAC Left Volume (0.75 db step)

Pay attantion to reg 3e

Reg 3e (000a - 1010)
11  0: Power On HP Out Left Volume. 0-Down, 1-On
10  0: Power On HP Outt Right Volume. 0-Down, 1-On

Looks like hp power is off (usually reported from 1001 kernel).

Checked workaround is to enable it:

sudo ./alc-ctl /dev/i2c-0 w 3e 0c0a

I made a script to tune alsamixer, but looks like is doesn't work. https://dl.dropboxusercontent.com/u/40761340/www/ac100/scripts/alc5632_1001.sh