Skip to contentSkip to conversation

Rates for the Revolution 7.1 card (ICE1724 chip)

DISCUSSION Tom Watson 2 participants 2 messages Oct 5, 2005 – Oct 6, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Tom Watson

author
#1 lore raw
Quoted 20 lines · --- Takashi Iwai

At Tue, 4 Oct 2005 15:18:36 -0700 (PDT),

Quoted 2 lines · Tom Watson

In my musings, I have found that the M-Audio Revolution 7.1 card seems to

only

Quoted 10 lines

support the following rates:
32000, 44100, 48000, 64000, 88200, 96000, 176400, and 19200. These rates are from a small program I wrote using the "snd_pcm_hw_params_test_rate" routine, iterating by one from 1 to 192000. This is in contrast to the mixer control "Multi Track Internal Clock" (as shown on 'alsamixer' that indicates the following additional rates:
8000, 9600, 11025, 12000, 16000, 22050, and 24000.

What could be the reason for this mismatch? Shouldn't they be the same? Is this a bug?

Internally ice1724 chip supports all the rates above while the codec chip on revo 7.1 supports 32kHz or more. The "Multi Track" control is provided for the internal chip control.

Quoted 5 lines

It doesn't make sense to the unsupported value, though, except for debugging/experimental use.

Takashi

It seems that the codecs support the rates as well. I did some experimenting and added the rates to the code in the 'revo.c' part of the driver:

static unsigned int rates[] = {
        /* Line added below */
        8000, 9600, 11025, 12000, 16000, 22050, 24000,
        32000, 44100, 48000, 64000, 88200, 96000,
        176400, 192000,
};

This seemed to accomidate my sound file that was sampled (8 bits, but not revelant here) at 11025. I could very easily use aplay:

$ aplay -D plug:front soundfile.wav
And all worked just fine.  Then I tired to make it come out the rear channels
by using:
$ aplay -D plug:rear soundfile.wav
And something "really wierd" happened.  The first 1/2 second or so was PERFECT,
then it went into some noise.  While I understand that this is obviously not
supported (even the Revolution documentation on their web site says rates start
at 32000), could this be something more serious?

As a test, I made a 4 channel copy of the wav file (duplicating the samples over all 4 channels) and used 'aplay' to play the file thru device "plug:surround40" and it works "just fine" and comes out all 4 speakers.

The "noise" problem doesn't appear when the "plug:rear" device up samples from 11025 to 44100 which it did before I added the additional rates as described above. Maybe there is a more serious problem. I don't know!

Signature · 14 lines
Tom Watson
[email protected]


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
#2 lore raw

At Wed, 5 Oct 2005 16:34:47 -0700 (PDT),

Quoted 41 lines · Tom Watson
Quoted 20 lines · --- Takashi Iwai

At Tue, 4 Oct 2005 15:18:36 -0700 (PDT),

Quoted 2 lines · Tom Watson

In my musings, I have found that the M-Audio Revolution 7.1 card seems to

only

Quoted 10 lines

support the following rates:
32000, 44100, 48000, 64000, 88200, 96000, 176400, and 19200. These rates are from a small program I wrote using the "snd_pcm_hw_params_test_rate" routine, iterating by one from 1 to 192000. This is in contrast to the mixer control "Multi Track Internal Clock" (as shown on 'alsamixer' that indicates the following additional rates:
8000, 9600, 11025, 12000, 16000, 22050, and 24000.

What could be the reason for this mismatch? Shouldn't they be the same? Is this a bug?

Internally ice1724 chip supports all the rates above while the codec chip on revo 7.1 supports 32kHz or more. The "Multi Track" control is provided for the internal chip control.

Quoted 5 lines

It doesn't make sense to the unsupported value, though, except for debugging/experimental use.

Takashi

It seems that the codecs support the rates as well. I did some experimenting and added the rates to the code in the 'revo.c' part of the driver:

static unsigned int rates[] = {
        /* Line added below */
        8000, 9600, 11025, 12000, 16000, 22050, 24000,
        32000, 44100, 48000, 64000, 88200, 96000,
        176400, 192000,
};

This seemed to accomidate my sound file that was sampled (8 bits, but not revelant here) at 11025. I could very easily use aplay:

Quoted 8 lines
$ aplay -D plug:front soundfile.wav
And all worked just fine.  Then I tired to make it come out the rear channels
by using:
$ aplay -D plug:rear soundfile.wav
And something "really wierd" happened.  The first 1/2 second or so was PERFECT,
then it went into some noise.  While I understand that this is obviously not
supported (even the Revolution documentation on their web site says rates start
at 32000), could this be something more serious?

You seem right. I took a look at AK4381/4355 datasheet again, and found out that it supports 8-192kHz.
Then let's get rid of the restriction.

Thanks,

Takashi

Index: alsa-kernel/pci/ice1712/revo.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ice1712/revo.c,v retrieving revision 1.11

pci/ice1712/revo.c +0 -13
diff -u -r1.11 revo.c
@@ -128,17 +128,6 @@
 	.mask_flags = 0,
 };
 
-static unsigned int rates[] = {
-	32000, 44100, 48000, 64000, 88200, 96000,
-	176400, 192000,
-};
-
-static snd_pcm_hw_constraint_list_t revo_rates = {
-	.count = ARRAY_SIZE(rates),
-	.list = rates,
-	.mask = 0,
-};
-
 static int __devinit revo_init(ice1712_t *ice)
 {
 	akm4xxx_t *ak;
@@ -173,8 +162,6 @@
 		break;
 	}
 
-	ice->hw_rates = &revo_rates; /* AK codecs don't support lower than 32k */
-
 	return 0;
 }
 

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl