复制代码- # insmod ./snd-soc-mini210-wm8960.ko
- [ 39.536162] soc-audio soc-audio: binding <乱码> at idx 0
- [ 39.536220] wm8960-codec 0-001a: Initializing flat cache for wm8960-codec.0-001a codec
- [ 39.536334] soc-audio soc-audio: probe mini210 dai link 0
- [ 39.536415] write f = 0
- [ 39.536581] write 1c = 9c
- [ 39.545002] read 19 => 0
- [ 39.545103] write 19 = 80
- [ 39.654707] write 19 = c0
- [ 39.654867] write 1c = 8
- [ 39.655020] read 19 => c0
- [ 39.655060] write 19 = 140
- [ 39.655213] read 0 => 97
- [ 39.655253] write 0 = 197
- [ 39.659007] read 1 => 97
- [ 39.663223] write 1 = 197
- [ 39.667754] read 15 => c3
- [ 39.672061] write 15 = 1c3
- [ 39.676755] read 16 => c3
- [ 39.680988] write 16 = 1c3
- [ 39.685606] read a => ff
- [ 39.689827] write a = 1ff
- [ 39.694361] read b => ff
- [ 39.698578] write b = 1ff
- [ 39.703111] read 2 => 0
- [ 39.707244] write 2 = 100
- [ 39.711779] read 3 => 0
- [ 39.715910] write 3 = 100
- [ 39.720440] read 28 => 0
- [ 39.724664] write 28 = 100
- [ 39.729283] read 29 => 0
- [ 39.733606] write 29 = 100
- [ 39.738119] write 9 = 40
-
- wm8960_probe->snd_soc_add_controls(codec, wm8960_snd_controls, ARRAY_SIZE(wm8960_snd_controls));
- ==================================================
- [ 39.742456] ALSA: snd_soc_add_controls( codec dbf53600, controls bf000f88, num_controls 36 )
- [ 39.752571] ALSA: snd_ctl_add( Input Volume )
- [ 39.759939] ALSA: snd_ctl_add( Input Volume ZC Switch )
- [ 39.768171] ALSA: snd_ctl_add( Input Switch )
- [ 39.775532] ALSA: snd_ctl_add( Playback Volume )
- [ 39.783161] ALSA: snd_ctl_add( Headphone Playback Volume )
- [ 39.791651] ALSA: snd_ctl_add( Headphone Playback ZC Switch )
- [ 39.800406] ALSA: snd_ctl_add( Speaker Playback Volume )
- [ 39.808722] ALSA: snd_ctl_add( Speaker Playback ZC Switch )
- [ 39.817305] ALSA: snd_ctl_add( Speaker DC Volume )
- [ 39.825101] ALSA: snd_ctl_add( Speaker AC Volume )
- [ 39.833002] ALSA: snd_ctl_add( PCM Playback -6dB Switch )
- [ 39.841309] ALSA: snd_ctl_add( ADC Polarity )
- [ 39.848671] ALSA: snd_ctl_add( Playback De-emphasis )
- [ 39.856734] ALSA: snd_ctl_add( DAC Deemphasis Switch )
- [ 39.864877] ALSA: snd_ctl_add( ADC High Pass Filter Switch )
- [ 39.873547] ALSA: snd_ctl_add( DAC Polarity )
- [ 39.880908] ALSA: snd_ctl_add( 3D Filter Upper Cut-Off )
- [ 39.889230] ALSA: snd_ctl_add( 3D Filter Lower Cut-Off )
- [ 39.897546] ALSA: snd_ctl_add( 3D Volume )
- [ 39.904656] ALSA: snd_ctl_add( 3D Switch )
- [ 39.911759] ALSA: snd_ctl_add( ALC Function )
- [ 39.919125] ALSA: snd_ctl_add( ALC Max Gain )
- [ 39.926494] ALSA: snd_ctl_add( ALC Target )
- [ 39.933788] ALSA: snd_ctl_add( ALC Min Gain )
- [ 39.941052] ALSA: snd_ctl_add( ALC Hold Time )
- [ 39.948502] ALSA: snd_ctl_add( ALC Mode )
- [ 39.955522] ALSA: snd_ctl_add( ALC Decay )
- [ 39.962629] ALSA: snd_ctl_add( ALC Attack )
- [ 39.969820] ALSA: snd_ctl_add( Noise Gate Threshold )
- [ 39.977882] ALSA: snd_ctl_add( Noise Gate Switch )
- [ 39.985678] ALSA: snd_ctl_add( Capture Volume )
- [ 39.993220] ALSA: snd_ctl_add( MIC Boost Gain )
- [ 40.000757] ALSA: snd_ctl_add( Left Output Mixer Boost Bypass Volume )
- [ 40.010293] ALSA: snd_ctl_add( Left Output Mixer LINPUT3 Volume )
- [ 40.019389] ALSA: snd_ctl_add( Right Output Mixer Boost Bypass Volume )
- [ 40.029010] ALSA: snd_ctl_add( Right Output Mixer RINPUT3 Volume )
-
- wm8960_add_widgets->snd_soc_dapm_new_controls(dapm, wm8960_dapm_widgets, ARRAY_SIZE(wm8960_dapm_widgets));
- ==================================================
- [ 40.038304] ALSA: snd_soc_dapm_new_controls( dapm dbf536cc, widget bf001648, num 30 )
- [ 40.047812] ALSA: snd_soc_dapm_new_control( LINPUT1 )
- [ 40.057085] ALSA: snd_soc_dapm_new_control( RINPUT1 )
- [ 40.066358] ALSA: snd_soc_dapm_new_control( LINPUT2 )
- [ 40.075629] ALSA: snd_soc_dapm_new_control( RINPUT2 )
- [ 40.084902] ALSA: snd_soc_dapm_new_control( LINPUT3 )
- [ 40.094172] ALSA: snd_soc_dapm_new_control( RINPUT3 )
- [ 40.103448] ALSA: snd_soc_dapm_new_control( MICB )
- [ 40.112459] ALSA: snd_soc_dapm_new_control( Left Input Mixer )
- [ 40.122512] ALSA: snd_soc_dapm_new_control( Right Input Mixer )
- [ 40.132651] ALSA: snd_soc_dapm_new_control( Left Boost Mixer )
- [ 40.142812] ALSA: snd_soc_dapm_new_control( Right Boost Mixer )
- [ 40.152843] ALSA: snd_soc_dapm_new_control( Left ADC )
- [ 40.162200] ALSA: snd_soc_dapm_new_control( Right ADC )
- [ 40.171647] ALSA: snd_soc_dapm_new_control( Left DAC )
- [ 40.181003] ALSA: snd_soc_dapm_new_control( Right DAC )
- [ 40.190451] ALSA: snd_soc_dapm_new_control( Left Output Mixer )
- [ 40.200588] ALSA: snd_soc_dapm_new_control( Right Output Mixer )
- [ 40.210818] ALSA: snd_soc_dapm_new_control( LOUT1 PGA )
- [ 40.220262] ALSA: snd_soc_dapm_new_control( ROUT1 PGA )
- [ 40.229705] ALSA: snd_soc_dapm_new_control( Left Speaker PGA )
- [ 40.239862] ALSA: snd_soc_dapm_new_control( Right Speaker PGA )
- [ 40.249896] ALSA: snd_soc_dapm_new_control( Right Speaker Output )
- [ 40.260299] ALSA: snd_soc_dapm_new_control( Left Speaker Output )
- [ 40.270608] ALSA: snd_soc_dapm_new_control( SPK_LP )
- [ 40.279796] ALSA: snd_soc_dapm_new_control( SPK_LN )
- [ 40.288981] ALSA: snd_soc_dapm_new_control( HP_L )
- [ 40.297991] ALSA: snd_soc_dapm_new_control( HP_R )
- [ 40.307007] ALSA: snd_soc_dapm_new_control( SPK_RP )
- [ 40.316189] ALSA: snd_soc_dapm_new_control( SPK_RN )
- [ 40.325378] ALSA: snd_soc_dapm_new_control( OUT3 )
-
- wm8960_add_widgets->snd_soc_dapm_add_routes(dapm, audio_paths, ARRAY_SIZE(audio_paths));
- ==================================================
- [ 40.334490] ALSA: snd_soc_dapm_add_routes( dapm dbf536cc, route bf0022f0, num 34 )
- [ 40.343752] ALSA: snd_soc_dapm_add_route: { "Left Input Mixer", "LINPUT1 Switch", "LINPUT1" },
- [ 40.354153] read 20 => 100
- [ 40.358655] ALSA: snd_soc_dapm_add_route: { "Left Input Mixer", "LINPUT2 Switch", "LINPUT2" },
- [ 40.369054] read 20 => 100
- [ 40.373557] ALSA: snd_soc_dapm_add_route: { "Left Input Mixer", "LINPUT3 Switch", "LINPUT3" },
- [ 40.383961] read 20 => 100
- [ 40.388462] ALSA: snd_soc_dapm_add_route: { "Left Boost Mixer", "Boost Switch", "Left Input Mixer" },
- [ 40.399473] read 20 => 100
- [ 40.403974] ALSA: snd_soc_dapm_add_route: { "Left Boost Mixer", NULL,"LINPUT1" },
- [ 40.413252] ALSA: snd_soc_dapm_add_route: { "Left Boost Mixer", NULL,"LINPUT2" },
- [ 40.422520] ALSA: snd_soc_dapm_add_route: { "Left Boost Mixer", NULL,"LINPUT3" },
- [ 40.431796] ALSA: snd_soc_dapm_add_route: { "Right Input Mixer", "RINPUT1 Switch", "RINPUT1" },
- [ 40.442392] read 21 => 100
- [ 40.446785] ALSA: snd_soc_dapm_add_route: { "Right Input Mixer", "RINPUT2 Switch", "RINPUT2" },
- [ 40.457271] read 21 => 100
- [ 40.461775] ALSA: snd_soc_dapm_add_route: { "Right Input Mixer", "RINPUT3 Switch", "RINPUT3" },
- [ 40.472265] read 21 => 100
- [ 40.476766] ALSA: snd_soc_dapm_add_route: { "Right Boost Mixer", "Boost Switch", "Right Input Mixer" },
- [ 40.487950] read 21 => 100
- [ 40.492450] ALSA: snd_soc_dapm_add_route: { "Right Boost Mixer", NULL,"RINPUT1" },
- [ 40.501815] ALSA: snd_soc_dapm_add_route: { "Right Boost Mixer", NULL,"RINPUT2" },
- [ 40.511172] ALSA: snd_soc_dapm_add_route: { "Right Boost Mixer", NULL,"LINPUT3" },
- [ 40.525827] ALSA: snd_soc_dapm_add_route: { "Left ADC", NULL,"Left Boost Mixer" },
- [ 40.533606] ALSA: snd_soc_dapm_add_route: { "Right ADC", NULL,"Right Boost Mixer" },
- [ 40.545265] ALSA: snd_soc_dapm_add_route: { "Left Output Mixer", "LINPUT3 Switch", "LINPUT3" },
- [ 40.553145] read 22 => 50
- [ 40.554317] ALSA: snd_soc_dapm_add_route: { "Left Output Mixer", "Boost Bypass Switch", "Left Boost Mixer" },
- [ 40.572071] read 2d => 50
- [ 40.572115] ALSA: snd_soc_dapm_add_route: { "Left Output Mixer", "PCM Playback Switch", "Left DAC" },
- [ 40.581453] read 22 => 50
- [ 40.585872] ALSA: snd_soc_dapm_add_route: { "Right Output Mixer", "RINPUT3 Switch", "RINPUT3" },
- [ 40.596444] read 25 => 50
- [ 40.600860] ALSA: snd_soc_dapm_add_route: { "Right Output Mixer", "Boost Bypass Switch", "Right Boost Mixer" },
- [ 40.612738] read 2e => 50
- [ 40.617152] ALSA: snd_soc_dapm_add_route: { "Right Output Mixer", "PCM Playback Switch", "Right DAC" },
- [ 40.628335] read 25 => 50
- [ 40.632749] ALSA: snd_soc_dapm_add_route: { "LOUT1 PGA", NULL,"Left Output Mixer" },
- [ 40.642395] ALSA: snd_soc_dapm_add_route: { "ROUT1 PGA", NULL,"Right Output Mixer" },
- [ 40.651904] ALSA: snd_soc_dapm_add_route: { "HP_L", NULL,"LOUT1 PGA" },
- [ 40.660312] ALSA: snd_soc_dapm_add_route: { "HP_R", NULL,"ROUT1 PGA" },
- [ 40.668715] ALSA: snd_soc_dapm_add_route: { "Left Speaker PGA", NULL,"Left Output Mixer" },
- [ 40.678900] ALSA: snd_soc_dapm_add_route: { "Right Speaker PGA", NULL,"Right Output Mixer" },
- [ 40.689168] ALSA: snd_soc_dapm_add_route: { "Left Speaker Output", NULL,"Left Speaker PGA" },
- [ 40.699481] ALSA: snd_soc_dapm_add_route: { "Right Speaker Output", NULL,"Right Speaker PGA" },
- [ 40.709967] ALSA: snd_soc_dapm_add_route: { "SPK_LN", NULL,"Left Speaker Output" },
- [ 40.719410] ALSA: snd_soc_dapm_add_route: { "SPK_LP", NULL,"Left Speaker Output" },
- [ 40.728858] ALSA: snd_soc_dapm_add_route: { "SPK_RN", NULL,"Right Speaker Output" },
- [ 40.738486] ALSA: snd_soc_dapm_add_route: { "SPK_RP", NULL,"Right Speaker Output" },
-
- wm8960_add_widgets->snd_soc_dapm_new_controls(dapm, wm8960_dapm_widgets_out3, ARRAY_SIZE(wm8960_dapm_widgets_out3));
- ==================================================
- [ 40.747923] ALSA: snd_soc_dapm_new_controls( dapm dbf536cc, widget bf0025bc, num 1 )
- [ 40.757450] ALSA: snd_soc_dapm_new_control( Mono Output Mixer )
-
- wm8960_add_widgets->snd_soc_dapm_add_routes(dapm, audio_paths_out3,ARRAY_SIZE(audio_paths_out3));
- ==================================================
- [ 40.767594] ALSA: snd_soc_dapm_add_routes( dapm dbf536cc, route bf002628, num 3 )
- [ 40.776862] ALSA: snd_soc_dapm_add_route: { "Mono Output Mixer", "Left Switch", "Left Output Mixer" },
- [ 40.787959] read 26 => 0
- [ 40.792287] ALSA: snd_soc_dapm_add_route: { "Mono Output Mixer", "Right Switch", "Right Output Mixer" },
- [ 40.803558] read 27 => 0
- [ 40.807884] ALSA: snd_soc_dapm_add_route: { "OUT3", NULL,"Mono Output Mixer" },
-
- mini210_wm8960_init
- ==================================================
- [ 40.816996] ALSA: snd_soc_dapm_nc_pin( dapm dbf536cc, pin RINPUT1 )
- [ 40.825045] ALSA: snd_soc_dapm_nc_pin( dapm dbf536cc, pin LINPUT2 )
- [ 40.833105] ALSA: snd_soc_dapm_nc_pin( dapm dbf536cc, pin RINPUT2 )
- [ 40.841269] ALSA: snd_soc_dapm_nc_pin( dapm dbf536cc, pin OUT3 )
-
- mini210_wm8960_init->snd_soc_dapm_new_controls( dapm, mini210_dapm_capture_widgets, ARRAY_SIZE( mini210_dapm_capture_widgets ) );
- ==================================================
- [ 40.848963] ALSA: snd_soc_dapm_new_controls( dapm dbf536cc, widget bf007438, num 2 )
- [ 40.858493] ALSA: snd_soc_dapm_new_control( dapm dbf536cc, widget->name Mic Jack )
- [ 40.867855] ALSA: snd_soc_dapm_new_control( dapm dbf536cc, widget->name Line Input 3 (FM) )
-
- mini210_wm8960_init->snd_soc_dapm_new_controls( dapm, mini210_dapm_playback_widgets, ARRAY_SIZE( mini210_dapm_playback_widgets ) );
- ==================================================
- [ 40.877992] ALSA: snd_soc_dapm_new_controls( dapm dbf536cc, widget bf007510, num 3 )
- [ 40.887525] ALSA: snd_soc_dapm_new_control( dapm dbf536cc, widget->name Headphone Jack )
- [ 40.897409] ALSA: snd_soc_dapm_new_control( dapm dbf536cc, widget->name Speaker_L )
- [ 40.906853] ALSA: snd_soc_dapm_new_control( dapm dbf536cc, widget->name Speaker_R )
-
- mini210_wm8960_init->snd_soc_dapm_add_routes( dapm, mini210_audio_map, ARRAY_SIZE( mini210_audio_map ) );
- ==================================================
- [ 40.916295] ALSA: snd_soc_dapm_add_routes( dapm dbf536cc, route bf007654, num 8 )
- [ 40.925568] ALSA: snd_soc_dapm_add_route: { "Headphone Jack", NULL,"HP_L" },
- [ 40.934406] ALSA: snd_soc_dapm_add_route: { "Headphone Jack", NULL,"HP_R" },
- [ 40.943355] ALSA: snd_soc_dapm_add_route: { "Speaker_L", NULL,"SPK_LP" },
- [ 40.951826] ALSA: snd_soc_dapm_add_route: { "Speaker_L", NULL,"SPK_LN" },
- [ 40.960406] ALSA: snd_soc_dapm_add_route: { "Speaker_R", NULL,"SPK_RP" },
- [ 40.968982] ALSA: snd_soc_dapm_add_route: { "Speaker_R", NULL,"SPK_RN" },
- [ 40.977564] ALSA: snd_soc_dapm_add_route: { "LINPUT1", NULL,"MICB" },
- [ 40.985796] ALSA: snd_soc_dapm_add_route: { "MICB", NULL,"Mic Jack" },
-
- mini210_wm8960_init
- ==================================================
- [ 40.994117] ALSA: snd_soc_dapm_enable_pin( dapm dbf536cc, pin Headphone Jack )
- [ 41.003125] ALSA: snd_soc_dapm_enable_pin( dapm dbf536cc, pin Mic Jack )
- [ 41.011619] ALSA: snd_soc_dapm_enable_pin( dapm dbf536cc, pin Speaker_L )
- [ 41.020195] ALSA: snd_soc_dapm_enable_pin( dapm dbf536cc, pin Speaker_R )
- [ 41.028777] ALSA: snd_soc_dapm_disable_pin( dapm dbf536cc, pin Line Input 3 (FM) )
-
- [ 41.038284] DAPM sequencing finished, waiting 500ms
- [ 41.541507] read 1a => 0
- [ 41.541591] read 31 => 37
- [ 41.541637] read 31 => 37
- [ 41.541682] read 1a => 0
- [ 41.541726] read 1a => 0
- [ 41.541770] read 1a => 0
- [ 41.545437] read 1a => 0
- [ 41.549799] read 2f => 0
- [ 41.554120] read 2f => 0
- [ 41.558434] read 1a => 0
- [ 41.562766] read 1a => 0
- [ 41.567103] read 19 => 140
- [ 41.571604] read 19 => 140
- [ 41.576118] read 19 => 140
- [ 41.580625] read 19 => 140
- [ 41.585145] read 2f => 0
- [ 41.589485] read 2f => 0
- [ 41.593791] read 19 => 140
- [ 41.598406] DAPM sequencing finished, waiting 500ms
- [ 42.103982] soc-audio soc-audio: registered pcm #0 (null) wm8960-hifi-0
- [ 42.104602] asoc: wm8960-hifi <-> samsung-i2s.0 mapping ok
- [ 42.118110] soc-audio soc-audio: Registered card 'mini210'
|