From 080998cb85c3de046b3134845c923f8a9b1d1041 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 10 Oct 2012 08:41:42 +0200 Subject: [PATCH] --- yaml --- r: 333715 b: refs/heads/master c: 7819d1c70eb6a57e43554d86e10b39d1e106ed65 h: refs/heads/master i: 333713: 7c2cb709266d7ca2335a63cc902b909ea6bcddbf 333711: 1a4301943e89d88fa808f8d2207b7eff2649755c v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_via.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 60254b2ffb5f..b9b3609557e8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8d032a8f653a71e309fc4be28f526a0d2a5bf8f4 +refs/heads/master: 7819d1c70eb6a57e43554d86e10b39d1e106ed65 diff --git a/trunk/sound/pci/hda/patch_via.c b/trunk/sound/pci/hda/patch_via.c index eae466a6a987..72a2f60b087c 100644 --- a/trunk/sound/pci/hda/patch_via.c +++ b/trunk/sound/pci/hda/patch_via.c @@ -118,6 +118,8 @@ enum { }; struct via_spec { + struct hda_gen_spec gen; + /* codec parameterization */ const struct snd_kcontrol_new *mixers[6]; unsigned int num_mixers; @@ -246,6 +248,7 @@ static struct via_spec * via_new_spec(struct hda_codec *codec) /* VT1708BCE & VT1708S are almost same */ if (spec->codec_type == VT1708BCE) spec->codec_type = VT1708S; + snd_hda_gen_init(&spec->gen); return spec; } @@ -1627,6 +1630,7 @@ static void via_free(struct hda_codec *codec) vt1708_stop_hp_work(spec); kfree(spec->bind_cap_vol); kfree(spec->bind_cap_sw); + snd_hda_gen_free(&spec->gen); kfree(spec); }