Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33315
b: refs/heads/master
c: 0e1edbd
h: refs/heads/master
i:
  33313: 23ecff6
  33311: 1a11e57
v: v3
  • Loading branch information
Nathan Scott committed Aug 10, 2006
1 parent c43eeed commit bb1a1f8
Show file tree
Hide file tree
Showing 50 changed files with 261 additions and 486 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fff642570dc47ab76491fe81ee6599269c4eb13e
refs/heads/master: 0e1edbd99994270023cea5afe593f972eb09a778
24 changes: 6 additions & 18 deletions trunk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,12 @@ core-y := usr/
endif # KBUILD_EXTMOD

ifeq ($(dot-config),1)
# Read in config
-include include/config/auto.conf
# In this section, we need .config

ifeq ($(KBUILD_EXTMOD),)
# Read in dependencies to all Kconfig* files, make sure to run
# oldconfig if changes are detected.
-include include/config/auto.conf.cmd
-include include/config/auto.conf

# To avoid any implicit rule to kick in, define an empty command
$(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;
Expand All @@ -452,27 +451,16 @@ $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;
# if auto.conf.cmd is missing then we are probably in a cleaned tree so
# we execute the config step to be sure to catch updated Kconfig files
include/config/auto.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd
ifeq ($(KBUILD_EXTMOD),)
$(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig
else
# external modules needs include/linux/autoconf.h and include/config/auto.conf
# but do not care if they are up-to-date. Use auto.conf to trigger the test
PHONY += include/config/auto.conf

include/config/auto.conf:
$(Q)test -e include/linux/autoconf.h -a -e $@ || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or $@ are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)

endif # KBUILD_EXTMOD
$(error kernel configuration not valid - run 'make prepare' in $(srctree) to update it)
endif

else
# Dummy target needed, because used as prerequisite
include/config/auto.conf: ;
endif # $(dot-config)
endif

# The all: target is the default when no target is given on the
# command line.
Expand Down
30 changes: 0 additions & 30 deletions trunk/drivers/ide/pci/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,36 +180,6 @@ static ide_pci_device_t generic_chipsets[] __devinitdata = {
.channels = 2,
.autodma = AUTODMA,
.bootable = OFF_BOARD,
},{ /* 15 */
.name = "JMB361",
.init_hwif = init_hwif_generic,
.channels = 2,
.autodma = AUTODMA,
.bootable = OFF_BOARD,
},{ /* 16 */
.name = "JMB363",
.init_hwif = init_hwif_generic,
.channels = 2,
.autodma = AUTODMA,
.bootable = OFF_BOARD,
},{ /* 17 */
.name = "JMB365",
.init_hwif = init_hwif_generic,
.channels = 2,
.autodma = AUTODMA,
.bootable = OFF_BOARD,
},{ /* 18 */
.name = "JMB366",
.init_hwif = init_hwif_generic,
.channels = 2,
.autodma = AUTODMA,
.bootable = OFF_BOARD,
},{ /* 19 */
.name = "JMB368",
.init_hwif = init_hwif_generic,
.channels = 2,
.autodma = AUTODMA,
.bootable = OFF_BOARD,
}
};

Expand Down
58 changes: 31 additions & 27 deletions trunk/drivers/media/dvb/bt8xx/dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static int dst_set_bandwidth(struct dst_state *state, fe_bandwidth_t bandwidth)
state->bandwidth = bandwidth;

if (state->dst_type != DST_TYPE_IS_TERR)
return -EOPNOTSUPP;
return 0;

