Skip to content

Commit

Permalink
[media] cx88: Fix regression: CX88_AUDIO_WM8775 can't be 0
Browse files Browse the repository at this point in the history
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 facd236.

Signed-off-by: Hans Verkuil <[email protected]>
Reported-by: Knut Petersen <[email protected]>
Tested-by: Knut Petersen <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Cc: [email protected]
  • Loading branch information
Hans Verkuil authored and mchehab committed Sep 3, 2013
1 parent d2b903b commit f66b2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/pci/cx88/cx88.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ struct cx88_input {
};

enum cx88_audio_chip {
CX88_AUDIO_WM8775,
CX88_AUDIO_WM8775 = 1,
CX88_AUDIO_TVAUDIO,
};

Expand Down

0 comments on commit f66b2a1

Please sign in to comment.