File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ static bool static_hdmi_pcm;
38
38
module_param (static_hdmi_pcm , bool , 0644 );
39
39
MODULE_PARM_DESC (static_hdmi_pcm , "Don't restrict PCM parameters per ELD info" );
40
40
41
+ static bool enable_acomp = true;
42
+ module_param (enable_acomp , bool , 0444 );
43
+ MODULE_PARM_DESC (enable_acomp , "Enable audio component binding (default=yes)" );
44
+
41
45
struct hdmi_spec_per_cvt {
42
46
hda_nid_t cvt_nid ;
43
47
int assigned ;
@@ -2505,6 +2509,11 @@ static void generic_acomp_init(struct hda_codec *codec,
2505
2509
{
2506
2510
struct hdmi_spec * spec = codec -> spec ;
2507
2511
2512
+ if (!enable_acomp ) {
2513
+ codec_info (codec , "audio component disabled by module option\n" );
2514
+ return ;
2515
+ }
2516
+
2508
2517
spec -> port2pin = port2pin ;
2509
2518
setup_drm_audio_ops (codec , ops );
2510
2519
if (!snd_hdac_acomp_init (& codec -> bus -> core , & spec -> drm_audio_ops ,
You can’t perform that action at this time.
0 commit comments