Skip to contentSkip to conversation

au0828: Add USB ID used by many dongles

PATCH In review Ismael Luceno 3 participants 7 messages May 11, 2012 – May 20, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 au0828: Add USB ID used by many dongles

Tested with Yfeng 680 ATV dongle.

---
 drivers/media/video/au0828/au0828-cards.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/media/video/au0828/au0828-cards.c +2 -0
index 1c6015a..e3fe9a6 100644
@@ -325,6 +325,8 @@ struct usb_device_id au0828_usb_id_table[] = {
 		.driver_info = AU0828_BOARD_HAUPPAUGE_HVR950Q_MXL },
 	{ USB_DEVICE(0x2040, 0x7281),
 		.driver_info = AU0828_BOARD_HAUPPAUGE_HVR950Q_MXL },
+	{ USB_DEVICE(0x05e1, 0x0480),
+		.driver_info = AU0828_BOARD_HAUPPAUGE_WOODBURY },
 	{ USB_DEVICE(0x2040, 0x8200),
 		.driver_info = AU0828_BOARD_HAUPPAUGE_WOODBURY },
 	{ USB_DEVICE(0x2040, 0x7260),
Signature · 1 line
1.7.10
#1 lore raw

PATCH 2/2 au0828: Move under dvb

---
 drivers/media/dvb/Kconfig                          |    1 +
 drivers/media/dvb/Makefile                         |    1 +
 drivers/media/{video => dvb}/au0828/Kconfig        |    0
 drivers/media/{video => dvb}/au0828/Makefile       |    0
 drivers/media/{video => dvb}/au0828/au0828-cards.c |    0
 drivers/media/{video => dvb}/au0828/au0828-cards.h |    0
 drivers/media/{video => dvb}/au0828/au0828-core.c  |    0
 drivers/media/{video => dvb}/au0828/au0828-dvb.c   |    0
 drivers/media/{video => dvb}/au0828/au0828-i2c.c   |    0
 drivers/media/{video => dvb}/au0828/au0828-reg.h   |    0
 drivers/media/{video => dvb}/au0828/au0828-vbi.c   |    0
 drivers/media/{video => dvb}/au0828/au0828-video.c |    0
 drivers/media/{video => dvb}/au0828/au0828.h       |    0
 drivers/media/video/Kconfig                        |    2 --
 drivers/media/video/Makefile                       |    2 --
 15 files changed, 2 insertions(+), 4 deletions(-)
 rename drivers/media/{video => dvb}/au0828/Kconfig (100%)
 rename drivers/media/{video => dvb}/au0828/Makefile (100%)
 rename drivers/media/{video => dvb}/au0828/au0828-cards.c (100%)
 rename drivers/media/{video => dvb}/au0828/au0828-cards.h (100%)
 rename drivers/media/{video => dvb}/au0828/au0828-core.c (100%)
 rename drivers/media/{video => dvb}/au0828/au0828-dvb.c (100%)
 rename drivers/media/{video => dvb}/au0828/au0828-i2c.c (100%)
 rename drivers/media/{video => dvb}/au0828/au0828-reg.h (100%)
 rename drivers/media/{video => dvb}/au0828/au0828-vbi.c (100%)
 rename drivers/media/{video => dvb}/au0828/au0828-video.c (100%)
 rename drivers/media/{video => dvb}/au0828/au0828.h (100%)
drivers/media/dvb/Kconfig +1 -0
index f6e40b3..1cbb061 100644
@@ -43,6 +43,7 @@ source "drivers/media/dvb/ttpci/Kconfig"
 
 comment "Supported USB Adapters"
 	depends on DVB_CORE && USB && I2C
+source "drivers/media/dvb/au0828/Kconfig"
 source "drivers/media/dvb/dvb-usb/Kconfig"
 source "drivers/media/dvb/ttusb-budget/Kconfig"
 source "drivers/media/dvb/ttusb-dec/Kconfig"
drivers/media/dvb/Makefile +1 -0
index b2cefe6..3f28163 100644
@@ -19,3 +19,4 @@ obj-y        := dvb-core/	\
 		ddbridge/
 
 obj-$(CONFIG_DVB_FIREDTV)	+= firewire/
+obj-$(CONFIG_VIDEO_AU0828)	+= au0828/
drivers/media/dvb/au0828/Kconfig renamed from drivers/media/video/au0828/Kconfig +0 -0
similarity index 100%
rename from drivers/media/video/au0828/Kconfig
rename to drivers/media/dvb/au0828/Kconfig
drivers/media/dvb/au0828/Makefile renamed from drivers/media/video/au0828/Makefile +0 -0
similarity index 100%
rename from drivers/media/video/au0828/Makefile
rename to drivers/media/dvb/au0828/Makefile
drivers/media/dvb/au0828/au0828-cards.c renamed from drivers/media/video/au0828/au0828-cards.c +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828-cards.c
rename to drivers/media/dvb/au0828/au0828-cards.c
drivers/media/dvb/au0828/au0828-cards.h renamed from drivers/media/video/au0828/au0828-cards.h +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828-cards.h
rename to drivers/media/dvb/au0828/au0828-cards.h
drivers/media/dvb/au0828/au0828-core.c renamed from drivers/media/video/au0828/au0828-core.c +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828-core.c
rename to drivers/media/dvb/au0828/au0828-core.c
drivers/media/dvb/au0828/au0828-dvb.c renamed from drivers/media/video/au0828/au0828-dvb.c +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828-dvb.c
rename to drivers/media/dvb/au0828/au0828-dvb.c
drivers/media/dvb/au0828/au0828-i2c.c renamed from drivers/media/video/au0828/au0828-i2c.c +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828-i2c.c
rename to drivers/media/dvb/au0828/au0828-i2c.c
drivers/media/dvb/au0828/au0828-reg.h renamed from drivers/media/video/au0828/au0828-reg.h +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828-reg.h
rename to drivers/media/dvb/au0828/au0828-reg.h
drivers/media/dvb/au0828/au0828-vbi.c renamed from drivers/media/video/au0828/au0828-vbi.c +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828-vbi.c
rename to drivers/media/dvb/au0828/au0828-vbi.c
drivers/media/dvb/au0828/au0828-video.c renamed from drivers/media/video/au0828/au0828-video.c +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828-video.c
rename to drivers/media/dvb/au0828/au0828-video.c
drivers/media/dvb/au0828/au0828.h renamed from drivers/media/video/au0828/au0828.h +0 -0
similarity index 100%
rename from drivers/media/video/au0828/au0828.h
rename to drivers/media/dvb/au0828/au0828.h
drivers/media/video/Kconfig +0 -2
index ce1e7ba..5a717eb 100644
@@ -721,8 +721,6 @@ menuconfig V4L_PCI_DRIVERS
 
 if V4L_PCI_DRIVERS
 
-source "drivers/media/video/au0828/Kconfig"
-
 source "drivers/media/video/bt8xx/Kconfig"
 
 source "drivers/media/video/cx18/Kconfig"
drivers/media/video/Makefile +0 -2
index a6282a3..90602a9 100644
@@ -198,8 +198,6 @@ obj-$(CONFIG_ARCH_DAVINCI)		+= davinci/
 
 obj-$(CONFIG_VIDEO_SH_VOU)		+= sh_vou.o
 
-obj-$(CONFIG_VIDEO_AU0828) += au0828/
-
 obj-$(CONFIG_USB_VIDEO_CLASS)	+= uvc/
 obj-$(CONFIG_VIDEO_SAA7164)     += saa7164/
 
Signature · 1 line
1.7.10
#2 lore raw

Re: [PATCH 2/2] au0828: Move under dvb

Quoted 18 lines · Ismael Luceno

---
 drivers/media/dvb/Kconfig                          |    1 + drivers/media/dvb/Makefile                         |    1 + drivers/media/{video => dvb}/au0828/Kconfig        |    0 drivers/media/{video => dvb}/au0828/Makefile       |    0 drivers/media/{video => dvb}/au0828/au0828-cards.c |    0 drivers/media/{video => dvb}/au0828/au0828-cards.h |    0

 drivers/media/{video => dvb}/au0828/au0828-core.c  |    0
 drivers/media/{video => dvb}/au0828/au0828-dvb.c   |    0
 drivers/media/{video => dvb}/au0828/au0828-i2c.c   |    0
 drivers/media/{video => dvb}/au0828/au0828-reg.h   |    0
 drivers/media/{video => dvb}/au0828/au0828-vbi.c   |    0

 drivers/media/{video => dvb}/au0828/au0828-video.c |    0 drivers/media/{video => dvb}/au0828/au0828.h       |    0 drivers/media/video/Kconfig                        |    2 -- drivers/media/video/Makefile                       |    2 --

 15 files changed, 2 insertions(+), 4 deletions(-)
Quoted 11 lines

 rename drivers/media/{video => dvb}/au0828/Kconfig (100%) rename drivers/media/{video => dvb}/au0828/Makefile (100%) rename drivers/media/{video => dvb}/au0828/au0828-cards.c (100%) rename drivers/media/{video => dvb}/au0828/au0828-cards.h (100%) rename drivers/media/{video => dvb}/au0828/au0828-core.c (100%) rename drivers/media/{video => dvb}/au0828/au0828-dvb.c (100%) rename drivers/media/{video => dvb}/au0828/au0828-i2c.c (100%) rename drivers/media/{video => dvb}/au0828/au0828-reg.h (100%) rename drivers/media/{video => dvb}/au0828/au0828-vbi.c (100%) rename drivers/media/{video => dvb}/au0828/au0828-video.c (100%) rename drivers/media/{video => dvb}/au0828/au0828.h (100%)

What is the motivation for moving these files? The au0828 is a hybrid bridge, and every other hybrid bridge is under video?

NACK unless somebody can provide a good reason for doing this.

Devin

Signature · 2 lines
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
#3 lore raw

Re: [PATCH 2/2] au0828: Move under dvb

On Fri, 11 May 2012 08:04:59 -0400
Devin Heitmueller <[email protected]> wrote:
...

Quoted 1 line

What is the motivation for moving these files?

Well, the device was on the wrong Kconfig section, and while thinking about changing that, I just thought to move it under DVB.

Quoted 2 lines

The au0828 is a hybrid bridge, and every other hybrid bridge is under video?

Sorry, the devices I got don't support analog, so I didn't thought about it that much...

I guess it's arbitrary... isn't it? wouldn't it be better to have an hybrid section? (just thinking out loud)

#4 lore raw

Re: [PATCH 2/2] au0828: Move under dvb

Quoted 8 lines · Ismael Luceno

On Fri, 11 May 2012 08:04:59 -0400
Devin Heitmueller <[email protected]> wrote:
...

Quoted 1 line

What is the motivation for moving these files?

Well, the device was on the wrong Kconfig section, and while thinking about changing that, I just thought to move it under DVB.

Quoted 8 lines
Quoted 2 lines

The au0828 is a hybrid bridge, and every other hybrid bridge is under video?

Sorry, the devices I got don't support analog, so I didn't thought about it that much...

I guess it's arbitrary... isn't it? wouldn't it be better to have an hybrid section? (just thinking out loud)

Yeah, in this case it's largely historical (a product from before the V4L and DVB subsystems were merged). At this point I don't see any real advantage to arbitrarily moving the stuff around. And in fact in some areas it's even more ambiguous because some drivers are hybrid drivers but support both hybrid chips as well as analog-only (the em28xx driver is one such example).

Anyway, Mauro is welcome to offer his opinion if it differs, but as far as I'm concerned this patch shouldn't get applied.

Cheers,

Devin

Signature · 2 lines
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
#5 lore raw

Re: [PATCH 2/2] au0828: Move under dvb

Em 12-05-2012 07:21, Devin Heitmueller escreveu:

Quoted 25 lines · Ismael Luceno
Quoted 8 lines

On Fri, 11 May 2012 08:04:59 -0400
Devin Heitmueller <[email protected]> wrote:
...

Quoted 1 line

What is the motivation for moving these files?

Well, the device was on the wrong Kconfig section, and while thinking about changing that, I just thought to move it under DVB.

Quoted 8 lines
Quoted 2 lines

The au0828 is a hybrid bridge, and every other hybrid bridge is under video?

Sorry, the devices I got don't support analog, so I didn't thought about it that much...

I guess it's arbitrary... isn't it? wouldn't it be better to have an hybrid section? (just thinking out loud)

Yeah, in this case it's largely historical (a product from before the V4L and DVB subsystems were merged). At this point I don't see any real advantage to arbitrarily moving the stuff around. And in fact in some areas it's even more ambiguous because some drivers are hybrid drivers but support both hybrid chips as well as analog-only (the em28xx driver is one such example).

Quoted 2 lines

Anyway, Mauro is welcome to offer his opinion if it differs, but as far as I'm concerned this patch shouldn't get applied.

I won't apply this patch.

If the Kconfig menus are confusing, then we should fix it, instead of moving things from one place to another ;)

Quoted 5 lines

Cheers,

Devin

#6 lore raw

Re: [PATCH 2/2] au0828: Move under dvb

Em 20-05-2012 10:32, Mauro Carvalho Chehab escreveu:

Quoted 26 lines

Em 12-05-2012 07:21, Devin Heitmueller escreveu:

Quoted 25 lines · Ismael Luceno
Quoted 8 lines

On Fri, 11 May 2012 08:04:59 -0400
Devin Heitmueller <[email protected]> wrote:
...

Quoted 1 line

What is the motivation for moving these files?

Well, the device was on the wrong Kconfig section, and while thinking about changing that, I just thought to move it under DVB.

Quoted 8 lines
Quoted 2 lines

The au0828 is a hybrid bridge, and every other hybrid bridge is under video?

Sorry, the devices I got don't support analog, so I didn't thought about it that much...

I guess it's arbitrary... isn't it? wouldn't it be better to have an hybrid section? (just thinking out loud)

Yeah, in this case it's largely historical (a product from before the V4L and DVB subsystems were merged). At this point I don't see any real advantage to arbitrarily moving the stuff around. And in fact in some areas it's even more ambiguous because some drivers are hybrid drivers but support both hybrid chips as well as analog-only (the em28xx driver is one such example).

Quoted 7 lines
Quoted 2 lines

Anyway, Mauro is welcome to offer his opinion if it differs, but as far as I'm concerned this patch shouldn't get applied.

I won't apply this patch.

If the Kconfig menus are confusing, then we should fix it, instead of moving things from one place to another ;)

Hmm...

menuconfig VIDEO_CAPTURE_DRIVERS
bool "Video capture adapters"
depends on VIDEO_V4L2
default y
---help---
Say Y here to enable selecting the video adapters for webcams, analog TV, and hybrid analog/digital TV. Some of those devices also supports FM radio.

The help explanation is OK. Maybe we could change the description:

comment at the bool description. What about the change below?

Regards,
Mauro

-
[media] video: Improve Kconfig menu description

The menu description can mislead to indicate that only capture devices are there.

drivers/media/dvb/Kconfig +3 -2
index f6e40b3..8efa494 100644
@@ -29,11 +29,12 @@ config DVB_DYNAMIC_MINORS
 	  If you are unsure about this, say N here.
 
 menuconfig DVB_CAPTURE_DRIVERS
-	bool "DVB/ATSC adapters"
+	bool "Digital TV adapters"
 	depends on DVB_CORE
 	default y
 	---help---
-	  Say Y to select Digital TV adapters
+	  Say Y to select Digital TV adapters. Hybrid devices
+	  with both analog TV and digital TVs are not there.
 
 if DVB_CAPTURE_DRIVERS && DVB_CORE
 
drivers/media/video/Kconfig +3 -2
index 268b36d..a5a0ef2 100644
@@ -71,12 +71,13 @@ config VIDEOBUF2_DMA_SG
 #
 
 menuconfig VIDEO_CAPTURE_DRIVERS
-	bool "Video capture adapters"
+	bool "Video adapters (capture, webcams, analog TV, hybrid TV)"
 	depends on VIDEO_V4L2
 	default y
 	---help---
 	  Say Y here to enable selecting the video adapters for
-	  webcams, analog TV, and hybrid analog/digital TV.
+	  webcams, video capture, analog TV, and hybrid
+	  analog/digital TV.
 	  Some of those devices also supports FM radio.
 
 if VIDEO_CAPTURE_DRIVERS && VIDEO_V4L2