[alsa-cvslog] CVS: alsa-kernel/pci/ymfpci ymfpci.c,1.29,1.30

2003-10-25 Thread Takashi Iwai
Update of /cvsroot/alsa/alsa-kernel/pci/ymfpci
In directory sc8-pr-cvs1:/tmp/cvs-serv13252/pci/ymfpci

Modified Files:
ymfpci.c 
Log Message:
added auto-detection of joystick port.


Index: ymfpci.c
===
RCS file: /cvsroot/alsa/alsa-kernel/pci/ymfpci/ymfpci.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- ymfpci.c14 Oct 2003 13:59:21 -  1.29
+++ ymfpci.c24 Oct 2003 13:42:41 -  1.30
@@ -145,10 +145,10 @@
pci_write_config_word(pci, PCIR_DSXG_MPU401BASE, 
mpu_port[dev]);
}
 #ifdef SUPPORT_JOYSTICK
-   if (joystick_port[dev] < 0) {
+   if (joystick_port[dev] == 1) {
joystick_port[dev] = pci_resource_start(pci, 2);
}
-   if (joystick_port[dev] >= 0 &&
+   if (joystick_port[dev] > 0 &&
(joystick_res = request_region(joystick_port[dev], 1, "YMFPCI 
gameport")) != NULL) {
legacy_ctrl |= YMFPCI_LEGACY_JPEN;
pci_write_config_word(pci, PCIR_DSXG_JOYBASE, 
joystick_port[dev]);
@@ -184,15 +184,28 @@
mpu_port[dev] = -1;
}
 #ifdef SUPPORT_JOYSTICK
-   switch (joystick_port[dev]) {
-   case 0x201: legacy_ctrl2 |= 0 << 6; break;
-   case 0x202: legacy_ctrl2 |= 1 << 6; break;
-   case 0x204: legacy_ctrl2 |= 2 << 6; break;
-   case 0x205: legacy_ctrl2 |= 3 << 6; break;
-   default: joystick_port[dev] = -1; break;
+   if (joystick_port[dev] == 1) {
+   /* auto-detect */
+   long p;
+   for (p = 0x201; p <= 0x205; p++) {
+   if (p == 0x203) continue;
+   if ((joystick_res = request_region(p, 1, "YMFPCI 
gameport")) != NULL)
+   break;
+   }
+   if (joystick_res)
+   joystick_port[dev] = p;
+   } else {
+   switch (joystick_port[dev]) {
+   case 0x201: legacy_ctrl2 |= 0 << 6; break;
+   case 0x202: legacy_ctrl2 |= 1 << 6; break;
+   case 0x204: legacy_ctrl2 |= 2 << 6; break;
+   case 0x205: legacy_ctrl2 |= 3 << 6; break;
+   default: joystick_port[dev] = -1; break;
+   }
+   if (joystick_port[dev] > 0)
+   joystick_res = request_region(joystick_port[dev], 1, 
"YMFPCI gameport");
}
-   if (joystick_port[dev] > 0 &&
-   (joystick_res = request_region(joystick_port[dev], 1, "YMFPCI 
gameport")) != NULL) {
+   if (joystick_res) {
legacy_ctrl |= YMFPCI_LEGACY_JPEN;
} else {
legacy_ctrl2 &= ~YMFPCI_LEGACY2_JSIO;



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog


[alsa-cvslog] CVS: alsa-kernel/pci/korg1212 korg1212.c,1.32,1.33

2003-10-25 Thread Jaroslav Kysela
Update of /cvsroot/alsa/alsa-kernel/pci/korg1212
In directory sc8-pr-cvs1:/tmp/cvs-serv3064/alsa-kernel/pci/korg1212

Modified Files:
korg1212.c 
Log Message:
- AC97 code
  - introduced ac97_bus_t structure
  - moved attached codecs to /proc/asound/card?/codec97#? directory
  - merged snd_ac97_modem() to snd_ac97_mixer()
- proc cleanups - removed already initialized variables
- enhanced snd_info_set_text_ops() syntax


Index: korg1212.c
===
RCS file: /cvsroot/alsa/alsa-kernel/pci/korg1212/korg1212.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- korg1212.c  12 Aug 2003 14:10:16 -  1.32
+++ korg1212.c  23 Oct 2003 14:34:53 -  1.33
@@ -2093,7 +2093,7 @@
snd_info_entry_t *entry;
 
if (! snd_card_proc_new(korg1212->card, "korg1212", &entry))
-   snd_info_set_text_ops(entry, korg1212, snd_korg1212_proc_read);
+   snd_info_set_text_ops(entry, korg1212, 1024, snd_korg1212_proc_read);
 }
 
 static int



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog


[alsa-cvslog] CVS: alsa-kernel/Documentation ALSA-Configuration.txt,1.21,1.22 Joystick.txt,1.1,1.2

2003-10-25 Thread Takashi Iwai
Update of /cvsroot/alsa/alsa-kernel/Documentation
In directory sc8-pr-cvs1:/tmp/cvs-serv13252/Documentation

Modified Files:
ALSA-Configuration.txt Joystick.txt 
Log Message:
added auto-detection of joystick port.


Index: ALSA-Configuration.txt
===
RCS file: /cvsroot/alsa/alsa-kernel/Documentation/ALSA-Configuration.txt,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- ALSA-Configuration.txt  14 Oct 2003 13:59:19 -  1.21
+++ ALSA-Configuration.txt  24 Oct 2003 13:42:41 -  1.22
@@ -173,7 +173,7 @@
 Module for soundcards based on Avance Logic ALS4000 PCI chip.
 
 joystick_port - port # for legacy joystick support.
-0 = disabled (default)
+0 = disabled (default), 1 = auto-detect
 
 Module supports up to 8 cards, autoprobe and PnP.
 
@@ -390,7 +390,7 @@
* SoundBlaster Vibra PCI
 
 joystick_port  - port # for joystick (0x200,0x208,0x210,0x218),
- 0 = disable (default)
+ 0 = disable (default), 1 = auto-detect
 
 Module supports up to 8 cards and autoprobe.
 
@@ -1124,9 +1124,10 @@
 
 Module for Yamaha PCI chips (YMF72x, YMF74x & YMF75x).
 
-mpu_port  - 0x300,0x330,0x332,0x334, -1 (disable) by default
-fm_port   - 0x388,0x398,0x3a0,0x3a8, -1 (disable) by default
-joystick_port - 0x201,0x202,0x204,0x205, -1 (disable) by default
+mpu_port  - 0x300,0x330,0x332,0x334, 0 (disable) by default
+fm_port   - 0x388,0x398,0x3a0,0x3a8, 0 (disable) by default
+joystick_port - 0x201,0x202,0x204,0x205, 0 (disable) by default,
+1 (auto-detect)
 rear_switch   - enable shared rear/line-in switch (bool)
 
 Module supports autoprobe and multiple chips (max 8).

Index: Joystick.txt
===
RCS file: /cvsroot/alsa/alsa-kernel/Documentation/Joystick.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Joystick.txt14 Oct 2003 13:59:19 -  1.1
+++ Joystick.txt24 Oct 2003 13:42:41 -  1.2
@@ -36,11 +36,13 @@
 
 Driver Module Option   Available Values
 ---
-als4000joystick_port   any address (e.g. 0x200), 0 = disable (default)
+als4000joystick_port   0 = disable (default), 1 = auto-detect,
+manual: any address (e.g. 0x200)
 au88x0 N/A N/A
 azf3328joystick0 = disable, 1 = enable, -1 = auto (default)
 ens1370joystick0 = disable (default), 1 = enable
-ens1371joystick_port   0 = disable (default), 0x200,0x208,0x210,0x218
+ens1371joystick_port   0 = disable (default), 1 = auto-detect,
+manual: 0x200, 0x208, 0x210, 0x218
 cmipci joystick0 = disable (default), 1 = enable
 cs4281 N/A N/A
 cs46xx N/A N/A
@@ -50,13 +52,13 @@
 sonicvibes N/A N/A
 tridentN/A N/A
 via82xx(*2)joystick0 = disable (default), 1 = enable
-ymfpci(*3) joystick_port   0 = disable (default), 0x201,0x202,0x204,0x205
+ymfpci joystick_port   0 = disable (default), 1 = auto-detect,
+manual: 0x201, 0x202, 0x204, 0x205(*3)
 ---
 
 *1)  not all chips support joystick
 *2)  VIA686A/B only
-*3)  With YMF744/754 chips, the port address is chosen automatically
- and enabled by default
+*3)  With YMF744/754 chips, the port address can be chosen arbitrarily
 
 The following drivers don't support gameport natively, but there are
 additional modules.  Load the corresponding module to add the gameport



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog


[alsa-cvslog] CVS: alsa-tools/us428control Cus428Midi.cc,NONE,1.1 Cus428Midi.h,NONE,1.1 Cus428State.cc,1.1,1.2 Cus428State.h,1.1,1.2 Cus428_ctls.cc,1.1,1.2 Cus428_ctls.h,1.1,1.2 Makefile.am,1.1,1.2 configure.in,1.1,1.2 us428control.cc,1.1,1.2 usbus428ctldefs.h,1.1,1.2

2003-10-25 Thread Takashi Iwai
Update of /cvsroot/alsa/alsa-tools/us428control
In directory sc8-pr-cvs1:/tmp/cvs-serv16947

Modified Files:
Cus428State.cc Cus428State.h Cus428_ctls.cc Cus428_ctls.h 
Makefile.am configure.in us428control.cc usbus428ctldefs.h 
Added Files:
Cus428Midi.cc Cus428Midi.h 
Log Message:
Karsten Wiese <[EMAIL PROTECTED]>:

This has more features:
- PCM-Volume adjusted to MasteVolumeSlider setting at device start.
- Direct Monitoring Functions adjustable directly on the US428
- Alsa Sequencer Output port for applications to receive the US428 sliders 
etc.


--- NEW FILE: Cus428Midi.cc ---
#include 
#include "Cus428Midi.h"


char Cus428Midi::KnobParam[] = {
0x17,
0x16,
0x15,
0x14,
0x13,
0x2A,
0x29,
0x28,
-1,
0x10,
0x11,
0x18,
0x19,
0x1A,
-1,
-1,
-1,
-1,
0x2C,
0x2D,
0x2E,
0x2F,
-1,
-1,
0x20,
0x21,
0x22,
0x23,
0x24,
0x25,
0x26,
0x27,
0,
1,
2,
3,
4,
5,
6,
7,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
};

--- NEW FILE: Cus428Midi.h ---
#include 
#include "Cus428State.h"

class Cus428Midi {
 public:
Cus428Midi():
Seq(0){}

int CreatePorts(){
int Err;
if (0 <= (Err = snd_seq_open(&Seq, "default", SND_SEQ_OPEN_DUPLEX, 
SND_SEQ_NONBLOCK))) {
snd_seq_set_client_name(Seq, "US-428");
Err = snd_seq_create_simple_port(Seq, "Controls",
 SNDRV_SEQ_PORT_CAP_READ
 //|SNDRV_SEQ_PORT_CAP_WRITE   
 FIXME: Next Step is to make Lights switchable
 |SNDRV_SEQ_PORT_CAP_SUBS_READ
 
/*|SNDRV_SEQ_PORT_CAP_SUBS_WRITE*/,
 
SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC);
if (Err >= 0) {
Port = Err;
snd_seq_ev_clear(&Ev);
snd_seq_ev_set_direct(&Ev);
snd_seq_ev_set_source(&Ev, Port);
snd_seq_ev_set_subs(&Ev);
}
}
return Err;
}

int SendMidiControl(char Param, char Val){
snd_seq_ev_set_controller(&Ev, 15, Param, Val & 0x7F);
SubMitEvent();
return 0;
} 

int SendMidiControl(Cus428State::eKnobs K, bool Down){
return SendMidiControl(KnobParam[K - Cus428State::eK_RECORD], Down ? 
0x7F : 0);
}

 private:
snd_seq_t *Seq;
int Port;
snd_seq_event_t Ev;
int SubMitEvent(){
snd_seq_event_output(Seq, &Ev);
snd_seq_drain_output(Seq);
return 0;
}
static char KnobParam[];
};

extern Cus428Midi Midi;

Index: Cus428State.cc
===
RCS file: /cvsroot/alsa/alsa-tools/us428control/Cus428State.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Cus428State.cc  6 Oct 2003 15:57:24 -   1.1
+++ Cus428State.cc  24 Oct 2003 14:01:45 -  1.2
@@ -20,12 +20,14 @@
 
 #include 
 #include 
-#include "Cus428State.h"
+#include 
+#include "Cus428Midi.h"
 
 extern int verbose;
 
-void
-us428_lights::init_us428_lights()
+
+
+void us428_lights::init_us428_lights()
 {
int i = 0;
memset(this, 0, sizeof(*this));
@@ -33,8 +35,14 @@
Light[ i].Offset = i + 0x19;
 }
 
-int 
-Cus428State::LightSend()
+
+void Cus428State::InitDevice(void)
+{
+   SliderChangedTo(eFaderM, ((unsigned char*)(us428ctls_sharedmem->CtlSnapShot + 
us428ctls_sharedmem->CtlSnapShotLast))[eFaderM]);
+}
+
+
+int Cus428State::LightSend()
 {
int Next = us428ctls_sharedmem->p4outLast + 1;
if(Next < 0  ||  Next >= N_us428_p4out_BUFS)
@@ -44,14 +52,8 @@
return us428ctls_sharedmem->p4outLast = Next;
 }
 
-void 
-Cus428State::SliderChangedTo(int S, unsigned char New)
+void Cus428State::SendVolume(usX2Y_volume &V)
 {
-   if ((S >= eFader4 || S < 0) && S != eFaderM)
-   return;
-
-   usX2Y_volume V;
-   V.SetTo(S, New);
int Next = us428ctls_sharedmem->p4outLast + 1;
if (Next < 0  ||  Next >= N_us428_p4out_BUFS)
Next = 0;
@@ -60,24 +62,107 @@
us428ctls_sharedmem->p4outLast = Next;
 }
 
+void Cu

[alsa-cvslog] CVS: alsa-kernel/pci/ac97 ac97_codec.c,1.108,1.109

2003-10-25 Thread Takashi Iwai
Update of /cvsroot/alsa/alsa-kernel/pci/ac97
In directory sc8-pr-cvs1:/tmp/cvs-serv13516/pci/ac97

Modified Files:
ac97_codec.c 
Log Message:
fixed the compilation with the recent ac97 and info changes.



Index: ac97_codec.c
===
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -r1.108 -r1.109
--- ac97_codec.c23 Oct 2003 14:34:52 -  1.108
+++ ac97_codec.c24 Oct 2003 13:44:21 -  1.109
@@ -2095,8 +2095,8 @@
}
 __reset_ready:
 
-   if (bus->init)
-   bus->init(ac97);
+   if (ac97->bus->init)
+   ac97->bus->init(ac97);
 
is_ad18xx = (ac97->id & 0xff40) == AC97_ID_AD1881;
if (is_ad18xx) {
@@ -2105,11 +2105,11 @@
if (! ac97->spec.ad18xx.id[codec])
continue;
/* select single codec */
-   ac97->write(ac97, AC97_AD_SERIAL_CFG, 
ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]);
-   ac97->write(ac97, AC97_AD_CODEC_CFG, 
ac97->spec.ad18xx.codec_cfg[codec]);
+   ac97->bus->write(ac97, AC97_AD_SERIAL_CFG, 
ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]);
+   ac97->bus->write(ac97, AC97_AD_CODEC_CFG, 
ac97->spec.ad18xx.codec_cfg[codec]);
}
/* select all codecs */
-   ac97->write(ac97, AC97_AD_SERIAL_CFG, 0x7000);
+   ac97->bus->write(ac97, AC97_AD_SERIAL_CFG, 0x7000);
}
 
/* restore ac97 status */
@@ -2128,12 +2128,12 @@
if (! ac97->spec.ad18xx.id[codec])
continue;
/* select single codec */
-   ac97->write(ac97, AC97_AD_SERIAL_CFG, 
ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]);
+   ac97->bus->write(ac97, 
AC97_AD_SERIAL_CFG, ac97->spec.ad18xx.unchained[codec] | 
ac97->spec.ad18xx.chained[codec]);
/* update PCM bits */
-   ac97->write(ac97, AC97_PCM, 
ac97->spec.ad18xx.pcmreg[codec]);
+   ac97->bus->write(ac97, AC97_PCM, 
ac97->spec.ad18xx.pcmreg[codec]);
}
/* select all codecs */
-   ac97->write(ac97, AC97_AD_SERIAL_CFG, 0x7000);
+   ac97->bus->write(ac97, AC97_AD_SERIAL_CFG, 
0x7000);
continue;
} else if (i == AC97_AD_TEST ||
   i == AC97_AD_CODEC_CFG ||



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog


[alsa-cvslog] CVS: alsa-utils/iecset .cvsignore,NONE,1.1 Makefile.am,NONE,1.1 iecbits.c,NONE,1.1 iecset.1,NONE,1.1 iecset.c,NONE,1.1

2003-10-25 Thread Takashi Iwai
Update of /cvsroot/alsa/alsa-utils/iecset
In directory sc8-pr-cvs1:/tmp/cvs-serv32536/iecset

Added Files:
.cvsignore Makefile.am iecbits.c iecset.1 iecset.c 
Log Message:
- moved iecset from alsa-lib/test.
- added man page.


--- NEW FILE: .cvsignore ---
.deps
iecset
Makefile
Makefile.in

--- NEW FILE: Makefile.am ---
INCLUDES = -I$(top_srcdir)/include
LDADD = -lm
# LDFLAGS = -static
# CFLAGS += -g -Wall

bin_PROGRAMS = iecset
amixer_SOURCES = iecset.c iecbits.c
man_MANS = iecset.1
EXTRA_DIST = iecset.1

--- NEW FILE: iecbits.c ---
/*
   iecdump - dump IEC958 status bits on ALSA
   Copyright (C) 2003 by Takashi Iwai <[EMAIL PROTECTED]>

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2
   of the License, or (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#include 
#include 

struct category_str {
int val;
const char *name;
};

static struct category_str con_category[] = {
{ IEC958_AES1_CON_DAT, "DAT" },
{ IEC958_AES1_CON_VCR, "VCR" },
{ IEC958_AES1_CON_MICROPHONE, "microphone" },
{ IEC958_AES1_CON_SYNTHESIZER, "synthesizer" },
{ IEC958_AES1_CON_RATE_CONVERTER, "rate converter" },
{ IEC958_AES1_CON_MIXER, "mixer" },
{ IEC958_AES1_CON_SAMPLER, "sampler" },
{ IEC958_AES1_CON_PCM_CODER, "PCM coder" },
{ IEC958_AES1_CON_IEC908_CD, "CD" },
{ IEC958_AES1_CON_NON_IEC908_CD, "non-IEC908 CD" },
{ IEC958_AES1_CON_GENERAL, "general" },
};


#define ARRAY_SIZE(x) (int)(sizeof(x)/sizeof(x[0]))

void dump_iec958(snd_aes_iec958_t *iec)
{
int i;

if (! (iec->status[0] & IEC958_AES0_PROFESSIONAL)) {
/* consumer */
printf("Mode: consumer\n");
printf("Data: ");
if (!(iec->status[0] & IEC958_AES0_NONAUDIO)) {
printf("audio\n");
} else {
printf("non-audio\n");
}
printf("Rate: ");
switch (iec->status[3] & IEC958_AES3_CON_FS) {
case IEC958_AES3_CON_FS_44100:
printf("44100 Hz\n");
break;
case IEC958_AES3_CON_FS_48000:
printf("48000 Hz\n");
break;
case IEC958_AES3_CON_FS_32000:
printf("32000 Hz\n");
break;
default:
printf("unknown\n");
break;
}
printf("Copyright: ");
if (iec->status[0] & IEC958_AES0_CON_NOT_COPYRIGHT) {
printf("permitted\n");
} else {
printf("protected\n");
}
printf("Emphasis: ");
if ((iec->status[0] & IEC958_AES0_CON_EMPHASIS) != 
IEC958_AES0_CON_EMPHASIS_5015) {
printf("none\n");
} else {
printf("50/15us\n");
}
printf("Category: ");
for (i = 0; i < ARRAY_SIZE(con_category); i++) {
if ((iec->status[1] & IEC958_AES1_CON_CATEGORY) == 
con_category[i].val) {
printf("%s\n", con_category[i].name);
break;
}
}
if (i >= ARRAY_SIZE(con_category)) {
printf("unknown 0x%x\n", iec->status[1] & 
IEC958_AES1_CON_CATEGORY);
}
printf("Original: ");
if (iec->status[1] & IEC958_AES1_CON_ORIGINAL) {
printf("original\n");
} else {
printf("1st generation\n");
}
printf("Clock: ");
switch (iec->status[3] & IEC958_AES3_CON_CLOCK) {
case IEC958_AES3_CON_CLOCK_1000PPM:
printf("1000 ppm\n");
break;
case IEC958_AES3_CON_CLOCK_50PPM:
printf("50 ppm\n");
break;
case IEC958_AES3_CON_CLOCK_VARIABLE:
printf("variable pitch\n");
break;
default:
printf("unknown\n");
bre

[alsa-cvslog] CVS: alsa-kernel/isa/sb sb16_csp.c,1.11,1.12

2003-10-25 Thread Jaroslav Kysela
Update of /cvsroot/alsa/alsa-kernel/isa/sb
In directory sc8-pr-cvs1:/tmp/cvs-serv3064/alsa-kernel/isa/sb

Modified Files:
sb16_csp.c 
Log Message:
- AC97 code
  - introduced ac97_bus_t structure
  - moved attached codecs to /proc/asound/card?/codec97#? directory
  - merged snd_ac97_modem() to snd_ac97_mixer()
- proc cleanups - removed already initialized variables
- enhanced snd_info_set_text_ops() syntax


Index: sb16_csp.c
===
RCS file: /cvsroot/alsa/alsa-kernel/isa/sb/sb16_csp.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- sb16_csp.c  21 Oct 2003 17:40:14 -  1.11
+++ sb16_csp.c  23 Oct 2003 14:34:52 -  1.12
@@ -1107,7 +1107,7 @@
snd_info_entry_t *entry;
sprintf(name, "cspD%d", device);
if (! snd_card_proc_new(p->chip->card, name, &entry))
-   snd_info_set_text_ops(entry, p, info_read);
+   snd_info_set_text_ops(entry, p, 1024, info_read);
return 0;
 }
 



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog


[alsa-cvslog] CVS: alsa-driver/pcmcia/pdaudiocf pdaudiocf_core.c,1.6,1.7

2003-10-25 Thread Takashi Iwai
Update of /cvsroot/alsa/alsa-driver/pcmcia/pdaudiocf
In directory sc8-pr-cvs1:/tmp/cvs-serv13747/pcmcia/pdaudiocf

Modified Files:
pdaudiocf_core.c 
Log Message:
fixed the compilation with the recent ac97 and info changes.


Index: pdaudiocf_core.c
===
RCS file: /cvsroot/alsa/alsa-driver/pcmcia/pdaudiocf/pdaudiocf_core.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- pdaudiocf_core.c26 Aug 2003 08:20:58 -  1.6
+++ pdaudiocf_core.c24 Oct 2003 13:45:05 -  1.7
@@ -147,7 +147,7 @@
snd_info_entry_t *entry;
 
if (! snd_card_proc_new(chip->card, "pdaudiocf", &entry))
-   snd_info_set_text_ops(entry, chip, pdacf_proc_read);
+   snd_info_set_text_ops(entry, chip, 1024, pdacf_proc_read);
 }
 
 pdacf_t *snd_pdacf_create(snd_card_t *card)



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog