aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_generic.c
diff options
context:
space:
mode:
authorSasha Khapyorsky <sashak@smlink.com>2005-08-11 11:00:16 +0200
committerJaroslav Kysela <perex@suse.cz>2005-08-30 08:44:53 +0200
commit673b683a07272bdc1f757aa32784b9fcc4b3a014 (patch)
treed2eafb452ad96aa349a62f6350bca1480f69bbed /sound/pci/hda/hda_generic.c
parent443feb882679e21ba5d1e0ff9eff067ac26d9461 (diff)
downloadkernel_samsung_smdk4412-673b683a07272bdc1f757aa32784b9fcc4b3a014.zip
kernel_samsung_smdk4412-673b683a07272bdc1f757aa32784b9fcc4b3a014.tar.gz
kernel_samsung_smdk4412-673b683a07272bdc1f757aa32784b9fcc4b3a014.tar.bz2
ALSA CVS update
HDA Codec driver,HDA generic driver Summar: hda-codec - MFG support This adds Modem Functional Group (MFG) support and option for 9600 sample rate. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
-rw-r--r--sound/pci/hda/hda_generic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index 2d046ab..1229227 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -881,6 +881,11 @@ int snd_hda_parse_generic_codec(struct hda_codec *codec)
struct hda_gspec *spec;
int err;
+ if(!codec->afg) {
+ snd_printdd("hda_generic: no generic modem yet\n");
+ return -ENODEV;
+ }
+
spec = kcalloc(1, sizeof(*spec), GFP_KERNEL);
if (spec == NULL) {
printk(KERN_ERR "hda_generic: can't allocate spec\n");