Update of /cvsroot/alsa/alsa-kernel/pci/rme9652
In directory sc8-pr-cvs1:/tmp/cvs-serv14301

Modified Files:
        hdsp.c 
Log Message:
fixes by Thomas Charbonnel <[EMAIL PROTECTED]>:

* fixes a typo in the number of channels for hdsp 9652 cards
* fixes problems on hdsp9652 where the driver reported the firmware had to
be loaded
* adds an explicit warning about the fact that hardware metering is not
supported yet for hdsp 9652 cards



Index: hdsp.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/hdsp.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- hdsp.c      3 Jul 2003 11:41:50 -0000       1.40
+++ hdsp.c      18 Jul 2003 10:04:59 -0000      1.41
@@ -76,8 +76,8 @@
 #define DIGIFACE_DS_CHANNELS     14
 #define MULTIFACE_SS_CHANNELS    18
 #define MULTIFACE_DS_CHANNELS    14
-#define H9652_DS_CHANNELS        26
-#define H9652_SS_CHANNELS        14
+#define H9652_SS_CHANNELS        26
+#define H9652_DS_CHANNELS        14
 
 /* Write registers. These are defined as byte-offsets from the iobase value.
  */
@@ -643,6 +643,7 @@
 
 static inline int hdsp_check_for_firmware (hdsp_t *hdsp)
 {
+       if (hdsp->io_type == H9652) return 0;
        if ((hdsp_read (hdsp, HDSP_statusRegister) & HDSP_DllError) != 0) {
                snd_printk("firmware not present.\n");
                hdsp->state &= ~HDSP_FirmwareLoaded;
@@ -3798,6 +3799,10 @@
        
        switch (cmd) {
        case SNDRV_HDSP_IOCTL_GET_PEAK_RMS:
+               if (hdsp->io_type == H9652) {
+                   snd_printk("hardware metering isn't supported yet for hdsp9652 
cards\n");
+                   return -EINVAL;
+               }
                if (!(hdsp->state & HDSP_FirmwareLoaded)) {
                        snd_printk("firmware needs to be uploaded to the card.\n");    
 
                        return -EINVAL;



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to