* Small hdsp maintenance patch
@ 2003-07-17 20:13 Thomas Charbonnel
2003-07-18 10:05 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Charbonnel @ 2003-07-17 20:13 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
Hi,
The attached patch :
* 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
Thomas
[-- Attachment #2: hdsp_cleanup.patch --]
[-- Type: text/plain, Size: 1091 bytes --]
--- hdsp.c.old 2003-07-12 17:39:07.000000000 +0200
+++ hdsp.c 2003-07-17 21:44:38.000000000 +0200
@@ -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;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Small hdsp maintenance patch
2003-07-17 20:13 Small hdsp maintenance patch Thomas Charbonnel
@ 2003-07-18 10:05 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-07-18 10:05 UTC (permalink / raw)
To: Thomas Charbonnel; +Cc: alsa-devel
At Thu, 17 Jul 2003 22:13:42 +0200 (CEST),
Thomas Charbonnel wrote:
>
> Hi,
>
> The attached patch :
>
> * 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
>
> Thomas
now applied to cvs.
thanks!
Takashi
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-18 10:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-17 20:13 Small hdsp maintenance patch Thomas Charbonnel
2003-07-18 10:05 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.