diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-11-18 06:07:29 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-11-26 07:42:38 -0500 |
commit | f0639272d6c8e4706ea6d1b0dbc6eb83eaaff412 (patch) | |
tree | 1936f0d332ef3f0f0fc1f596e332ff795d2a7691 /sound/pci/hda/patch_hdmi.c | |
parent | b21bdd0d343c8b2496690283211e27c9af598ed3 (diff) |
ALSA: hda - Bind with HDMI codec parser automatically
If a codec contains only the digital outputs, it's very likely a
HDMI/DP codec, which isn't supported by the generic parser but via
HDMI codec parser code. Detect such a case and bind with the proper
parser object if available.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 08407bed093e..a6081ed34b88 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -3214,6 +3214,15 @@ static int patch_via_hdmi(struct hda_codec *codec) | |||
3214 | } | 3214 | } |
3215 | 3215 | ||
3216 | /* | 3216 | /* |
3217 | * called from hda_codec.c for generic HDMI support | ||
3218 | */ | ||
3219 | int snd_hda_parse_hdmi_codec(struct hda_codec *codec) | ||
3220 | { | ||
3221 | return patch_generic_hdmi(codec); | ||
3222 | } | ||
3223 | EXPORT_SYMBOL_HDA(snd_hda_parse_hdmi_codec); | ||
3224 | |||
3225 | /* | ||
3217 | * patch entries | 3226 | * patch entries |
3218 | */ | 3227 | */ |
3219 | static const struct hda_codec_preset snd_hda_preset_hdmi[] = { | 3228 | static const struct hda_codec_preset snd_hda_preset_hdmi[] = { |