aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorDarron Broad <darron@kewl.org>2008-10-15 13:12:30 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-17 16:29:03 -0400
commit649e13a95bb2aec489cc3194034a15a6e2916448 (patch)
tree3130e4791c6b5438ff69495ebf02ba6215826bb6 /drivers/media
parente43f3fab0514647e563ee8b5baf4ce100dd5caa5 (diff)
V4L/DVB (9267): cx88: Update of audio routing config for FM radio
This adds audio routing for the hvr-1300/3000/4000 cards enabling FM audio for the I2S ADC method of the cx88. At this time only the HVR-4000 has been tested. It is assumed the HVR-3000/1300 are the same. Signed-off-by: Darron Broad <darron@kewl.org> Signed-off-by: Steven Toth <stoth@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/cx88/cx88-cards.c25
1 files changed, 22 insertions, 3 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c
index db691abbb646..fbc224f46e0e 100644
--- a/drivers/media/video/cx88/cx88-cards.c
+++ b/drivers/media/video/cx88/cx88-cards.c
@@ -1281,22 +1281,26 @@ static const struct cx88_board cx88_boards[] = {
1281 .type = CX88_VMUX_TELEVISION, 1281 .type = CX88_VMUX_TELEVISION,
1282 .vmux = 0, 1282 .vmux = 0,
1283 .gpio0 = 0x84bf, 1283 .gpio0 = 0x84bf,
1284 /* 1: TV Audio / FM Mono */
1284 .audioroute = 1, 1285 .audioroute = 1,
1285 },{ 1286 },{
1286 .type = CX88_VMUX_COMPOSITE1, 1287 .type = CX88_VMUX_COMPOSITE1,
1287 .vmux = 1, 1288 .vmux = 1,
1288 .gpio0 = 0x84bf, 1289 .gpio0 = 0x84bf,
1290 /* 2: Line-In */
1289 .audioroute = 2, 1291 .audioroute = 2,
1290 },{ 1292 },{
1291 .type = CX88_VMUX_SVIDEO, 1293 .type = CX88_VMUX_SVIDEO,
1292 .vmux = 2, 1294 .vmux = 2,
1293 .gpio0 = 0x84bf, 1295 .gpio0 = 0x84bf,
1296 /* 2: Line-In */
1294 .audioroute = 2, 1297 .audioroute = 2,
1295 }}, 1298 }},
1296 /* FIXME Radio tunes but only noise is heard */
1297 .radio = { 1299 .radio = {
1298 .type = CX88_RADIO, 1300 .type = CX88_RADIO,
1299 .gpio0 = 0x84bf, 1301 .gpio0 = 0x84bf,
1302 /* 4: FM Stereo (untested) */
1303 .audioroute = 8,
1300 }, 1304 },
1301 .mpeg = CX88_MPEG_DVB, 1305 .mpeg = CX88_MPEG_DVB,
1302 .num_frontends = 2, 1306 .num_frontends = 2,
@@ -1365,23 +1369,27 @@ static const struct cx88_board cx88_boards[] = {
1365 .type = CX88_VMUX_TELEVISION, 1369 .type = CX88_VMUX_TELEVISION,
1366 .vmux = 0, 1370 .vmux = 0,
1367 .gpio0 = 0xef88, 1371 .gpio0 = 0xef88,
1372 /* 1: TV Audio / FM Mono */
1368 .audioroute = 1, 1373 .audioroute = 1,
1369 },{ 1374 },{
1370 .type = CX88_VMUX_COMPOSITE1, 1375 .type = CX88_VMUX_COMPOSITE1,
1371 .vmux = 1, 1376 .vmux = 1,
1372 .gpio0 = 0xef88, 1377 .gpio0 = 0xef88,
1378 /* 2: Line-In */
1373 .audioroute = 2, 1379 .audioroute = 2,
1374 },{ 1380 },{
1375 .type = CX88_VMUX_SVIDEO, 1381 .type = CX88_VMUX_SVIDEO,
1376 .vmux = 2, 1382 .vmux = 2,
1377 .gpio0 = 0xef88, 1383 .gpio0 = 0xef88,
1384 /* 2: Line-In */
1378 .audioroute = 2, 1385 .audioroute = 2,
1379 }}, 1386 }},
1380 /* fixme: Add radio support */
1381 .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD, 1387 .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD,
1382 .radio = { 1388 .radio = {
1383 .type = CX88_RADIO, 1389 .type = CX88_RADIO,
1384 .gpio0 = 0xef88, 1390 .gpio0 = 0xef88,
1391 /* 4: FM Stereo (untested) */
1392 .audioroute = 8,
1385 }, 1393 },
1386 }, 1394 },
1387 [CX88_BOARD_ADSTECH_PTV_390] = { 1395 [CX88_BOARD_ADSTECH_PTV_390] = {
@@ -1755,27 +1763,38 @@ static const struct cx88_board cx88_boards[] = {
1755 * d 0 I 1763 * d 0 I
1756 * e 1 O 1764 * e 1 O
1757 * f 1 O 1765 * f 1 O
1766 *
1767 * WM8775 ADC
1768 *
1769 * 1: TV Audio / FM Mono
1770 * 2: Line-In
1771 * 3: Line-In Expansion
1772 * 4: FM Stereo
1758 */ 1773 */
1759 .input = {{ 1774 .input = {{
1760 .type = CX88_VMUX_TELEVISION, 1775 .type = CX88_VMUX_TELEVISION,
1761 .vmux = 0, 1776 .vmux = 0,
1762 .gpio0 = 0xc4bf, 1777 .gpio0 = 0xc4bf,
1778 /* 1: TV Audio / FM Mono */
1763 .audioroute = 1, 1779 .audioroute = 1,
1764 }, { 1780 }, {
1765 .type = CX88_VMUX_COMPOSITE1, 1781 .type = CX88_VMUX_COMPOSITE1,
1766 .vmux = 1, 1782 .vmux = 1,
1767 .gpio0 = 0xc4bf, 1783 .gpio0 = 0xc4bf,
1784 /* 2: Line-In */
1768 .audioroute = 2, 1785 .audioroute = 2,
1769 }, { 1786 }, {
1770 .type = CX88_VMUX_SVIDEO, 1787 .type = CX88_VMUX_SVIDEO,
1771 .vmux = 2, 1788 .vmux = 2,
1772 .gpio0 = 0xc4bf, 1789 .gpio0 = 0xc4bf,
1790 /* 2: Line-In */
1773 .audioroute = 2, 1791 .audioroute = 2,
1774 } }, 1792 } },
1775 /* FIXME Radio tunes but only noise is heard */
1776 .radio = { 1793 .radio = {
1777 .type = CX88_RADIO, 1794 .type = CX88_RADIO,
1778 .gpio0 = 0xc4bf, 1795 .gpio0 = 0xc4bf,
1796 /* 4: FM Stereo */
1797 .audioroute = 8,
1779 }, 1798 },
1780 .mpeg = CX88_MPEG_DVB, 1799 .mpeg = CX88_MPEG_DVB,
1781 .num_frontends = 2, 1800 .num_frontends = 2,