ice1724 M-Audio Revolution 5.1 support?
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
alsa_setup(): Sample format not available for playback: Invalid argument
thanks...
--
"Se oli kuin noituutta: Ei pystytty käsittämään, kuinka suurmiehiäkin Gleb ivallaan sai itkemään! Mursi muutamalla sanalla: lause tai kaksi! Häntä alettiin kutsua teurastajaksi. " - YUP
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
At Mon, 17 Oct 2005 22:21:56 +0300,
Quoted 9 lines · Ville Herva
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
alsa_setup(): Sample format not available for playback: Invalid argument
If you used "hw" PCM, the above is no fatal error. ICE1724 supports only 32bit format. For playing 16bit or other formats, you have to convert it via plug layer. For example,
% aplay -Dplughw foo.wav
But, the default configuration is already like above, so even just "aplay foo.wav" should work.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Quoted 10 lines · you [Ville Herva]
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
alsa_setup(): Sample format not available for playback: Invalid argumentthanks...
Well, duh, I forgot to attach the patch.
Here it is.
ice1724.c renamed from ice1724.c~ +1 -0
@@ -56,6 +56,7 @@ MODULE_DESCRIPTION("VIA ICEnsemble ICE17MODULE_LICENSE ("GPL" );MODULE_SUPPORTED_DEVICE ("{" REVO_DEVICE_DESC +REVO51_DEVICE_DESC AMP_AUDIO2000_DEVICE_DESC AUREON_DEVICE_DESC VT1720_MOBO_DEVICE_DESC
revo.c renamed from revo.c~ +6 -0
@@ -150,6 +150,10 @@ static int __devinit revo_init(ice1712_t ice->num_total_dacs =8 ; ice->num_total_adcs =2 ;break ; +case VT1724_SUBDEVICE_REVOLUTION51 : + ice->num_total_dacs =6 ; + ice->num_total_adcs =2 ; +break ;default :snd_BUG ();return -EINVAL ;
@@ -164,6 +168,7 @@ static int __devinit revo_init(ice1712_t ice->akm_codecs =2 ;switch (ice->eeprom.subvendor) {case VT1724_SUBDEVICE_REVOLUTION71 : +case VT1724_SUBDEVICE_REVOLUTION51 :if ((err =snd_ice1712_akm4xxx_init (ak, &akm_revo_front, &akm_revo_front_priv, ice)) <0 )return err;if ((err =snd_ice1712_akm4xxx_init (ak +1 , &akm_revo_surround, &akm_revo_surround_priv, ice)) <0 )
@@ -185,6 +190,7 @@ static int __devinit revo_add_controls(iswitch (ice->eeprom.subvendor) {case VT1724_SUBDEVICE_REVOLUTION71 : +case VT1724_SUBDEVICE_REVOLUTION51 : err =snd_ice1712_akm4xxx_build_controls (ice);if (err <0 )return err;
revo.h renamed from revo.h~ +3 -0
@@ -26,8 +26,11 @@#define REVO_DEVICE_DESC \ "{MidiMan M Audio,Revolution 7.1}," +#define REVO51_DEVICE_DESC \ + "{MidiMan M Audio,Revolution 5.1},"#define VT1724_SUBDEVICE_REVOLUTION71 0x12143036 +#define VT1724_SUBDEVICE_REVOLUTION51 0x12143136/* entry point */ extern struct snd_ice1712_card_info snd_vt1724_revo_cards[];
At Tue, 18 Oct 2005 12:31:39 +0300,
Quoted 9 lines · Ville Herva
Quoted 7 lines · you [Ville Herva]
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
Quoted 5 lines
Quoted 3 lines
alsa_setup(): Sample format not available for playback: Invalid argumentthanks...
Well, duh, I forgot to attach the patch.
BTW, I suspect 5.1 has the same codec chips as 7.1.
Revo 7.1 has AK4381 and AK4355, the former is for front output and the latter is for the rest 6 channels. On Revo 5.1, it might be a single chip supporting all 6 channels. So, you should check it at first. Just take a look at your board precisely.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Quoted 11 lines · you [Takashi Iwai]
At Mon, 17 Oct 2005 22:21:56 +0300,
Quoted 9 lines · Ville Herva
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
alsa_setup(): Sample format not available for playback: Invalid argument
(That error was from xmms)
Quoted 8 lines
If you used "hw" PCM, the above is no fatal error. ICE1724 supports only 32bit format. For playing 16bit or other formats, you have to convert it via plug layer. For example,
% aplay -Dplughw foo.wav
But, the default configuration is already like above, so even just "aplay foo.wav" should work.
I'm not at the computer that has the card so I can't verify I get sound, but at least the aplay command above does not give an error :).
Any idea how I should configure xmms to do the same? There are three MAudio devices in the ALSA settings tab in xmms, and every one of them gives the error above.
Thanks!
-- v --
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Quoted 12 lines · you [Takashi Iwai]
At Mon, 17 Oct 2005 22:21:56 +0300,
Quoted 9 lines · Ville Herva
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
alsa_setup(): Sample format not available for playback: Invalid argument
Quoted 8 lines
If you used "hw" PCM, the above is no fatal error. ICE1724 supports only 32bit format. For playing 16bit or other formats, you have to convert it via plug layer. For example,
% aplay -Dplughw foo.wav
But, the default configuration is already like above, so even just "aplay foo.wav" should work.
Well, I can get sound out of the device, but no matter what I try, I only get seriously distorded sound. And the volume setting (I'm using headphone output) doesn't work at all.
I'm trying
aplay -Dpcm.dsp0 test.wav
and I have this in my .asoundrc:
pcm.mix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0" # you cannot use a "plug" device here, darn.
period_time 0
period_size 512
buffer_size 4096
format S32_LE
}
}pcm.dsp0 {
type plug
slave.pcm "mix"
}
But I've tried a bunch of other setting none of which seemed to make different. Among others I tried:
pcm.ice1724 {
type hw
card 0
}
ctl.ice1724 {
type hw
card 0
}
pcm_slave.ice1724_S32_LE {
pcm ice1724
format S32_LE
}pcm.ice1724_convert {
type plug
slave ice1724_S32_LE
}and
aplay -Dpcm.ice1724_convert test.wav
But at least I'm getting sound out of the device :)
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Quoted 15 lines · you [Takashi Iwai]
At Tue, 18 Oct 2005 12:31:39 +0300,
Quoted 13 lines · Ville Herva
Quoted 10 lines · you [Ville Herva]
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
alsa_setup(): Sample format not available for playback: Invalid argumentthanks...
Quoted 8 lines
Quoted 1 line
Well, duh, I forgot to attach the patch.
BTW, I suspect 5.1 has the same codec chips as 7.1.
Revo 7.1 has AK4381 and AK4355, the former is for front output and the latter is for the rest 6 channels. On Revo 5.1, it might be a single chip supporting all 6 channels. So, you should check it at first. Just take a look at your board precisely.
It appears the 5.1 has a different DAC:
Controller IC
Revo 7.1 - VIA Envy24HT - 24-bit/196 kHz I/O for analog and digital Revo 5.1 - VIA Envy24GT - 24-bit/192 kHz for digital, 24-bit/96 kHz for analog
DAC
Revo 7.1 - AKM AK4381, AK4355 (108/106 dB signal-to-noise ratio, 24-bit/192 kHz playback) Revo 5.1 - AKM AK4358 (112 dB signal-to-noise ratio, 24-bit/96 kHz playback)
ADC
Revo 7.1 - AKM AK5380 (100 dB signal-to-noise ratio, 24-bit/96 kHz recording) Revo 5.1 - AKM AK5365 (103 dB signal-to-noise ratio, 24-bit/96 kHz recording, fixed to 48 kHz)
Still with the stupid patch I posted, I do get some (distorted) sound.
I wonder if it would be hard to properly support AK4358...?
-- v --
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
At Wed, 19 Oct 2005 21:49:36 +0300,
Quoted 26 lines · Ville Herva
Quoted 15 lines · you [Takashi Iwai]
At Tue, 18 Oct 2005 12:31:39 +0300,
Quoted 13 lines · Ville Herva
Quoted 10 lines · you [Ville Herva]
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
alsa_setup(): Sample format not available for playback: Invalid argumentthanks...
Quoted 8 lines
Quoted 1 line
Well, duh, I forgot to attach the patch.
BTW, I suspect 5.1 has the same codec chips as 7.1.
Revo 7.1 has AK4381 and AK4355, the former is for front output and the latter is for the rest 6 channels. On Revo 5.1, it might be a single chip supporting all 6 channels. So, you should check it at first. Just take a look at your board precisely.
Quoted 5 lines
It appears the 5.1 has a different DAC:
Controller IC
Revo 7.1 - VIA Envy24HT - 24-bit/196 kHz I/O for analog and digital Revo 5.1 - VIA Envy24GT - 24-bit/192 kHz for digital, 24-bit/96 kHz for analog
Oh, another model? Sigh...
Quoted 11 lines
DAC
Revo 7.1 - AKM AK4381, AK4355 (108/106 dB signal-to-noise ratio, 24-bit/192 kHz playback) Revo 5.1 - AKM AK4358 (112 dB signal-to-noise ratio, 24-bit/96 kHz playback)ADC
Revo 7.1 - AKM AK5380 (100 dB signal-to-noise ratio, 24-bit/96 kHz recording) Revo 5.1 - AKM AK5365 (103 dB signal-to-noise ratio, 24-bit/96 kHz recording, fixed to 48 kHz)Still with the stupid patch I posted, I do get some (distorted) sound.
I wonder if it would be hard to properly support AK4358...?
AK4358 is already supported (Juli uses it).
If the communication protocol is as same as revo 7.1, it wouldn't be too difficlt to implement. But chechking the communication protocol _is_ the most important thing.
You can do a trial-and-error, or check the pin connection between ICE1724 and the codec chip.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Quoted 8 lines · you [Takashi Iwai]
AK4358 is already supported (Juli uses it).
If the communication protocol is as same as revo 7.1, it wouldn't be too difficlt to implement. But chechking the communication protocol _is_ the most important thing.You can do a trial-and-error, or check the pin connection between ICE1724 and the codec chip.
With the attached (stupid, clueless) patch, I still get the same distorted sound, so I guess the communication protocol is different :(.
-- v --
ice1724.c renamed from ice1724.c.ORIG +6 -6
@@ -389,7 +389,7 @@ static int get_max_rate(ice1712_t *ice) {if (ice->eeprom.data[ICE_EEP2_ACLINK ] &VT1724_CFG_PRO_I2S ) {if ((ice->eeprom.data[ICE_EEP2_I2S ] &0x08 ) && !ice->vt1720) -return 192000 ; +return 96000 ;else return 96000 ; }else
@@ -657,9 +657,9 @@ static snd_pcm_hardware_t snd_vt1724_plaSNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_SYNC_START), .formats = SNDRV_PCM_FMTBIT_S32_LE, - .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_192000, + .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_96000, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 96000, .channels_min = 2, .channels_max = 8, .buffer_bytes_max = (1UL << 21), /* 19bits dword */
@@ -695,9 +695,9 @@ static snd_pcm_hardware_t snd_vt1724_2chSNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_SYNC_START), .formats = SNDRV_PCM_FMTBIT_S32_LE, - .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_192000, + .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_96000, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 96000, .channels_min = 2, .channels_max = 2, .buffer_bytes_max = (1UL << 18), /* 16bits dword */
@@ -724,7 +724,7 @@ static int set_rate_constraints(ice1712_/* I2S */ /* VT1720 doesn't support more than 96kHz */ if ((ice->eeprom.data[ICE_EEP2_I2S ] &0x08 ) && !ice->vt1720) -return snd_pcm_hw_constraint_list (runtime,0 ,SNDRV_PCM_HW_PARAM_RATE , &hw_constraints_rates_192); +return snd_pcm_hw_constraint_list (runtime,0 ,SNDRV_PCM_HW_PARAM_RATE , &hw_constraints_rates_96);else { runtime->hw.rates =SNDRV_PCM_RATE_KNOT |SNDRV_PCM_RATE_8000_96000 ; runtime->hw.rate_max =96000 ;
revo.c renamed from revo.c.ORIG +33 -0
@@ -64,6 +64,9 @@ static void revo_set_rate_val(akm4xxx_tif (ak->type ==SND_AK4355 ) { reg =2 ; shift =4 ; + }else if (ak->type ==SND_AK4358 ) { + reg =2 ; + shift =4 ; }else { reg =1 ; shift =3 ;
@@ -107,6 +110,14 @@ static struct snd_ak4xxx_private akm_rev .mask_flags = 0, }; +static akm4xxx_t akm_revo51_front__devinitdata = { + .type =SND_AK4358 , + .num_dacs =2 , + .ops = { + .set_rate_val = revo_set_rate_val + } +}; +static akm4xxx_t akm_revo_surround__devinitdata = { .type =SND_AK4355 , .idx_offset =1 ,
@@ -116,6 +127,15 @@ static akm4xxx_t akm_revo_surround __dev } }; +static akm4xxx_t akm_revo51_surround__devinitdata = { + .type =SND_AK4358 , + .idx_offset =1 , + .num_dacs =4 , + .ops = { + .set_rate_val = revo_set_rate_val + } +}; +static struct snd_ak4xxx_private akm_revo_surround_priv__devinitdata = { .caddr =3 , .cif =0 ,
@@ -150,6 +170,10 @@ static int __devinit revo_init(ice1712_t ice->num_total_dacs =8 ; ice->num_total_adcs =2 ;break ; +case VT1724_SUBDEVICE_REVOLUTION51 : + ice->num_total_dacs =6 ; + ice->num_total_adcs =2 ; +break ;default :snd_BUG ();return -EINVAL ;
@@ -163,6 +187,14 @@ static int __devinit revo_init(ice1712_treturn -ENOMEM ; ice->akm_codecs =2 ;switch (ice->eeprom.subvendor) { +case VT1724_SUBDEVICE_REVOLUTION51 : +if ((err =snd_ice1712_akm4xxx_init (ak, &akm_revo51_front, &akm_revo_front_priv, ice)) <0 ) +return err; +if ((err =snd_ice1712_akm4xxx_init (ak +1 , &akm_revo51_surround, &akm_revo_surround_priv, ice)) <0 ) +return err; +/* unmute all codecs */ +snd_ice1712_gpio_write_bits (ice,VT1724_REVO_MUTE ,VT1724_REVO_MUTE ); +break ;case VT1724_SUBDEVICE_REVOLUTION71 :if ((err =snd_ice1712_akm4xxx_init (ak, &akm_revo_front, &akm_revo_front_priv, ice)) <0 )return err;
@@ -185,6 +217,7 @@ static int __devinit revo_add_controls(iswitch (ice->eeprom.subvendor) {case VT1724_SUBDEVICE_REVOLUTION71 : +case VT1724_SUBDEVICE_REVOLUTION51 : err =snd_ice1712_akm4xxx_build_controls (ice);if (err <0 )return err;
revo.h renamed from revo.h.ORIG +3 -0
@@ -26,8 +26,11 @@#define REVO_DEVICE_DESC \ "{MidiMan M Audio,Revolution 7.1}," +#define REVO51_DEVICE_DESC \ + "{MidiMan M Audio,Revolution 5.1},"#define VT1724_SUBDEVICE_REVOLUTION71 0x12143036 +#define VT1724_SUBDEVICE_REVOLUTION51 0x12143136/* entry point */ extern struct snd_ice1712_card_info snd_vt1724_revo_cards[];
Quoted 7 lines · you [Ville Herva]
Quoted 6 lines · you [Takashi Iwai]
AK4358 is already supported (Juli uses it).
If the communication protocol is as same as revo 7.1, it wouldn't be too difficlt to implement. But chechking the communication protocol _is_ the most important thing.
Quoted 5 lines
Quoted 2 lines
You can do a trial-and-error, or check the pin connection between ICE1724 and the codec chip.
With the attached (stupid, clueless) patch, I still get the same distorted sound, so I guess the communication protocol is different :(.
I must admit I'm so clueless that I really don't know how to properly check "if the communication protocon is different", and it it is, how to proceed from here...
Care to give me any clues? Do we have any hope to get M-Audio Revolution 5.1 working under ALSA?
Quoted 125 lines
ice1724.c renamed from ice1724.c.ORIG +6
-6@@ -389,7 +389,7 @@ static int get_max_rate(ice1712_t *ice) {if (ice->eeprom.data[ICE_EEP2_ACLINK ] &VT1724_CFG_PRO_I2S ) {if ((ice->eeprom.data[ICE_EEP2_I2S ] &0x08 ) && !ice->vt1720) -return 192000 ; +return 96000 ;else return 96000 ; }else @@ -657,9 +657,9 @@ static snd_pcm_hardware_t snd_vt1724_plaSNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_SYNC_START), .formats = SNDRV_PCM_FMTBIT_S32_LE, - .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_192000, + .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_96000, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 96000, .channels_min = 2, .channels_max = 8, .buffer_bytes_max = (1UL << 21), /* 19bits dword */@@ -695,9 +695,9 @@ static snd_pcm_hardware_t snd_vt1724_2chSNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_SYNC_START), .formats = SNDRV_PCM_FMTBIT_S32_LE, - .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_192000, + .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_96000, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 96000, .channels_min = 2, .channels_max = 2, .buffer_bytes_max = (1UL << 18), /* 16bits dword */@@ -724,7 +724,7 @@ static int set_rate_constraints(ice1712_/* I2S */ /* VT1720 doesn't support more than 96kHz */ if ((ice->eeprom.data[ICE_EEP2_I2S ] &0x08 ) && !ice->vt1720) -return snd_pcm_hw_constraint_list (runtime,0 ,SNDRV_PCM_HW_PARAM_RATE , &hw_constraints_rates_192); +return snd_pcm_hw_constraint_list (runtime,0 ,SNDRV_PCM_HW_PARAM_RATE , &hw_constraints_rates_96);else { runtime->hw.rates =SNDRV_PCM_RATE_KNOT |SNDRV_PCM_RATE_8000_96000 ; runtime->hw.rate_max =96000 ;revo.c renamed from revo.c.ORIG +33
-0@@ -64,6 +64,9 @@ static void revo_set_rate_val(akm4xxx_tif (ak->type ==SND_AK4355 ) { reg =2 ; shift =4 ; + }else if (ak->type ==SND_AK4358 ) { + reg =2 ; + shift =4 ; }else { reg =1 ; shift =3 ;@@ -107,6 +110,14 @@ static struct snd_ak4xxx_private akm_rev .mask_flags = 0, }; +static akm4xxx_t akm_revo51_front__devinitdata = { + .type =SND_AK4358 , + .num_dacs =2 , + .ops = { + .set_rate_val = revo_set_rate_val + } +}; +static akm4xxx_t akm_revo_surround__devinitdata = { .type =SND_AK4355 , .idx_offset =1 ,@@ -116,6 +127,15 @@ static akm4xxx_t akm_revo_surround __dev } }; +static akm4xxx_t akm_revo51_surround__devinitdata = { + .type =SND_AK4358 , + .idx_offset =1 , + .num_dacs =4 , + .ops = { + .set_rate_val = revo_set_rate_val + } +}; +static struct snd_ak4xxx_private akm_revo_surround_priv__devinitdata = { .caddr =3 , .cif =0 ,@@ -150,6 +170,10 @@ static int __devinit revo_init(ice1712_t ice->num_total_dacs =8 ; ice->num_total_adcs =2 ;break ; +case VT1724_SUBDEVICE_REVOLUTION51 : + ice->num_total_dacs =6 ; + ice->num_total_adcs =2 ; +break ;default :snd_BUG ();return -EINVAL ;@@ -163,6 +187,14 @@ static int __devinit revo_init(ice1712_treturn -ENOMEM ; ice->akm_codecs =2 ;switch (ice->eeprom.subvendor) { +case VT1724_SUBDEVICE_REVOLUTION51 : +if ((err =snd_ice1712_akm4xxx_init (ak, &akm_revo51_front, &akm_revo_front_priv, ice)) <0 ) +return err; +if ((err =snd_ice1712_akm4xxx_init (ak +1 , &akm_revo51_surround, &akm_revo_surround_priv, ice)) <0 ) +return err; +/* unmute all codecs */ +snd_ice1712_gpio_write_bits (ice,VT1724_REVO_MUTE ,VT1724_REVO_MUTE ); +break ;case VT1724_SUBDEVICE_REVOLUTION71 :if ((err =snd_ice1712_akm4xxx_init (ak, &akm_revo_front, &akm_revo_front_priv, ice)) <0 )return err;@@ -185,6 +217,7 @@ static int __devinit revo_add_controls(iswitch (ice->eeprom.subvendor) {case VT1724_SUBDEVICE_REVOLUTION71 : +case VT1724_SUBDEVICE_REVOLUTION51 : err =snd_ice1712_akm4xxx_build_controls (ice);if (err <0 )return err;revo.h renamed from revo.h.ORIG +0
-0@@ -26,8 +26,11 @@
revo.h line 36
Quoted 10 lines
revo.h renamed from revo.h.ORIG +3
-0#define REVO_DEVICE_DESC \ "{MidiMan M Audio,Revolution 7.1}," +#define REVO51_DEVICE_DESC \ + "{MidiMan M Audio,Revolution 5.1},"#define VT1724_SUBDEVICE_REVOLUTION71 0x12143036 +#define VT1724_SUBDEVICE_REVOLUTION51 0x12143136/* entry point */ extern struct snd_ice1712_card_info snd_vt1724_revo_cards[];
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Quoted 49 lines · you [Takashi Iwai]
At Wed, 19 Oct 2005 21:49:36 +0300,
Quoted 26 lines · Ville Herva
Quoted 15 lines · you [Takashi Iwai]
At Tue, 18 Oct 2005 12:31:39 +0300,
Quoted 13 lines · Ville Herva
Quoted 10 lines · you [Ville Herva]
Hi,
is support for M-Audio Revolution 5.1 planned? It appears quite similar to 7.1. I tried the monkey-see-monkey-do approach, and simply added the device ID to the driver (see the attached patch against 2.6.14-rc4), but that doesn't quite work - I get
alsa_setup(): Sample format not available for playback: Invalid argumentthanks...
Quoted 8 lines
Quoted 1 line
Well, duh, I forgot to attach the patch.
BTW, I suspect 5.1 has the same codec chips as 7.1.
Revo 7.1 has AK4381 and AK4355, the former is for front output and the latter is for the rest 6 channels. On Revo 5.1, it might be a single chip supporting all 6 channels. So, you should check it at first. Just take a look at your board precisely.
Quoted 5 lines
It appears the 5.1 has a different DAC:
Controller IC
Revo 7.1 - VIA Envy24HT - 24-bit/196 kHz I/O for analog and digital Revo 5.1 - VIA Envy24GT - 24-bit/192 kHz for digital, 24-bit/96 kHz for analogOh, another model? Sigh...
Quoted 11 lines
DAC
Revo 7.1 - AKM AK4381, AK4355 (108/106 dB signal-to-noise ratio, 24-bit/192 kHz playback) Revo 5.1 - AKM AK4358 (112 dB signal-to-noise ratio, 24-bit/96 kHz playback)ADC
Revo 7.1 - AKM AK5380 (100 dB signal-to-noise ratio, 24-bit/96 kHz recording) Revo 5.1 - AKM AK5365 (103 dB signal-to-noise ratio, 24-bit/96 kHz recording, fixed to 48 kHz)Still with the stupid patch I posted, I do get some (distorted) sound.
I wonder if it would be hard to properly support AK4358...?
Quoted 7 lines
AK4358 is already supported (Juli uses it).
If the communication protocol is as same as revo 7.1, it wouldn't be too difficlt to implement. But chechking the communication protocol _is_ the most important thing.You can do a trial-and-error, or check the pin connection between ICE1724 and the codec chip.
I noticed you had added support for Revolution 5.1 in alsa-1.0.11rc1. Basically, it seems to work great. Thanks!
I have one problem still. When I try to configure sw mixer for revo51, the sound badly stutters no matter what asounrc variation I try. The secondary sound device (i815 audio) does not have this problem: sw mixer sound is perfect.
Any idea what might be wrong?
revo51 --8<----------------------------------------------------------------------- pcm.ice1724 {
type hw
card 0
}
ctl.ice1724 {
type hw
card 0
}
pcm_slave.ice1724_S32_LE {
pcm ice1724
format S32_LE
}pcm.ice1724_convert {
type plug
slave ice1724_S32_LE
}pcm.swmix {
type dmix
ipc_key 1235
slave
{
pcm ice1724
format S32_LE
period_time 0
period_size 1024
buffer_size 32000
}
} --8<-----------------------------------------------------------------------
i815 --8<-----------------------------------------------------------------------
pcm.swmix2 {
type dmix
ipc_key 1234
slave {
pcm "hw:1,0"
period_time 0
period_size 1024
buffer_size 32000
rate 44100
}
} --8<-----------------------------------------------------------------------
-- v --
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click