From cc8bedac3533b901e6587ac770e182f2c3e93c3f Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 2 Mar 2009 10:35:29 +0100 Subject: [PATCH] --- yaml --- r: 133087 b: refs/heads/master c: d1f1af2dbf8207db590853a59bec465c4f68cfdc h: refs/heads/master i: 133085: 4dfd5f0d9f2d3439fb8d0aed5e8d83a0e68b9d81 133083: aa1e1e809c808af38e5681497a163df002aa6737 133079: b3d426dab1a0b7acd6e00c3c9316cf9e1ecf319b 133071: f799fdc3384624cfe0d170ed7359578caf9798c1 133055: 46c542a8f4ccc2620502257704d4722a9b23a72e v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/hda_codec.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 8e4bcbddcdd3..68bae333bd00 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4c4531d64dd0442813c7307b860bf40a2aec51bc +refs/heads/master: d1f1af2dbf8207db590853a59bec465c4f68cfdc diff --git a/trunk/sound/pci/hda/hda_codec.c b/trunk/sound/pci/hda/hda_codec.c index 5dceee8a113b..3b44c789f23b 100644 --- a/trunk/sound/pci/hda/hda_codec.c +++ b/trunk/sound/pci/hda/hda_codec.c @@ -1519,6 +1519,9 @@ int snd_hda_codec_reset(struct hda_codec *codec) codec->num_pcms = 0; codec->pcm_info = NULL; codec->preset = NULL; + memset(&codec->patch_ops, 0, sizeof(codec->patch_ops)); + codec->slave_dig_outs = NULL; + codec->spdif_status_reset = 0; module_put(codec->owner); codec->owner = NULL;