aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-07-27 12:58:06 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:58:10 -0400
commit2807314d467e7dd929c42050031aabbd28e78f0b (patch)
treed4d05f61ef8cc1115ae73af900b8012392321caa /sound/pci/hda/hda_codec.c
parentef5fa1a49fc3b5fe8e734f25fa61bc73ccba344e (diff)
[ALSA] hda-intel - Add hwdep interface
Added a hwdep interface for each codec (enabled per kconfig). This interface can be used for reading/writing HD-audio verbs and other purposes as future extensions. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index a05db2f214bd..e7843ffeeb2f 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -31,6 +31,7 @@
31#include <sound/tlv.h> 31#include <sound/tlv.h>
32#include <sound/initval.h> 32#include <sound/initval.h>
33#include "hda_local.h" 33#include "hda_local.h"
34#include <sound/hda_hwdep.h>
34 35
35 36
36/* 37/*
@@ -594,6 +595,9 @@ int __devinit snd_hda_codec_new(struct hda_bus *bus, unsigned int codec_addr,
594 init_unsol_queue(bus); 595 init_unsol_queue(bus);
595 596
596 snd_hda_codec_proc_new(codec); 597 snd_hda_codec_proc_new(codec);
598#ifdef CONFIG_SND_HDA_HWDEP
599 snd_hda_create_hwdep(codec);
600#endif
597 601
598 sprintf(component, "HDA:%08x", codec->vendor_id); 602 sprintf(component, "HDA:%08x", codec->vendor_id);
599 snd_component_add(codec->bus->card, component); 603 snd_component_add(codec->bus->card, component);