* M-Audio Revolution 7.1 card hangups @ 2003-09-10 17:30 Tom Watson 2003-09-10 17:59 ` Takashi Iwai 0 siblings, 1 reply; 7+ messages in thread From: Tom Watson @ 2003-09-10 17:30 UTC (permalink / raw) To: alsa development I just got one of these, and after converting my audio to 32 bits (necessary for the card) I got SOME sound out of it. I have a couple of problems: 1) While the peak meters indicate that something IS there, try as I might, I can't get audio out of the card from anywhere but the first 2 channels. All the mixer controls in 'alsamixer' are up, and the two that control the first 2 channels DO work, but NO audio from the other channels. The program I'm using DID work on another audio card with more than two channels. The problem seems to be some dumb configuration thing. Do I need to light this card up on a Windoze machine to set the EEPROM or something?? 2) I use 'alsamixer'. Works fine. One problem: When I set the conversion rate to the SPDIF clock (it has another name IEC...) IT LOCKS AND STAYS THERE. No amount of diddling in 'alsamixer' yields anything. To get around this I revert back to an older setting (it is a long process) saved with 'alsactl' after a reboot. While I have learned my lesson (DON'T DO THAT!), the behavior is not too good. Note: The card is 'fresh', and hasn't been in a Windows environment (if that means anything). A pointer to the mentioned 'Envy24HT.pdf' file might be useful as well. p.s. Even on 2 channels, the quality seems to be quite good. The problem is that I'd like more than that (preferably 8 channels). Maybe a listing of the EEPROM from a working setup would help. Thanks. ===== -- Tom Watson tsw@johana.com __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: M-Audio Revolution 7.1 card hangups 2003-09-10 17:30 M-Audio Revolution 7.1 card hangups Tom Watson @ 2003-09-10 17:59 ` Takashi Iwai [not found] ` <5.1.0.14.1.20030911083510.03a91120@pop3.infotecna.lcl> 0 siblings, 1 reply; 7+ messages in thread From: Takashi Iwai @ 2003-09-10 17:59 UTC (permalink / raw) To: tsw; +Cc: alsa-devel [-- Attachment #1: Type: text/plain, Size: 1440 bytes --] At Wed, 10 Sep 2003 10:30:25 -0700 (PDT), Tom Watson wrote: > > I just got one of these, and after converting my audio to 32 bits > (necessary for the card) I got SOME sound out of it. > > I have a couple of problems: > 1) While the peak meters indicate that something IS there, try as I > might, I can't get audio out of the card from anywhere but the first 2 > channels. All the mixer controls in 'alsamixer' are up, and the two > that control the first 2 channels DO work, but NO audio from the other > channels. The program I'm using DID work on another audio card with > more than two channels. The problem seems to be some dumb > configuration thing. Do I need to light this card up on a Windoze > machine to set the EEPROM or something?? most likely a bug in the accessing to ak4355 codec. > 2) I use 'alsamixer'. Works fine. One problem: When I set the > conversion rate to the SPDIF clock (it has another name IEC...) IT > LOCKS AND STAYS THERE. No amount of diddling in 'alsamixer' yields > anything. To get around this I revert back to an older setting (it is > a long process) saved with 'alsactl' after a reboot. While I have > learned my lesson (DON'T DO THAT!), the behavior is not too good. ok, that's easy. please apply the patch attached. > Note: The card is 'fresh', and hasn't been in a Windows environment > (if that means anything). could you check whether the surround works on windows? Takashi [-- Attachment #2: ice1724-lock-fix.dif --] [-- Type: application/octet-stream, Size: 786 bytes --] Index: alsa-kernel/pci/ice1712/ice1724.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/ice1712/ice1724.c,v retrieving revision 1.17 diff -u -r1.17 ice1724.c --- alsa-kernel/pci/ice1712/ice1724.c 10 Sep 2003 16:20:03 -0000 1.17 +++ alsa-kernel/pci/ice1712/ice1724.c 10 Sep 2003 17:54:42 -0000 @@ -382,11 +382,6 @@ return; } - if (rate == ice->cur_rate) { - spin_unlock_irqrestore(&ice->reg_lock, flags); - return; - } - switch (rate) { case 8000: val = 6; break; case 9600: val = 3; break; @@ -409,6 +404,11 @@ break; } outb(val, ICEMT1724(ice, RATE)); + if (rate == ice->cur_rate) { + spin_unlock_irqrestore(&ice->reg_lock, flags); + return; + } + ice->cur_rate = rate; /* check MT02 */ ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <5.1.0.14.1.20030911083510.03a91120@pop3.infotecna.lcl>]
* Re: M-Audio Revolution 7.1 card hangups [not found] ` <5.1.0.14.1.20030911083510.03a91120@pop3.infotecna.lcl> @ 2003-09-11 9:22 ` Takashi Iwai 0 siblings, 0 replies; 7+ messages in thread From: Takashi Iwai @ 2003-09-11 9:22 UTC (permalink / raw) To: Denis Sbragion; +Cc: alsa-devel At Thu, 11 Sep 2003 08:40:30 +0200, Denis Sbragion wrote: > > Hello Takashi, > > At 19.59 10/09/2003 +0200, you wrote: > ... > > > 2) I use 'alsamixer'. Works fine. One problem: When I set the > > > conversion rate to the SPDIF clock (it has another name IEC...) IT > > > LOCKS AND STAYS THERE. No amount of diddling in 'alsamixer' yields > > > anything. To get around this I revert back to an older setting (it is > > > a long process) saved with 'alsactl' after a reboot. While I have > > > learned my lesson (DON'T DO THAT!), the behavior is not too good. > > > >ok, that's easy. please apply the patch attached. > ... > > is this problem somewhat related to the SPDIF problem I found with my > TerraTec EWX 24/96? I haven't been able to solve it, but, to tell the true, > I haven't tried really hard. Just digged a little in the source code. > Actually I'm still running with 0.9.4 plus the cs8427 module from 0.9.3. likely, no. this bug was on only ice1724, not ice1712. Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <E19xB9b-00044R-00@sc8-sf-list2.sourceforge.net>]
* Re: M-Audio Revolution 7.1 card hangups [not found] <E19xB9b-00044R-00@sc8-sf-list2.sourceforge.net> @ 2003-09-10 21:37 ` Tom Watson 0 siblings, 0 replies; 7+ messages in thread From: Tom Watson @ 2003-09-10 21:37 UTC (permalink / raw) To: alsa development; +Cc: tiwai I got the patch, and I WILL apply it. Thanks for the prompt response. I haven't tried the card on Windows (may happen today), but I was wondering if there is some reference to what is in the EEPROM that is on the board. Maybe I can solve the problem. I've got a note to the M-Audio people as well. Thanks again, ....tom Takashi Iwai Wrote: At Wed, 10 Sep 2003 10:30:25 -0700 (PDT), Tom Watson wrote: > > I just got one of these, and after converting my audio to 32 bits > (necessary for the card) I got SOME sound out of it. > > I have a couple of problems: > 1) While the peak meters indicate that something IS there, try as I > might, I can't get audio out of the card from anywhere but the first 2 > channels. All the mixer controls in 'alsamixer' are up, and the two > that control the first 2 channels DO work, but NO audio from the other > channels. The program I'm using DID work on another audio card with > more than two channels. The problem seems to be some dumb > configuration thing. Do I need to light this card up on a Windoze > machine to set the EEPROM or something?? most likely a bug in the accessing to ak4355 codec. > 2) I use 'alsamixer'. Works fine. One problem: When I set the > conversion rate to the SPDIF clock (it has another name IEC...) IT > LOCKS AND STAYS THERE. No amount of diddling in 'alsamixer' yields > anything. To get around this I revert back to an older setting (it is > a long process) saved with 'alsactl' after a reboot. While I have > learned my lesson (DON'T DO THAT!), the behavior is not too good. ok, that's easy. please apply the patch attached. > Note: The card is 'fresh', and hasn't been in a Windows environment > (if that means anything). could you check whether the surround works on windows? Takashi ===== -- Tom Watson tsw@johana.com __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <E19xKBy-0005gx-00@sc8-sf-list2.sourceforge.net>]
* Re: M-Audio Revolution 7.1 card hangups [not found] <E19xKBy-0005gx-00@sc8-sf-list2.sourceforge.net> @ 2003-09-11 6:26 ` Tom Watson 2003-09-11 9:20 ` Takashi Iwai 0 siblings, 1 reply; 7+ messages in thread From: Tom Watson @ 2003-09-11 6:26 UTC (permalink / raw) To: alsa-devel; +Cc: tiwai [-- Attachment #1: Type: text/plain, Size: 858 bytes --] More information about the 'missing sound' on the 'other' (not left front/right front) channels: I attempted to make the audio input channels go to various output channels, and even that doesn't work correctly. They can only be routed to the first two (LF/RF) channels (no others). As an assist to those looking at the problem, I enclose the output from 'alsactl' referencing this card, and the contents of /proc/asound/Revolution/ice1724[?] (the one with all the registers described). Hopefully this will assist in figuring out what gives. p.s. The sampling rate doesn't latch up as before. The last patch worked 'just fine'. Thanks VERY MUCH. ENCLOSURES (plain text) ===== -- Tom Watson tsw@johana.com __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com [-- Attachment #2: ice_card --] [-- Type: application/octet-stream, Size: 1826 bytes --] M Audio Revolution-7.1 at 0xe800, irq 10 EEPROM: Subvendor : 0x12143036 Size : 19 bytes Version : 2 System Config : 0x43 ACLink : 0x80 I2S : 0xf8 S/PDIF : 0xc1 GPIO direction : 0x4000fa GPIO mask : 0xbfff85 GPIO state : 0x72 Extra #18 : 0x0 Registers: PSDOUT03 : 0x00000038 CCS00 : 0x00 CCS01 : 0xa0 CCS02 : 0x00 CCS03 : 0x00 CCS04 : 0x43 CCS05 : 0x80 CCS06 : 0xf8 CCS07 : 0x41 CCS08 : 0x00 CCS09 : 0x00 CCS0a : 0x00 CCS0b : 0x00 CCS0c : 0x00 CCS0d : 0x0a CCS0e : 0x00 CCS0f : 0x00 CCS10 : 0x00 CCS11 : 0x00 CCS12 : 0x12 CCS13 : 0x80 CCS14 : 0x76 CCS15 : 0xff CCS16 : 0x85 CCS17 : 0xff CCS18 : 0xfa CCS19 : 0x00 CCS1a : 0x40 CCS1b : 0x00 CCS1c : 0x00 CCS1d : 0x00 CCS1e : 0x7f CCS1f : 0xbf MT00 : 0x00 MT01 : 0x08 MT02 : 0x00 MT03 : 0x08 MT04 : 0x00 MT05 : 0x08 MT06 : 0x00 MT07 : 0x00 MT08 : 0x00 MT09 : 0x00 MT0a : 0x00 MT0b : 0x00 MT0c : 0x00 MT0d : 0x00 MT0e : 0x00 MT0f : 0x00 MT10 : 0x00 MT11 : 0x40 MT12 : 0x70 MT13 : 0x09 MT14 : 0xff MT15 : 0x3f MT16 : 0x00 MT17 : 0x00 MT18 : 0x00 MT19 : 0x03 MT1a : 0x00 MT1b : 0x00 MT1c : 0xff MT1d : 0x07 MT1e : 0x00 MT1f : 0x00 MT20 : 0x00 MT21 : 0x00 MT22 : 0x00 MT23 : 0x00 MT24 : 0x00 MT25 : 0x00 MT26 : 0x00 MT27 : 0x00 MT28 : 0x00 MT29 : 0x00 MT2a : 0x00 MT2b : 0x00 MT2c : 0x38 MT2d : 0x00 MT2e : 0x00 MT2f : 0x00 [-- Attachment #3: save.alsa --] [-- Type: application/octet-stream, Size: 8013 bytes --] state.Revolution71 { control.1 { comment.access read comment.type BYTES iface CARD name 'ICE1724 EEPROM' value '3630141213024380f8c1fa004085ffbf72000000000000000000000000000000000000000000000085ffbf0072000000fa004000' } control.2 { comment.access 'read write' comment.type ENUMERATED comment.item.0 '8000' comment.item.1 '9600' comment.item.2 '11025' comment.item.3 '12000' comment.item.4 '16000' comment.item.5 '22050' comment.item.6 '24000' comment.item.7 '32000' comment.item.8 '44100' comment.item.9 '48000' comment.item.10 '64000' comment.item.11 '88200' comment.item.12 '96000' comment.item.13 '176400' comment.item.14 '192000' comment.item.15 'IEC958 Input' iface MIXER name 'Multi Track Internal Clock' value '44100' } control.3 { comment.access 'read write' comment.type BOOLEAN iface MIXER name 'Multi Track Rate Locking' value true } control.4 { comment.access 'read write' comment.type BOOLEAN iface MIXER name 'Multi Track Rate Reset' value false } control.5 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'H/W Playback Route' value 'PCM Out' } control.6 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'H/W Playback Route' index 1 value 'PCM Out' } control.7 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'H/W Playback Route' index 2 value 'PCM Out' } control.8 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'H/W Playback Route' index 3 value 'PCM Out' } control.9 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'H/W Playback Route' index 4 value 'PCM Out' } control.10 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'H/W Playback Route' index 5 value 'PCM Out' } control.11 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'H/W Playback Route' index 6 value 'PCM Out' } control.12 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'H/W Playback Route' index 7 value 'PCM Out' } control.13 { comment.access read comment.type INTEGER comment.range '0 - 255' iface MIXER name 'Multi Track Peak' value.0 0 value.1 0 value.2 0 value.3 0 value.4 0 value.5 0 value.6 0 value.7 0 value.8 0 value.9 0 value.10 0 value.11 0 value.12 0 value.13 0 value.14 0 value.15 0 value.16 0 value.17 0 value.18 0 value.19 0 value.20 0 value.21 0 } control.14 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'IEC958 Playback Route' value 'PCM Out' } control.15 { comment.access 'read write' comment.type ENUMERATED comment.item.0 'PCM Out' comment.item.1 'H/W In 0' comment.item.2 'H/W In 1' comment.item.3 'IEC958 In L' comment.item.4 'IEC958 In R' iface MIXER name 'IEC958 Playback Route' index 1 value 'IEC958 In R' } control.16 { comment.access 'read write' comment.type BOOLEAN iface MIXER name 'IEC958 Output Switch' value false } control.17 { comment.access 'read write' comment.type IEC958 iface PCM device 1 name 'IEC958 Playback Default' value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' } control.18 { comment.access read comment.type IEC958 iface MIXER device 1 name 'IEC958 Playback Con Mask' value '3fff000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' } control.19 { comment.access read comment.type IEC958 iface MIXER device 1 name 'IEC958 Playback Pro Mask' value df00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 } control.20 { comment.access 'read write' comment.type INTEGER comment.range '0 - 255' iface MIXER name 'DAC Volume' value 255 } control.21 { comment.access 'read write' comment.type INTEGER comment.range '0 - 255' iface MIXER name 'DAC Volume' index 1 value 255 } control.22 { comment.access 'read write' comment.type ENUMERATED comment.item.0 '44.1kHz' comment.item.1 Off comment.item.2 '48kHz' comment.item.3 '32kHz' iface MIXER name Deemphasis value '44.1kHz' } control.23 { comment.access 'read write' comment.type INTEGER comment.range '0 - 255' iface MIXER name 'DAC Volume' index 2 value 255 } control.24 { comment.access 'read write' comment.type INTEGER comment.range '0 - 255' iface MIXER name 'DAC Volume' index 3 value 255 } control.25 { comment.access 'read write' comment.type INTEGER comment.range '0 - 255' iface MIXER name 'DAC Volume' index 4 value 255 } control.26 { comment.access 'read write' comment.type INTEGER comment.range '0 - 255' iface MIXER name 'DAC Volume' index 5 value 255 } control.27 { comment.access 'read write' comment.type INTEGER comment.range '0 - 255' iface MIXER name 'DAC Volume' index 6 value 255 } control.28 { comment.access 'read write' comment.type INTEGER comment.range '0 - 255' iface MIXER name 'DAC Volume' index 7 value 255 } control.29 { comment.access 'read write' comment.type ENUMERATED comment.item.0 '44.1kHz' comment.item.1 Off comment.item.2 '48kHz' comment.item.3 '32kHz' iface MIXER name Deemphasis index 1 value '44.1kHz' } control.30 { comment.access 'read write' comment.type ENUMERATED comment.item.0 '44.1kHz' comment.item.1 Off comment.item.2 '48kHz' comment.item.3 '32kHz' iface MIXER name Deemphasis index 2 value '44.1kHz' } control.31 { comment.access 'read write' comment.type ENUMERATED comment.item.0 '44.1kHz' comment.item.1 Off comment.item.2 '48kHz' comment.item.3 '32kHz' iface MIXER name Deemphasis index 3 value '44.1kHz' } } ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: M-Audio Revolution 7.1 card hangups 2003-09-11 6:26 ` Tom Watson @ 2003-09-11 9:20 ` Takashi Iwai 0 siblings, 0 replies; 7+ messages in thread From: Takashi Iwai @ 2003-09-11 9:20 UTC (permalink / raw) To: tsw; +Cc: alsa-devel [-- Attachment #1: Type: text/plain, Size: 255 bytes --] At Wed, 10 Sep 2003 23:26:37 -0700 (PDT), Tom Watson wrote: > > [1 <text/plain; us-ascii (7bit)>] > More information about the 'missing sound' on the 'other' (not left > front/right front) channels: the attachech patch will fix this problem. Takashi [-- Attachment #2: revo-fix2.dif --] [-- Type: application/octet-stream, Size: 3975 bytes --] Index: alsa-kernel/i2c/other/ak4xxx-adda.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/i2c/other/ak4xxx-adda.c,v retrieving revision 1.4 diff -u -r1.4 ak4xxx-adda.c --- alsa-kernel/i2c/other/ak4xxx-adda.c 14 Jul 2003 10:24:23 -0000 1.4 +++ alsa-kernel/i2c/other/ak4xxx-adda.c 11 Sep 2003 08:59:32 -0000 @@ -84,12 +84,14 @@ /* FIXME: needed for ak4529? */ break; case SND_AK4355: - snd_akm4xxx_write(ak, 0, 0x01, state ? 0x02 : 0x01); - if (state) + if (state) { + snd_akm4xxx_write(ak, 0, 0x01, 0x02); /* reset and soft-mute */ return; - for (reg = 0x00; reg < 0x0a; reg++) + } + for (reg = 0x00; reg < 0x0b; reg++) if (reg != 0x01) snd_akm4xxx_write(ak, 0, reg, snd_akm4xxx_get(ak, 0, reg)); + snd_akm4xxx_write(ak, 0, 0x01, 0x01); /* un-reset, unmute */ break; case SND_AK4381: for (chip = 0; chip < ak->num_dacs/2; chip++) { @@ -151,8 +153,8 @@ static unsigned char inits_ak4355[] = { 0x01, 0x02, /* 1: reset and soft-mute */ 0x00, 0x06, /* 0: mode3(i2s), disable auto-clock detect, disable DZF, sharp roll-off, RSTN#=0 */ - // 0x02, 0x0e, /* 2: DA's power up, normal speed, RSTN#=0 */ - 0x02, 0x2e, + 0x02, 0x0e, /* 2: DA's power up, normal speed, RSTN#=0 */ + // 0x02, 0x2e, /* quad speed */ 0x03, 0x01, /* 3: de-emphasis off */ 0x04, 0x00, /* 4: LOUT1 volume muted */ 0x05, 0x00, /* 5: ROUT1 volume muted */ @@ -166,8 +168,8 @@ }; static unsigned char inits_ak4381[] = { 0x00, 0x0c, /* 0: mode3(i2s), disable auto-clock detect */ - // 0x01, 0x02, /* 1: de-emphasis off, normal speed, sharp roll-off, DZF off */ - 0x01, 0x12, + 0x01, 0x02, /* 1: de-emphasis off, normal speed, sharp roll-off, DZF off */ + // 0x01, 0x12, /* quad speed */ 0x02, 0x00, /* 2: DZF disabled */ 0x03, 0x00, /* 3: LATT 0 */ 0x04, 0x00, /* 4: RATT 0 */ @@ -340,7 +342,7 @@ int snd_akm4xxx_build_controls(akm4xxx_t *ak) { - unsigned int idx; + unsigned int idx, num_emphs; int err; for (idx = 0; idx < ak->num_dacs; ++idx) { @@ -382,7 +384,7 @@ snd_kcontrol_t ctl; memset(&ctl, 0, sizeof(ctl)); strcpy(ctl.id.name, "ADC Volume"); - ctl.id.index = idx; + ctl.id.index = idx + ak->idx_offset * 2; ctl.id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; ctl.count = 1; ctl.info = snd_akm4xxx_volume_info; @@ -394,7 +396,7 @@ return err; memset(&ctl, 0, sizeof(ctl)); strcpy(ctl.id.name, "IPGA Analog Capture Volume"); - ctl.id.index = idx; + ctl.id.index = idx + ak->idx_offset * 2; ctl.id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; ctl.count = 1; ctl.info = snd_akm4xxx_ipga_gain_info; @@ -405,7 +407,11 @@ if ((err = snd_ctl_add(ak->card, snd_ctl_new(&ctl, SNDRV_CTL_ELEM_ACCESS_READ|SNDRV_CTL_ELEM_ACCESS_WRITE))) < 0) return err; } - for (idx = 0; idx < ak->num_dacs/2; idx++) { + if (ak->type == SND_AK4355) + num_emphs = 1; + else + num_emphs = ak->num_dacs / 2; + for (idx = 0; idx < num_emphs; idx++) { snd_kcontrol_t ctl; memset(&ctl, 0, sizeof(ctl)); strcpy(ctl.id.name, "Deemphasis"); Index: alsa-kernel/pci/ice1712/revo.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/ice1712/revo.c,v retrieving revision 1.3 diff -u -r1.3 revo.c --- alsa-kernel/pci/ice1712/revo.c 4 Jun 2003 11:00:16 -0000 1.3 +++ alsa-kernel/pci/ice1712/revo.c 11 Sep 2003 08:58:32 -0000 @@ -69,7 +69,8 @@ tmp = snd_akm4xxx_get(ak, 0, reg); tmp &= ~(0x03 << shift); tmp |= dfs << shift; - snd_akm4xxx_write(ak, 0, reg, tmp); + // snd_akm4xxx_write(ak, 0, reg, tmp); + snd_akm4xxx_set(ak, 0, reg, tmp); /* the value is written in reset(0) */ snd_akm4xxx_reset(ak, 0); } @@ -134,7 +135,7 @@ } /* second stage of initialization, analog parts and others */ - ak = ice->akm = kmalloc(sizeof(akm4xxx_t) * 2, GFP_KERNEL); + ak = ice->akm = snd_kcalloc(sizeof(akm4xxx_t) * 2, GFP_KERNEL); if (! ak) return -ENOMEM; ice->akm_codecs = 2; ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: M-Audio Revolution 7.1 card hangups
@ 2003-09-11 6:41 Denis Sbragion
0 siblings, 0 replies; 7+ messages in thread
From: Denis Sbragion @ 2003-09-11 6:41 UTC (permalink / raw)
To: alsa-devel
Hello Takashi,
At 19.59 10/09/2003 +0200, you wrote:
...
> > 2) I use 'alsamixer'. Works fine. One problem: When I set the
> > conversion rate to the SPDIF clock (it has another name IEC...) IT
> > LOCKS AND STAYS THERE. No amount of diddling in 'alsamixer' yields
> > anything. To get around this I revert back to an older setting (it is
> > a long process) saved with 'alsactl' after a reboot. While I have
> > learned my lesson (DON'T DO THAT!), the behavior is not too good.
>
>ok, that's easy. please apply the patch attached.
...
is this problem somewhat related to the SPDIF problem I found with my
TerraTec EWX 24/96? I haven't been able to solve it, but, to tell the true,
I haven't tried really hard. Just digged a little in the source code.
Actually I'm still running with 0.9.4 plus the cs8427 module from 0.9.3.
Bye,
--
Denis Sbragion
InfoTecna
Tel: +39 0362 805396, Fax: +39 0362 805404
URL: http://www.infotecna.it
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 7+ messages in threadend of thread, other threads:[~2003-09-11 9:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-10 17:30 M-Audio Revolution 7.1 card hangups Tom Watson
2003-09-10 17:59 ` Takashi Iwai
[not found] ` <5.1.0.14.1.20030911083510.03a91120@pop3.infotecna.lcl>
2003-09-11 9:22 ` Takashi Iwai
[not found] <E19xB9b-00044R-00@sc8-sf-list2.sourceforge.net>
2003-09-10 21:37 ` Tom Watson
[not found] <E19xKBy-0005gx-00@sc8-sf-list2.sourceforge.net>
2003-09-11 6:26 ` Tom Watson
2003-09-11 9:20 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2003-09-11 6:41 Denis Sbragion
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.