Try to make audio work

There is no working audio on ICS now. I upload to board tinymixer, tinyplay and tinycap binaries.

root@android:/system/bin # tinymix
Number of controls: 142
ctl type num name value
0 ENUM 1 DL1 Equalizer Flat response
1 ENUM 1 DL2 Left Equalizer Flat response
2 ENUM 1 DL2 Right Equalizer Flat response
3 ENUM 1 Sidetone Equalizer High-pass 0dB
4 ENUM 1 AMIC Equalizer High-pass 0dB
5 ENUM 1 DMIC Equalizer High-pass 0dB
6 INT 1 DL1 Media Playback Volume 118
7 INT 1 DL1 Tones Playback Volume 0
8 INT 1 DL1 Voice Playback Volume 0
9 INT 1 DL1 Capture Playback Volume 10
10 INT 1 DL2 Media Playback Volume 0
11 INT 1 DL2 Tones Playback Volume 0
12 INT 1 DL2 Voice Playback Volume 0
13 INT 1 DL2 Capture Playback Volume 0
14 INT 1 VXREC Media Volume 0
15 INT 1 VXREC Tones Volume 0
16 INT 1 VXREC Voice DL Volume 0
17 INT 1 VXREC Voice UL Volume 0
18 INT 1 AUDUL Media Volume 100
19 INT 1 AUDUL Tones Volume 0
20 INT 1 AUDUL Voice UL Volume 120
21 INT 1 AUDUL Voice DL Volume 120
22 INT 1 SDT UL Volume 100
23 INT 1 SDT DL Volume 120
24 INT 2 DMIC1 UL Volume 120 120
25 INT 2 DMIC2 UL Volume 120 120
26 INT 2 DMIC3 UL Volume 120 120
27 INT 2 AMIC UL Volume 120 120
28 INT 2 BT UL Volume 120 120
29 BOOL 1 DL1 Mono Mixer Off
30 BOOL 1 DL2 Mono Mixer Off
31 BOOL 1 AUDUL Mono Mixer Off
32 BOOL 1 DL1 MM_EXT Switch On
33 BOOL 1 DL1 BT_VX Switch Off
34 BOOL 1 DL1 PDM Switch Off
35 BOOL 1 Sidetone Mixer Capture On
36 BOOL 1 Sidetone Mixer Playback On
37 BOOL 1 Capture Mixer Tones Off
38 BOOL 1 Capture Mixer Voice Playback Off
39 BOOL 1 Capture Mixer Voice Capture Off
40 BOOL 1 Capture Mixer Media Playback Off
41 BOOL 1 Voice Capture Mixer Tones Playback Off
42 BOOL 1 Voice Capture Mixer Media Playback Off
43 BOOL 1 Voice Capture Mixer Capture On
44 BOOL 1 DL2 Mixer Tones Off
45 BOOL 1 DL2 Mixer Voice Off
46 BOOL 1 DL2 Mixer Capture Off
47 BOOL 1 DL2 Mixer Multimedia Off
48 BOOL 1 DL1 Mixer Tones Off
49 BOOL 1 DL1 Mixer Voice Off
50 BOOL 1 DL1 Mixer Capture Off
51 BOOL 1 DL1 Mixer Multimedia On
52 ENUM 1 MUX_VX1 None
53 ENUM 1 MUX_VX0 None
54 ENUM 1 MUX_UL11 MMExt Right
55 ENUM 1 MUX_UL10 MMExt Left
56 ENUM 1 MUX_UL07 None
57 ENUM 1 MUX_UL06 None
58 ENUM 1 MUX_UL05 None
59 ENUM 1 MUX_UL04 None
60 ENUM 1 MUX_UL03 None
61 ENUM 1 MUX_UL02 None
62 ENUM 1 MUX_UL01 None
63 ENUM 1 MUX_UL00 None
64 INT 2 DAC Playback Volume 150 150
65 ENUM 1 Left DAC Mute Mute
66 ENUM 1 Right DAC Mute Mute
67 ENUM 1 DAC volume Extra control L & R Ind Vol
68 ENUM 1 DAC volume Control register/pin control register
69 ENUM 1 DAC Volume soft stepping 1 step / sample
70 INT 2 HP driver mute 1 1
71 INT 2 SP driver mute 0 0
72 INT 1 ADC FINE GAIN 4
73 INT 2 ADC COARSE GAIN 152 152
74 INT 1 ADC MIC_PGA GAIN 50
75 INT 2 HP driver Volume 4 4
76 ENUM 1 Left DAC input selection left data
77 ENUM 1 Right DAC input selection right data
78 ENUM 1 Beep generator Enable / Disable Disabled
79 INT 2 Beep Volume Control(0 = -61 db, 63 = 2 dB) 63 63
80 INT 1 Beep Length MSB 0
81 INT 1 Beep Length MID 0
82 INT 1 Beep Length LSB 238
83 INT 1 Beep Sin(x) MSB 16
84 INT 1 Beep Sin(x) LSB 216
85 INT 1 Beep Cos(x) MSB 126
86 INT 1 Beep Cos(x) LSB 227
87 ENUM 1 Mic Bias Voltage off
88 INT 1 DAC Processing Block Selection(0 <->25) 1
89 INT 1 ADC Processing Block Selection(0 <->25) 4
90 INT 1 Throughput of 7 – bit vol ADC for pin 0
91 BOOL 1 Audio Gain Control(AGC) Off
92 INT 1 AGC Target Level Control 7
93 INT 1 AGC Maximum PGA Control 127
94 INT 1 AGC Attack Time control 0
95 INT 1 AGC_ATC_TIME_MULTIPLIER 0
96 INT 1 AGC Decay Time control 0
97 INT 1 AGC_DECAY_TIME_MULTIPLIER 0
98 INT 1 AGC_HYSTERISIS 0
99 INT 1 AGC_NOISE_THRESHOLD 32
100 INT 1 AGC Noice bounce control 0
101 INT 1 AGC Signal bounce control 0
102 ENUM 1 HP Output common – mode voltage control 5 V
103 ENUM 1 Headset detection Enable / Disable Disabled
104 ENUM 2 DRC Enable / Disable Enabled Enabled
105 INT 1 DRC Threshold value(0 = -3 db, 7 = -24 db) 3
106 INT 1 DRC Hysteresis value(0 = 0 db, 3 = 3 db) 3
107 INT 1 DRC hold time 7
108 INT 1 DRC attack rate 0
109 INT 1 DRC decay rate 0
110 ENUM 1 MIC1LP selection for ADC I/P P – terminal off
111 ENUM 1 MIC1RP selection for ADC I/P P – terminal off
112 ENUM 1 MIC1LM selection for ADC I/P P – terminal 20 k
113 ENUM 1 CM selection for ADC IP M – terminal 20 k
114 ENUM 1 MIC1LM selection for ADC I/P M – terminal off
115 ENUM 1 MIC PGA Setting 0 db Gain
116 ENUM 1 MIC1LP CM Setting floating
117 ENUM 1 MIC1RP CM Setting floating
118 ENUM 1 MIC1LM CM Setting connected to CM internally
119 ENUM 1 ADC Mute Mute
120 ENUM 1 LDAC_PWR_CTL Off
121 ENUM 1 RDAC_PWR_CTL Off
122 ENUM 1 HPL_PWR_CTL Off
123 ENUM 1 HPR_PWR_CTL Off
124 INT 1 MIC_PGA_EN_CTL 1
125 INT 1 HP_DETECT_DEBOUNCE_TIME 1
126 INT 1 HP_BUTTON_DEBOUNCE_TIME 3
127 INT 1 LoopBack_Control 0
128 INT 1 Class – D driver Volume(0 = 6 dB, 4 = 24 dB 0
129 INT 2 HP Analog Gain 100 100
130 INT 1 SP Analog Gain(0 = 0 dB, 127 = -78.3 dB) 100
131 INT 1 Program Registers 0
132 INT 1 M_Input_Mixer CM_PGA_CNTL 2
133 INT 1 M_Input_Mixer MIC1LM_PGA_CNTL 0
134 INT 1 P_Input_Mixer MIC1LP_PGA_CNTL 0
135 INT 1 P_Input_Mixer MIC1RP_PGA_CNTL 0
136 INT 1 P_Input_Mixer MIC1LM_PGA_CNTL 2
137 BOOL 1 Right Output Mixer From DAC_R On
138 BOOL 1 Right Output Mixer From MIC1RP Off
139 BOOL 1 Left Output Mixer From DAC_L On
140 BOOL 1 Left Output Mixer From MIC1LP Off
141 BOOL 1 Left Output Mixer From MIC1RP Off

Try to play sample file:

root@android:/system/bin # tinyplay abba_out.wav
Unable to open PCM device 0 (cannot set hw params: Invalid argument)

Resulting dmesg

###aic31xx_mute Flag 1
##+ new aic31xx_mute_codec 1 (current state is 1, headset_connected=0)
##-aic31xx_mute_codec 1
aic31xx_mute_codec: Exiting
### Page 0 Regs from 0 to 95
reg = 0 val = 0
reg = 1 val = 0
reg = 2 val = 1
reg = 3 val = 66
reg = 4 val = 3
reg = 5 val = 11
reg = 6 val = 4
reg = 7 val = 0
reg = 8 val = 0
reg = 9 val = 0
reg = 10 val = 0
reg = 11 val = 1
reg = 12 val = 1
reg = 13 val = 0
reg = 14 val = 80
reg = 15 val = 80
reg = 16 val = 8
reg = 17 val = 0
reg = 18 val = 1
reg = 19 val = 1
reg = 20 val = 80
reg = 21 val = 80
reg = 22 val = 4
reg = 23 val = 0
reg = 24 val = 0
reg = 25 val = 0
reg = 26 val = 1
reg = 27 val = c
reg = 28 val = 0
reg = 29 val = 1
reg = 30 val = 1
reg = 31 val = 0
reg = 32 val = 0
reg = 33 val = 0
reg = 34 val = 0
reg = 35 val = 0
reg = 36 val = 80
reg = 37 val = 0
reg = 38 val = 0
reg = 39 val = 0
reg = 40 val = 0
reg = 41 val = 0
reg = 42 val = 0
reg = 43 val = 0
reg = 44 val = 0
reg = 45 val = 0
reg = 46 val = 0
reg = 47 val = 0
reg = 48 val = c0
reg = 49 val = 0
reg = 50 val = 0
reg = 51 val = 2
reg = 52 val = 32
reg = 53 val = 12
reg = 54 val = 3
reg = 55 val = 2
reg = 56 val = 2
reg = 57 val = 11
reg = 58 val = 10
reg = 59 val = 0
reg = 60 val = 1
reg = 61 val = 4
reg = 62 val = 0
reg = 63 val = 14
reg = 64 val = c
reg = 65 val = 17
reg = 66 val = 17
reg = 67 val = 7
reg = 68 val = 6f
reg = 69 val = 38
reg = 70 val = 0
reg = 71 val = 0
reg = 72 val = 0
reg = 73 val = 0
reg = 74 val = 0
reg = 75 val = ee
reg = 76 val = 10
reg = 77 val = d8
reg = 78 val = 7e
reg = 79 val = e3
reg = 80 val = 0
reg = 81 val = 0
reg = 82 val = 80
reg = 83 val = 0
reg = 84 val = 0
reg = 85 val = 0
reg = 86 val = 0
reg = 87 val = 0
reg = 88 val = 7f
reg = 89 val = 0
reg = 90 val = 0
reg = 91 val = 0
reg = 92 val = 0
reg = 93 val = 0
reg = 94 val = 0
### Page 1 Regs from 30 to 52
reg = 30 val = 3
reg = 31 val = c
reg = 32 val = 6
reg = 33 val = af
reg = 34 val = 70
reg = 35 val = 44
reg = 36 val = 1b
reg = 37 val = 1b
reg = 38 val = 1b
reg = 39 val = 7f
reg = 40 val = 24
reg = 41 val = 24
reg = 42 val = 0
reg = 43 val = 0
reg = 44 val = 6
reg = 45 val = 86
reg = 46 val = 0
reg = 47 val = b2
reg = 48 val = 8
reg = 49 val = 80
reg = 50 val = 20
reg = 51 val = 0
####SPL_DRIVER_GAIN 0 SPR_DRIVER_GAIN 0

##### L_ANALOG_VOL_2_SPL 27 R_ANLOG_VOL_2_SPR 127

#### LDAC_VOL 23 RDAC_VOL 23

###OVER Temperature STATUS (Page 0 Reg 3) 66

###SHORT CIRCUIT STATUS (Page 0 Reg 44) 0

###INTR_FLAG: SHORT_CKT(Page 0 Reg 46) 0

###Speaker_Driver_Short_Circuit (Page 1 Reg 32)6

@@@ MIC_PGA (P1 R47) = 0xb2

@@@ ADC_FGA (P0 R82) = 0x80

@@@ ADC_CGA (P0 R83) = 0x0

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s