@@ -313,9 +313,9 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
313
313
}
314
314
315
315
if (hsmic )
316
- snd_printdd ( "Told to look for a headset mic, but didn't find any.\n" );
316
+ codec_dbg ( codec , "Told to look for a headset mic, but didn't find any.\n" );
317
317
if (hpmic )
318
- snd_printdd ( "Told to look for a headphone mic, but didn't find any.\n" );
318
+ codec_dbg ( codec , "Told to look for a headphone mic, but didn't find any.\n" );
319
319
}
320
320
321
321
/* FIX-UP:
@@ -384,33 +384,33 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
384
384
/*
385
385
* debug prints of the parsed results
386
386
*/
387
- snd_printd ( "autoconfig: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n" ,
387
+ codec_info ( codec , "autoconfig: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n" ,
388
388
cfg -> line_outs , cfg -> line_out_pins [0 ], cfg -> line_out_pins [1 ],
389
389
cfg -> line_out_pins [2 ], cfg -> line_out_pins [3 ],
390
390
cfg -> line_out_pins [4 ],
391
391
cfg -> line_out_type == AUTO_PIN_HP_OUT ? "hp" :
392
392
(cfg -> line_out_type == AUTO_PIN_SPEAKER_OUT ?
393
393
"speaker" : "line" ));
394
- snd_printd ( " speaker_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n" ,
394
+ codec_info ( codec , " speaker_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n" ,
395
395
cfg -> speaker_outs , cfg -> speaker_pins [0 ],
396
396
cfg -> speaker_pins [1 ], cfg -> speaker_pins [2 ],
397
397
cfg -> speaker_pins [3 ], cfg -> speaker_pins [4 ]);
398
- snd_printd ( " hp_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n" ,
398
+ codec_info ( codec , " hp_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n" ,
399
399
cfg -> hp_outs , cfg -> hp_pins [0 ],
400
400
cfg -> hp_pins [1 ], cfg -> hp_pins [2 ],
401
401
cfg -> hp_pins [3 ], cfg -> hp_pins [4 ]);
402
- snd_printd ( " mono: mono_out=0x%x\n" , cfg -> mono_out_pin );
402
+ codec_info ( codec , " mono: mono_out=0x%x\n" , cfg -> mono_out_pin );
403
403
if (cfg -> dig_outs )
404
- snd_printd ( " dig-out=0x%x/0x%x\n" ,
404
+ codec_info ( codec , " dig-out=0x%x/0x%x\n" ,
405
405
cfg -> dig_out_pins [0 ], cfg -> dig_out_pins [1 ]);
406
- snd_printd ( " inputs:\n" );
406
+ codec_info ( codec , " inputs:\n" );
407
407
for (i = 0 ; i < cfg -> num_inputs ; i ++ ) {
408
- snd_printd ( " %s=0x%x\n" ,
408
+ codec_info ( codec , " %s=0x%x\n" ,
409
409
hda_get_autocfg_input_label (codec , cfg , i ),
410
410
cfg -> inputs [i ].pin );
411
411
}
412
412
if (cfg -> dig_in_pin )
413
- snd_printd ( " dig-in=0x%x\n" , cfg -> dig_in_pin );
413
+ codec_info ( codec , " dig-in=0x%x\n" , cfg -> dig_in_pin );
414
414
415
415
return 0 ;
416
416
}
@@ -774,38 +774,33 @@ static void apply_fixup(struct hda_codec *codec, int id, int action, int depth)
774
774
case HDA_FIXUP_PINS :
775
775
if (action != HDA_FIXUP_ACT_PRE_PROBE || !fix -> v .pins )
776
776
break ;
777
- snd_printdd (KERN_INFO SFX
778
- "%s: Apply pincfg for %s\n" ,
777
+ codec_dbg (codec , "%s: Apply pincfg for %s\n" ,
779
778
codec -> chip_name , modelname );
780
779
snd_hda_apply_pincfgs (codec , fix -> v .pins );
781
780
break ;
782
781
case HDA_FIXUP_VERBS :
783
782
if (action != HDA_FIXUP_ACT_PROBE || !fix -> v .verbs )
784
783
break ;
785
- snd_printdd (KERN_INFO SFX
786
- "%s: Apply fix-verbs for %s\n" ,
784
+ codec_dbg (codec , "%s: Apply fix-verbs for %s\n" ,
787
785
codec -> chip_name , modelname );
788
786
snd_hda_add_verbs (codec , fix -> v .verbs );
789
787
break ;
790
788
case HDA_FIXUP_FUNC :
791
789
if (!fix -> v .func )
792
790
break ;
793
- snd_printdd (KERN_INFO SFX
794
- "%s: Apply fix-func for %s\n" ,
791
+ codec_dbg (codec , "%s: Apply fix-func for %s\n" ,
795
792
codec -> chip_name , modelname );
796
793
fix -> v .func (codec , fix , action );
797
794
break ;
798
795
case HDA_FIXUP_PINCTLS :
799
796
if (action != HDA_FIXUP_ACT_PROBE || !fix -> v .pins )
800
797
break ;
801
- snd_printdd (KERN_INFO SFX
802
- "%s: Apply pinctl for %s\n" ,
798
+ codec_dbg (codec , "%s: Apply pinctl for %s\n" ,
803
799
codec -> chip_name , modelname );
804
800
set_pin_targets (codec , fix -> v .pins );
805
801
break ;
806
802
default :
807
- snd_printk (KERN_ERR SFX
808
- "%s: Invalid fixup type %d\n" ,
803
+ codec_err (codec , "%s: Invalid fixup type %d\n" ,
809
804
codec -> chip_name , fix -> type );
810
805
break ;
811
806
}
0 commit comments