switch (bandwidth) {
case BANDWIDTH_6_MHZ:
Expand Down Expand Up @@ -462,7 +462,7 @@ static int dst_set_symbolrate(struct dst_state *state, u32 srate)

state->symbol_rate = srate;
if (state->dst_type == DST_TYPE_IS_TERR) {
return -EOPNOTSUPP;
return 0;
}
dprintk(verbose, DST_INFO, 1, "set symrate %u", srate);
srate /= 1000;
Expand Down Expand Up @@ -504,7 +504,7 @@ static int dst_set_symbolrate(struct dst_state *state, u32 srate)
static int dst_set_modulation(struct dst_state *state, fe_modulation_t modulation)
{
if (state->dst_type != DST_TYPE_IS_CABLE)
return -EOPNOTSUPP;
return 0;

state->modulation = modulation;
switch (modulation) {
Expand Down Expand Up @@ -1234,7 +1234,7 @@ int dst_command(struct dst_state *state, u8 *data, u8 len)
goto error;
}
if (write_dst(state, data, len)) {
dprintk(verbose, DST_INFO, 1, "Trying to recover.. ");
dprintk(verbose, DST_INFO, 1, "Tring to recover.. ");
if ((dst_error_recovery(state)) < 0) {
dprintk(verbose, DST_ERROR, 1, "Recovery Failed.");
goto error;
Expand Down Expand Up @@ -1328,13 +1328,15 @@ static int dst_tone_power_cmd(struct dst_state *state)
{
u8 paket[8] = { 0x00, 0x09, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00 };

if (state->dst_type != DST_TYPE_IS_SAT)
return -EOPNOTSUPP;
if (state->dst_type == DST_TYPE_IS_TERR)
return 0;
paket[4] = state->tx_tuna[4];
paket[2] = state->tx_tuna[2];
paket[3] = state->tx_tuna[3];
paket[7] = dst_check_sum (paket, 7);
return dst_command(state, paket, 8);
dst_command(state, paket, 8);

return 0;
}

static int dst_get_tuna(struct dst_state *state)
Expand Down Expand Up @@ -1463,25 +1465,26 @@ static int dst_set_diseqc(struct dvb_frontend *fe, struct dvb_diseqc_master_cmd
u8 paket[8] = { 0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf0, 0xec };

if (state->dst_type != DST_TYPE_IS_SAT)
return -EOPNOTSUPP;
return 0;
if (cmd->msg_len > 0 && cmd->msg_len < 5)
memcpy(&paket[3], cmd->msg, cmd->msg_len);
else if (cmd->msg_len == 5 && state->dst_hw_cap & DST_TYPE_HAS_DISEQC5)
memcpy(&paket[2], cmd->msg, cmd->msg_len);
else
return -EINVAL;
paket[7] = dst_check_sum(&paket[0], 7);
return dst_command(state, paket, 8);
dst_command(state, paket, 8);
return 0;
}

static int dst_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage)
{
int need_cmd, retval = 0;
int need_cmd;
struct dst_state *state = fe->demodulator_priv;

state->voltage = voltage;
if (state->dst_type != DST_TYPE_IS_SAT)
return -EOPNOTSUPP;
return 0;

need_cmd = 0;

Expand All @@ -1503,9 +1506,9 @@ static int dst_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage)
}

if (need_cmd)
retval = dst_tone_power_cmd(state);
dst_tone_power_cmd(state);

return retval;
return 0;
}

static int dst_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
Expand All @@ -1514,7 +1517,7 @@ static int dst_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)

state->tone = tone;
if (state->dst_type != DST_TYPE_IS_SAT)
return -EOPNOTSUPP;
return 0;

switch (tone) {
case SEC_TONE_OFF:
Expand All @@ -1530,15 +1533,17 @@ static int dst_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
default:
return -EINVAL;
}
return dst_tone_power_cmd(state);
dst_tone_power_cmd(state);

return 0;
}

static int dst_send_burst(struct dvb_frontend *fe, fe_sec_mini_cmd_t minicmd)
{
struct dst_state *state = fe->demodulator_priv;

if (state->dst_type != DST_TYPE_IS_SAT)
return -EOPNOTSUPP;
return 0;
state->minicmd = minicmd;
switch (minicmd) {
case SEC_MINI_A:
Expand All @@ -1548,7 +1553,9 @@ static int dst_send_burst(struct dvb_frontend *fe, fe_sec_mini_cmd_t minicmd)
state->tx_tuna[3] = 0xff;
break;
}
return dst_tone_power_cmd(state);
dst_tone_power_cmd(state);

return 0;
}


Expand Down Expand Up @@ -1601,31 +1608,28 @@ static int dst_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
{
struct dst_state *state = fe->demodulator_priv;

int retval = dst_get_signal(state);
dst_get_signal(state);
*strength = state->decode_strength;

return retval;
return 0;
}

static int dst_read_snr(struct dvb_frontend *fe, u16 *snr)
{
struct dst_state *state = fe->demodulator_priv;

int retval = dst_get_signal(state);
dst_get_signal(state);
*snr = state->decode_snr;

return retval;
return 0;
}

static int dst_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_parameters *p)
{
int retval = -EINVAL;
struct dst_state *state = fe->demodulator_priv;

if (p != NULL) {
retval = dst_set_freq(state, p->frequency);
if(retval != 0)
return retval;
dst_set_freq(state, p->frequency);
dprintk(verbose, DST_DEBUG, 1, "Set Frequency=[%d]", p->frequency);

if (state->dst_type == DST_TYPE_IS_SAT) {
Expand All @@ -1643,10 +1647,10 @@ static int dst_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_paramet
dst_set_symbolrate(state, p->u.qam.symbol_rate);
dst_set_modulation(state, p->u.qam.modulation);
}
retval = dst_write_tuna(fe);
dst_write_tuna(fe);
}

return retval;
return 0;
}

static int dst_tune_frontend(struct dvb_frontend* fe,
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/media/dvb/dvb-core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Makefile for the kernel DVB device drivers.
#

dvb-core-objs := dvbdev.o dmxdev.o dvb_demux.o dvb_filter.o \
dvb_ca_en50221.o dvb_frontend.o \
dvb_net.o dvb_ringbuffer.o dvb_math.o
dvb-core-objs = dvbdev.o dmxdev.o dvb_demux.o dvb_filter.o \
dvb_ca_en50221.o dvb_frontend.o \
dvb_net.o dvb_ringbuffer.o dvb_math.o

obj-$(CONFIG_DVB_CORE) += dvb-core.o
12 changes: 1 addition & 11 deletions trunk/drivers/media/radio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,5 @@ config RADIO_ZOLTRIX_PORT
help
Enter the I/O port of your Zoltrix radio card.

config USB_DSBR
tristate "D-Link USB FM radio support (EXPERIMENTAL)"
depends on USB && VIDEO_V4L1 && EXPERIMENTAL
---help---
Say Y here if you want to connect this type of radio to your
computer's USB port. Note that the audio is not digital, and
you must connect the line out connector to a sound card or a
set of speakers.

To compile this driver as a module, choose M here: the
module will be called dsbr100.
endmenu

1 change: 0 additions & 1 deletion trunk/drivers/media/radio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ obj-$(CONFIG_RADIO_GEMTEK) += radio-gemtek.o
obj-$(CONFIG_RADIO_GEMTEK_PCI) += radio-gemtek-pci.o
obj-$(CONFIG_RADIO_TRUST) += radio-trust.o
obj-$(CONFIG_RADIO_MAESTRO) += radio-maestro.o
obj-$(CONFIG_USB_DSBR) += dsbr100.o

EXTRA_CFLAGS += -Isound
12 changes: 12 additions & 0 deletions trunk/drivers/media/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ source "drivers/media/video/pvrusb2/Kconfig"

source "drivers/media/video/em28xx/Kconfig"

config USB_DSBR
tristate "D-Link USB FM radio support (EXPERIMENTAL)"
depends on USB && VIDEO_V4L1 && EXPERIMENTAL
---help---
Say Y here if you want to connect this type of radio to your
computer's USB port. Note that the audio is not digital, and
you must connect the line out connector to a sound card or a
set of speakers.

To compile this driver as a module, choose M here: the
module will be called dsbr100.

source "drivers/media/video/usbvideo/Kconfig"

source "drivers/media/video/et61x251/Kconfig"
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ obj-$(CONFIG_VIDEO_UPD64083) += upd64083.o
obj-$(CONFIG_VIDEO_CX2341X) += cx2341x.o

obj-$(CONFIG_USB_DABUSB) += dabusb.o
obj-$(CONFIG_USB_DSBR) += dsbr100.o
obj-$(CONFIG_USB_OV511) += ov511.o
obj-$(CONFIG_USB_SE401) += se401.o
obj-$(CONFIG_USB_STV680) += stv680.o
Expand All @@ -90,7 +91,6 @@ obj-$(CONFIG_USB_ZC0301) += zc0301/
obj-$(CONFIG_USB_IBMCAM) += usbvideo/
obj-$(CONFIG_USB_KONICAWC) += usbvideo/
obj-$(CONFIG_USB_VICAM) += usbvideo/
obj-$(CONFIG_USB_QUICKCAM_MESSENGER) += usbvideo/

obj-$(CONFIG_VIDEO_VIVI) += vivi.o

Expand Down
Loading

0 comments on commit bb1a1f8

Please sign in to comment.