From: Vladimir Ermakov <vooon341@gmail.com>
To: hermann pitton <hermann-pitton@arcor.de>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] saa7134: add capture boards Hawell HW-404M7 and HW-808M7
Date: Sat, 20 Mar 2010 17:58:20 +0300 [thread overview]
Message-ID: <1269097100.17096.12.camel@desinto.vehq> (raw)
In-Reply-To: <1268954515.24551.15.camel@pc07.localdom.local>
Hi Hermann.
1. It's my mistake. Fixed.
2. Dead code. Removed.
# HG changeset patch
# User Vladimir Ermakov <vooon341@gmail.com>
# Date 1269096094 -10800
# Node ID a91db2cf4f5774866c8c5bf906d9ac4faff9173d
# Parent 929298149eba4b6d0696124b9880113c25cd0788
saa7134: fix GPIO HW-404M7
diff -r 929298149eba -r a91db2cf4f57 linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c Thu Mar 18 23:47:27 2010 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Sat Mar 20 17:41:34 2010 +0300
@@ -5403,12 +5403,12 @@
.radio_type = UNSET,
.tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET,
- .gpiomask = 0x01fc00,
+ .gpiomask = 0x389c00,
.inputs = {{
.name = name_comp1,
.vmux = 3,
.amux = LINE1,
- .gpio = 0x389c00,
+ .gpio = 0x01fc00,
} },
},
diff -r 929298149eba -r a91db2cf4f57 linux/drivers/media/video/saa7134/saa7134-input.c
--- a/linux/drivers/media/video/saa7134/saa7134-input.c Thu Mar 18 23:47:27 2010 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-input.c Sat Mar 20 17:41:34 2010 +0300
@@ -531,7 +531,6 @@
switch (dev->board) {
case SAA7134_BOARD_FLYVIDEO2000:
case SAA7134_BOARD_FLYVIDEO3000:
- case SAA7134_BOARD_HAWELL_HW_404M7:
case SAA7134_BOARD_FLYTVPLATINUM_FM:
case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM:
В Птн, 19/03/2010 в 00:21 +0100, hermann pitton пишет:
> Hi Vladimir,
>
> thanks, your patch is already accepted, but if have a two comments.
>
> Am Mittwoch, den 10.03.2010, 18:44 +0300 schrieb Vladimir Ermakov:
>> This patch adds new capture boards Hawell HW-404M7 and HW-808M7.
>> Those cards have 4 or 8 SAA7130 chips and for the work it only needs initialize registers.
>> The value of those registers were dumped under Windows using flytest.
>> But board haven't EEPROM.
>>
>> For the first chip:
>>
>> SAA7130 (0x7130, SubVenID:1131, SubDevID:0000, Rev: 01)
>>
>> I2C slave devices found:
>> No devices
>>
>> GPIO pins:
>> Mode : 0x00389C00
>> Value: 0x00016C00
>
> Later in the code you swapped mode (gpio mask) and value (out status).
>
> This does not cause a functional problem in this case, but is visible
> for example with saa7134 gpio_tracking=1.
>
> Second, you did add the card to the flyvideo remotes in saa7134-input,
> but this is only a line of dead code currently.
>
> If it really has such a remote, you must also add the card to the switch
> case dev->has_remote = SAA7134_REMOTE_GPIO in in the function
> int saa7134_board_init1 in saa7134-cards.c or please remove it from
> saa7134-input.c.
>
> Thanks,
> Hermann
>
>> Video input: 3
>> Audio input: Analog Line1
>>
>> For other chips:
>>
>> SAA7130 (0x7130, SubVenID:1131, SubDevID:0000, Rev: 01)
>>
>> I2C slave devices found:
>> No devices
>>
>> GPIO pins:
>> Mode : 0x00389200
>> Value: 0x00010000
>>
>> Video input: 3
>> Audio input: Analog Line1
>>
>> Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
>>
>> # HG changeset patch
>> # User Vladimir Ermakov <vooon341@gmail.com>
>> # Date 1268232221 -10800
>> # Node ID 072cd67c6aabe0e700a9e4727b50ad6424cb59f5
>> # Parent 7a58d924fb049ff1d318514939b3a7e416670c13
>> saa7134: add Hawell HW-404M7 & HW-808M7
>>
>> diff -r 7a58d924fb04 -r 072cd67c6aab linux/Documentation/video4linux/CARDLIST.saa7134
>> --- a/linux/Documentation/video4linux/CARDLIST.saa7134 Tue Mar 09 23:00:59 2010 -0300
>> +++ b/linux/Documentation/video4linux/CARDLIST.saa7134 Wed Mar 10 17:43:41 2010 +0300
>> @@ -175,3 +175,4 @@
>> 174 -> Asus Europa Hybrid OEM [1043:4847]
>> 175 -> Leadtek Winfast DTV1000S [107d:6655]
>> 176 -> Beholder BeholdTV 505 RDS [0000:5051]
>> +177 -> Hawell HW-404M7 / HW-808M7
>> diff -r 7a58d924fb04 -r 072cd67c6aab linux/drivers/media/video/saa7134/saa7134-cards.c
>> --- a/linux/drivers/media/video/saa7134/saa7134-cards.c Tue Mar 09 23:00:59 2010 -0300
>> +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Wed Mar 10 17:43:41 2010 +0300
>> @@ -5394,6 +5394,23 @@
>> .amux = LINE2,
>> },
>> },
>> + [SAA7134_BOARD_HAWELL_HW_404M7] = {
>> + /* Hawell HW-404M7 & Hawell HW-808M7 */
>> + /* Bogoslovskiy Viktor <bogovic@bk.ru> */
>> + .name = "Hawell HW-404M7",
>> + .audio_clock = 0x00200000,
>> + .tuner_type = UNSET,
>> + .radio_type = UNSET,
>> + .tuner_addr = ADDR_UNSET,
>> + .radio_addr = ADDR_UNSET,
>> + .gpiomask = 0x01fc00,
>> + .inputs = {{
>> + .name = name_comp1,
>> + .vmux = 3,
>> + .amux = LINE1,
>> + .gpio = 0x389c00,
>> + } },
>> + },
>>
>> };
>>
>> diff -r 7a58d924fb04 -r 072cd67c6aab linux/drivers/media/video/saa7134/saa7134-input.c
>> --- a/linux/drivers/media/video/saa7134/saa7134-input.c Tue Mar 09 23:00:59 2010 -0300
>> +++ b/linux/drivers/media/video/saa7134/saa7134-input.c Wed Mar 10 17:43:41 2010 +0300
>> @@ -529,6 +529,7 @@
>> switch (dev->board) {
>> case SAA7134_BOARD_FLYVIDEO2000:
>> case SAA7134_BOARD_FLYVIDEO3000:
>> + case SAA7134_BOARD_HAWELL_HW_404M7:
>> case SAA7134_BOARD_FLYTVPLATINUM_FM:
>> case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
>> case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM:
>> diff -r 7a58d924fb04 -r 072cd67c6aab linux/drivers/media/video/saa7134/saa7134.h
>> --- a/linux/drivers/media/video/saa7134/saa7134.h Tue Mar 09 23:00:59 2010 -0300
>> +++ b/linux/drivers/media/video/saa7134/saa7134.h Wed Mar 10 17:43:41 2010 +0300
>> @@ -301,6 +301,7 @@
>> #define SAA7134_BOARD_ASUS_EUROPA_HYBRID 174
>> #define SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S 175
>> #define SAA7134_BOARD_BEHOLD_505RDS_MK3 176
>> +#define SAA7134_BOARD_HAWELL_HW_404M7 177
>>
>> #define SAA7134_MAXBOARDS 32
>> #define SAA7134_INPUT_MAX 8
>>
next prev parent reply other threads:[~2010-03-20 14:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 15:44 [PATCH] saa7134: add capture boards Hawell HW-404M7 and HW-808M7 Vladimir Ermakov
2010-03-18 23:21 ` hermann pitton
2010-03-20 14:58 ` Vladimir Ermakov [this message]
2010-03-21 1:28 ` hermann pitton
2010-03-21 14:14 ` Vladimir Ermakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1269097100.17096.12.camel@desinto.vehq \
--to=vooon341@gmail.com \
--cc=hermann-pitton@arcor.de \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox