diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-08-15 23:44:23 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-08-15 23:44:23 +0000 |
commit | 631cfa7d9e49f58bfcda9e5a834abb08d1eb005b (patch) | |
tree | 721cd508405008e923e6f8e6aabb749ab90caa55 /linux/drivers/media | |
parent | d787c1bd04c659cf030dbdf82157417ac4e599cc (diff) | |
download | mediapointer-dvb-s2-631cfa7d9e49f58bfcda9e5a834abb08d1eb005b.tar.gz mediapointer-dvb-s2-631cfa7d9e49f58bfcda9e5a834abb08d1eb005b.tar.bz2 |
* cx88-alsa.c:
- Some fixups. Still incomplete.
* cx88-core.c:
- New error message.
- spaces replaced by tabs.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-alsa.c | 24 | ||||
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-core.c | 18 |
2 files changed, 32 insertions, 10 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-alsa.c b/linux/drivers/media/video/cx88/cx88-alsa.c index 062ea54e3..d962856c6 100644 --- a/linux/drivers/media/video/cx88/cx88-alsa.c +++ b/linux/drivers/media/video/cx88/cx88-alsa.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-alsa.c,v 1.7 2005/08/15 01:49:36 mchehab Exp $ + * $Id: cx88-alsa.c,v 1.8 2005/08/15 23:44:23 mchehab Exp $ * * Support for audio capture * PCI function #1 of the cx2388x. @@ -641,11 +641,11 @@ static snd_kcontrol_new_t snd_cx88_capture_source = { ****************************************************************************/ /* - * PCI ID Table + * PCI ID Table - 14f1:8801 and 14f1:8811 means function 1: Audio + * Only boards with eeprom and byte 1 at eeprom=1 have it */ struct pci_device_id cx88_audio_pci_tbl[] = { - {0x14f1,0x8800,PCI_ANY_ID,PCI_ANY_ID,0,0,0}, {0x14f1,0x8801,PCI_ANY_ID,PCI_ANY_ID,0,0,0}, {0x14f1,0x8811,PCI_ANY_ID,PCI_ANY_ID,0,0,0}, {0, } @@ -731,6 +731,21 @@ static int __devinit snd_cx88_create(snd_card_t *card, struct pci_dev *pci, chip->irq = -1; spin_lock_init(&chip->reg_lock); +#if 0 + if ((err = pci_request_regions(pci, "CX88 audio")) < 0) { + kfree(chip); + pci_disable_device(pci); + return err; + } + chip->mmio = ioremap_nocache(pci_resource_start(pci, 0), + pci_resource_len(pci, 0)); + if (!chip->mmio) { + snd_bt87x_free(chip); + snd_printk(KERN_ERR "cannot remap io memory\n"); + return -ENOMEM; + } +#endif + core = cx88_core_get(chip->pci); if (NULL == core) { err = -EINVAL; @@ -739,7 +754,7 @@ static int __devinit snd_cx88_create(snd_card_t *card, struct pci_dev *pci, } chip->core = core; #if 1 /* Should be tested if it is wright */ - chip->dig_rate=32000; + chip->dig_rate=48000; #endif #if 1 /* From cx88-mpeg.c */ @@ -763,6 +778,7 @@ static int __devinit snd_cx88_create(snd_card_t *card, struct pci_dev *pci, } cx_set(MO_PCI_INTMSK, core->pci_irqmask); #endif + /* print pci info */ pci_read_config_byte(pci, PCI_CLASS_REVISION, &chip->pci_rev); pci_read_config_byte(pci, PCI_LATENCY_TIMER, &chip->pci_lat); diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c index 46f2a2279..87ccad11f 100644 --- a/linux/drivers/media/video/cx88/cx88-core.c +++ b/linux/drivers/media/video/cx88/cx88-core.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-core.c,v 1.34 2005/07/15 21:44:14 mchehab Exp $ + * $Id: cx88-core.c,v 1.35 2005/08/15 23:44:23 mchehab Exp $ * * device driver for Conexant 2388x based TV cards * driver core @@ -1127,6 +1127,12 @@ struct cx88_core* cx88_core_get(struct pci_dev *pci) core->nr = cx88_devcount++; sprintf(core->name,"cx88[%d]",core->nr); if (0 != get_ressources(core,pci)) { + printk(KERN_ERR "CORE %s No more PCI ressources for " + "subsystem: %04x:%04x, board: %s\n", + core->name,pci->subsystem_vendor, + pci->subsystem_device, + cx88_boards[core->board].name); + cx88_devcount--; goto fail_free; } @@ -1150,11 +1156,11 @@ struct cx88_core* cx88_core_get(struct pci_dev *pci) core->board = CX88_BOARD_UNKNOWN; cx88_card_list(core,pci); } - printk(KERN_INFO "%s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n", - core->name,pci->subsystem_vendor, - pci->subsystem_device,cx88_boards[core->board].name, - core->board, card[core->nr] == core->board ? - "insmod option" : "autodetected"); + printk(KERN_INFO "CORE %s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n", + core->name,pci->subsystem_vendor, + pci->subsystem_device,cx88_boards[core->board].name, + core->board, card[core->nr] == core->board ? + "insmod option" : "autodetected"); core->tuner_type = tuner[core->nr]; core->radio_type = radio[core->nr]; |