mainThe OpenVortex Project - Support: sr #103011, useless code in alsa driver

 
 

sr #103011: useless code in alsa driver

Submitter:  None
Submitted:  Thu 15 Apr 2004 08:58:47 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 06 Jan 2005 05:10:08 PM UTC, comment #4: 

the files in the directory /alsa-driver/pci/au88x0/test

http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-driver/pci/au88x0/test/

Anonymous
Sat 05 Jun 2004 02:47:37 PM UTC, comment #3: 

#define IS_BAD_CHIP(x) (\
(x->rev == 0xfe && x->device == PCI_DEVICE_ID_AUREAL_VORTEX_2) || \
(x->rev == 0xfe && x->device == PCI_DEVICE_ID_AUREAL_ADVANTAGE))

Anonymous
Mon 26 Apr 2004 04:24:45 AM UTC, comment #2: 

#define VORTEX_CODEC_DATSHIFT 0

Anonymous
Sat 17 Apr 2004 03:30:29 AM UTC, comment #1: 

if ((err = pci_read_config_word(pci, PCI_DEVICE_ID,
  &(chip->device))) < 0) {
snd_card_free(card);
return err;
}
if ((err = pci_read_config_word(pci, PCI_VENDOR_ID,
  &(chip->vendor))) < 0) {
snd_card_free(card);
return err;
}

chip->vendor and chip->device have been initalised in

if ((err = snd_vortex_create(card, pci, &chip)) < 0) {

.
.
.
chip->card = card;

// initialize the stuff
chip->pci_dev = pci;
chip->io = pci_resource_start(pci, 0);
chip->vendor = pci->vendor;
chip->device = pci->device;
chip->card = card;
chip->irq = -1;

To provide more information about the card

if ((err = pci_read_config_word(pci, PCI_SUBSYSTEM_ID,
  &(chip->subsystem_device))) < 0) {
snd_card_free(card);
return err;
}
if ((err = pci_read_config_word(pci, PCI_SUBSYSTEM_VENDOR_ID,
  &(chip->subsystem_vendor))) < 0) {
snd_card_free(card);
return err;
}
printk(KERN_INFO "Aureal Vortex %s Rev.(%.2x) Subsystem %.4x:%.4x - %s\n",
card->shortname,
chip->rev,
                chip->subsystem_vendor,
                chip->subsystem_device,
card->mixername);


Anonymous
Thu 15 Apr 2004 08:58:47 AM UTC, original submission:  


http://cvs.sourceforge.net/viewcvs.py/*checkout*/alsa/alsa-kernel/pci/au88x0/au88x0_core.c?content-type=text%2Fplain&rev=1.4

au8810 do not has wavetable

vortex_fifo_setwtctrl() of au88x0_core.c

#ifdef CHIP_AU8810
temp = (temp & 0xfeffffff) | ((f & 1) << 0x18);
temp = (temp & 0xfdffffff) | ((f & 1) << 0x19);
#endif

#ifdef CHIP_AU8810
temp =
    ((f & 1) << 0x18) | (temp & 0xfcffffef) | FIFO_BITS;
#endif

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code