Skip to contentSkip to conversation

standard control names for the rme96

PATCH Daniel Pouzzner 4 participants 6 messages May 11, 2003 – May 21, 2003

lore
Share & tools
lore
#0 lore raw

Did this get resolved? I have an RME96 on which I can test code for you if you still need that done.

Quoted 7 lines
Quoted 6 lines

here is a patch for the Digi96 driver "alsa-kernel/pci/rme96.c" against latest CVS. It will change the "Clock Mode" switch to standard names.

My machine compiles fine with this patch, but I have no rme96 card for trying it out.

Quoted 5 lines

now (nearly a month later):
Do we have today one rme96 user for testing out?

Or is that patch not wanted and everybody would prefer an additional "if" in the control tool code instead of introducing standard names for rme96?

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com

#1 lore raw
Quoted 3 lines · Daniel Pouzzner

Did this get resolved? I have an RME96 on which I can test code for you if you still need that done.

Hi Daniel,

thanks for your reply. This patch is still in a state of "untested". It would be nice if you can try it out. The patched driver should run fine with the graphical frontend
http://www.langerland.de/rme32/rmedigiXXcontrol-0.3.4.tar.gz

The newer version http://www.langerland.de/rme32/rmedigicontrol-0.3.5.tar.gz
has a workaround included and runs only with an unpatched driver. But my preferred solution would be without a workaround... next version...

Martin

BTW: The CVS-Patch for alsa-kernel/pci/rme96.c is attached.

rme96.c.PATCHED renamed from rme96.c +9 -7
@@ -806,10 +806,12 @@
 {
 	switch (mode) {
 	case RME96_CLOCKMODE_SLAVE:
+	        /* AutoSync */ 
 		rme96->wcreg &= ~RME96_WCR_MASTER;
 		rme96->areg &= ~RME96_AR_WSEL;
 		break;
 	case RME96_CLOCKMODE_MASTER:
+	        /* Internal */
 		rme96->wcreg |= RME96_WCR_MASTER;
 		rme96->areg &= ~RME96_AR_WSEL;
 		break;
@@ -1862,15 +1864,15 @@
 		snd_iprintf(buffer, "  sample format: 16 bit\n");
 	}
 	if (rme96->areg & RME96_AR_WSEL) {
-		snd_iprintf(buffer, "  clock mode: word clock\n");
+		snd_iprintf(buffer, "  sample clock source: word clock\n");
 	} else if (rme96->wcreg & RME96_WCR_MASTER) {
-		snd_iprintf(buffer, "  clock mode: master\n");
+		snd_iprintf(buffer, "  sample clock source: internal\n");
 	} else if (snd_rme96_getinputtype(rme96) == RME96_INPUT_ANALOG) {
-		snd_iprintf(buffer, "  clock mode: slave (master anyway due to analog input setting)\n");
+		snd_iprintf(buffer, "  sample clock source: autosync (internal anyway due to analog input setting)\n");
 	} else if (snd_rme96_capture_getrate(rme96, &n) < 0) {
-		snd_iprintf(buffer, "  clock mode: slave (master anyway due to no valid signal)\n");
+		snd_iprintf(buffer, "  sample clock source: autosync (internal anyway due to no valid signal)\n");
 	} else {
-		snd_iprintf(buffer, "  clock mode: slave\n");
+		snd_iprintf(buffer, "  sample clock source: autosync\n");
 	}
 	if (rme96->wcreg & RME96_WCR_PRO) {
 		snd_iprintf(buffer, "  format: AES/EBU (professional)\n");
@@ -2095,7 +2097,7 @@
 static int
 snd_rme96_info_clockmode_control(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo)
 {
-	static char *texts[3] = { "Slave", "Master", "Wordclock" };
+	static char *texts[3] = { "AutoSync", "Internal", "Word" };
 	
 	uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
 	uinfo->count = 1;
@@ -2418,7 +2420,7 @@
 },
 {
         .iface =        SNDRV_CTL_ELEM_IFACE_PCM,
-	.name =         "Clock Mode",
+	.name =         "Sample Clock Source",
 	.info =         snd_rme96_info_clockmode_control, 
 	.get =          snd_rme96_get_clockmode_control,
 	.put =          snd_rme96_put_clockmode_control
#2 lore raw

At Mon, 12 May 2003 01:54:21 +0200,

Quoted 9 lines · Martin Langer

[1 <text/plain; us-ascii (7bit)>]

Quoted 3 lines · Daniel Pouzzner

Did this get resolved? I have an RME96 on which I can test code for you if you still need that done.

Hi Daniel,

Quoted 8 lines

thanks for your reply. This patch is still in a state of "untested". It would be nice if you can try it out. The patched driver should run fine with the graphical frontend
http://www.langerland.de/rme32/rmedigiXXcontrol-0.3.4.tar.gz

The newer version http://www.langerland.de/rme32/rmedigicontrol-0.3.5.tar.gz
has a workaround included and runs only with an unpatched driver. But my preferred solution would be without a workaround... next version...

let me know if it's ok, so that i'll commit it soon.
also rmedigicontrol is a good candidate for alsa-tools. i'll put it together with the patch for rme driver.

Takashi

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com

#3 lore raw

I am looking for Suitable candidate

Hi Developers,

I am looking for candidates who has hands on Linux Kernel and device driver experience with strong ALSA and OSS experience. Would appreciate if you could refer me developer and contact me at the followings.

Thanks,

Jass
Beyond Innovation Inc.
Ph. 408.246.6060
Fax. 408.884.2465
[email protected]

BEGIN:VCARD
VERSION:2.1
N:Singh;Jass
FN:Jass Singh ([email protected])
ORG:Beyond Innovation, Inc.
TITLE:Chief Technology Officer
TEL;WORK;VOICE:(408) 246-6060
TEL;CELL;VOICE:(408) 828-1788
TEL;WORK;FAX:(408) 884-2465
ADR;WORK:;;3386 Vincent Drive, Suite #102;Santa Clara;CA -;95051;United States of America LABEL;WORK;ENCODING=QUOTED-PRINTABLE:3386 Vincent Drive, Suite #102=0D=0ASanta Clara, CA - 95051=0D=0AUnited Stat= es of America
URL;WORK:http://www.bi-usa.biz
EMAIL;PREF;INTERNET:[email protected]
REV:20030306T234322Z
END:VCARD

#4 lore raw
In reply to Takashi Iwai
Quoted 5 lines · Takashi Iwai

let me know if it's ok, so that i'll commit it soon.
also rmedigicontrol is a good candidate for alsa-tools. i'll put it together with the patch for rme driver.

After some patch in, patch out, patch in -- I've made two versions of the same code level:

... and rmedigicontrol-0.3.5a is my tools candidate that depends on the rme96 patch. Usage with rme32 is fine.

bye,
martin

See http://langerland.de/rme32/control.html

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com

#5 lore raw
In reply to Martin Langer

Hi,

any news about this?
does the Martin's patch work for rme96?

if it's ok, i'll include it to cvs version together with rmedigicontrol.

ciao,

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge