From: Ondrej Zary Date: Fri, 27 Nov 2009 17:18:33 +0000 (+0100) Subject: snd-fm801: autodetect SF64-PCR (tuner-only) card X-Git-Tag: v2.6.33-rc1~390^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb716c0b7bed36064cd41d800c8f339f41adf084;p=pandora-kernel.git snd-fm801: autodetect SF64-PCR (tuner-only) card When primary AC97 is not found, don't fail with tons of AC97 errors. Assume that the card is SF64-PCR (tuner-only). This makes the SF64-PCR radio card work "out of the box". Also fixes a bug that can cause an oops here:         if (tea575x_tuner > 0 && (tea575x_tuner & 0x000f) < 4) { when tea575x_tuner == 16, it passes this check and causes problems a couple lines below:         chip->tea.ops = &snd_fm801_tea_ops[(tea575x_tuner & 0x000f) - 1]; Tested with SF64-PCR, but I don't have any of those sound or sound+radio cards to test if I didn't break anything. Signed-off-by: Ondrej Zary Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed