ALSA: fm801: Gracefully handle failure of tuner auto-detect
commit8e5aefcdfc3eeeb15489f7b39145c69e2a5b2076
authorBen Hutchings <ben@decadent.org.uk>
Thu, 22 Sep 2011 13:39:52 +0000 (22 14:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:41:03 +0000 (3 11:41 -0700)
tree0e15fa2df8fc6aa68b34fb6b23de4b4ef31679d8
parentf9db06c630f31bc26d4946151aa8db5aa4155c96
ALSA: fm801: Gracefully handle failure of tuner auto-detect

commit c37279b92aba2893578f61076cd2eef5c5fa0e99 upstream.

Commit 9676001559fce06e37c7dc230ab275f605556176
("ALSA: fm801: add error handling if auto-detect fails") seems to
break systems that were previously working without a tuner.

As a bonus, this should fix init and cleanup for the case where the
tuner is explicitly disabled.

Reported-and-tested-by: Hor Jiun Shyong <jiunshyong@gmail.com>
References: http://bugs.debian.org/641946
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/fm801.c