]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[media] cx88: Fix regression: CX88_AUDIO_WM8775 can't be 0
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 27 Aug 2013 07:27:57 +0000 (04:27 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 28 Aug 2013 08:41:07 +0000 (05:41 -0300)
Cards using the wm8775 specify that in their card struct. Those that do not
use it leave the audio_chip field to 0. Unfortunately, the CX88_AUDIO_WM8775
enum is 0 as well, so boards that do not have the wm8775 still try to load
and use that driver. Change it to 1 to fix this.
This regression was introduced in commit facd23664f1d63c33fbc6da52261c8548ed3fbd4.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Knut Petersen <Knut_Petersen@t-online.de>
Tested-by: Knut Petersen <Knut_Petersen@t-online.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/cx88/cx88.h

index afe0eaea81b4741abe477ba2bf337994a1e234d5..28893a6b249e3ac3159bf00db31af21bff7701b3 100644 (file)
@@ -259,7 +259,7 @@ struct cx88_input {
 };
 
 enum cx88_audio_chip {
-       CX88_AUDIO_WM8775,
+       CX88_AUDIO_WM8775 = 1,
        CX88_AUDIO_TVAUDIO,
 };