Commit a5942b5c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (9761): em28xx: replace magic numbers for mux aliases

Instead of using magic vmux/amux, let's use an alias where possible.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 122b77e5
...@@ -315,15 +315,15 @@ struct em28xx_board em28xx_boards[] = { ...@@ -315,15 +315,15 @@ struct em28xx_board em28xx_boards[] = {
.decoder = EM28XX_SAA711X, .decoder = EM28XX_SAA711X,
.input = { { .input = { {
.type = EM28XX_VMUX_TELEVISION, .type = EM28XX_VMUX_TELEVISION,
.vmux = 2, .vmux = SAA7115_COMPOSITE2,
.amux = EM28XX_AMUX_VIDEO, .amux = EM28XX_AMUX_VIDEO,
}, { }, {
.type = EM28XX_VMUX_COMPOSITE1, .type = EM28XX_VMUX_COMPOSITE1,
.vmux = 0, .vmux = SAA7115_COMPOSITE0,
.amux = EM28XX_AMUX_LINE_IN, .amux = EM28XX_AMUX_LINE_IN,
}, { }, {
.type = EM28XX_VMUX_SVIDEO, .type = EM28XX_VMUX_SVIDEO,
.vmux = 9, .vmux = SAA7115_COMPOSITE0,
.amux = EM28XX_AMUX_LINE_IN, .amux = EM28XX_AMUX_LINE_IN,
} }, } },
}, },
...@@ -623,7 +623,7 @@ struct em28xx_board em28xx_boards[] = { ...@@ -623,7 +623,7 @@ struct em28xx_board em28xx_boards[] = {
}, { }, {
.type = EM28XX_VMUX_COMPOSITE1, .type = EM28XX_VMUX_COMPOSITE1,
.vmux = TVP5150_COMPOSITE1, .vmux = TVP5150_COMPOSITE1,
.amux = 3, .amux = EM28XX_AMUX_LINE_IN,
.gpio = hauppauge_wintv_hvr_900_analog, .gpio = hauppauge_wintv_hvr_900_analog,
}, { }, {
.type = EM28XX_VMUX_SVIDEO, .type = EM28XX_VMUX_SVIDEO,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment