All of lore.kernel.org
 help / color / mirror / Atom feed
* [ALSA - driver 0000259]: Request additional features for ATIIXP
@ 2004-07-07 16:11 noreply
  0 siblings, 0 replies; 3+ messages in thread
From: noreply @ 2004-07-07 16:11 UTC (permalink / raw)
  To: alsa-devel


A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000259
======================================================================
Reported By:                netstar
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Bug ID:                     259
Category:                   PCI - atiixp
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             05-07-2004 01:48 CEST
Last Modified:              07-07-2004 18:11 CEST
======================================================================
Summary:                    Request additional features for ATIIXP
Description: 
Would it be possible to create an atiixpm driver similar to the intel modem
driver?  I have an ATI Modem with device id 434d, which i assume is AC97. 
I have spoken with the slmdm modem developer and he suggested I contacted
you.

My system is ATI infected, ATI controllers, sound card, video card and
unsupported modem.
======================================================================

----------------------------------------------------------------------
 tiwai - 05-11-2004 18:29 CEST 
----------------------------------------------------------------------
please try the attached patch.
you'll get a driver snd-atiixp-modem.

note that it's to the latest cvs version.

----------------------------------------------------------------------
 netstar - 05-12-2004 01:19 CEST 
----------------------------------------------------------------------
Just a few questions here, are you expecting to unleash this in the next
stable release or do you want some test results?  Do you have an atiixp
ac97 modem there?  Is the standard method to use slmdmd's modem daemon in
alsa mode?  Any further information gratefully received, it seems that
someone just unlocked the key to a loada Toshiba laptops :) magic.

----------------------------------------------------------------------
 tiwai - 05-12-2004 11:29 CEST 
----------------------------------------------------------------------
no, it's untested at all, and i have no ac97 modem.
whether it comes into the main tree depends on your tests.

it should work like intel8x0m, which talks ac97 modem codec.
but remember that the driver is totally untested and
might cause hang up.

----------------------------------------------------------------------
 netstar - 05-12-2004 16:46 CEST 
----------------------------------------------------------------------
Tiwai, that patch failed on CVS.  Also, alsa would not configure properly
on 2.6 because of failed version.h.  Any ideas?  Perhaps I could modify
1.0.4 source manually?  I will continue to investigate until I hear more
from you.  Sorry about that.

----------------------------------------------------------------------
 tiwai - 05-12-2004 17:01 CEST 
----------------------------------------------------------------------
no idea why you can't build alsa-driver with 2.6.  here works fine.

the second patch is another version.  it creates a new file instead
of patching the existing atiixp.c.  the patch should be applied to
the latest alsa-driver CVS version.  reverse the last patch.

after applying the patch, run ./cvscompile to regenerate configure
and Makefiles and to compile.

----------------------------------------------------------------------
 netstar - 05-12-2004 18:56 CEST 
----------------------------------------------------------------------
Tiwai,

Sorted the kernel issue, the new patch worked fine on alsa-driver CVS. 
Problem however when attempting to load into the kernel.  ALSACONF did not
detect the modem automatically so I loaded the module manually.  Here is
my dmesg:

ATI IXP MC97 controller: probe of 0000:00:14.6 failed with error -13

----------------------------------------------------------------------
 tiwai - 05-12-2004 19:17 CEST 
----------------------------------------------------------------------
alsaconf probes only for audio chips.  not a bug.

try the third attached patch (additional).
with this patch, you'll likely get another error messages even
if it still fails.

----------------------------------------------------------------------
 netstar - 05-13-2004 00:43 CEST 
----------------------------------------------------------------------
The second patch was slightly broken but i adjusted it slightly to as
below, i assume that it is ok:

if (chip->codec_not_ready_bits){
/* codec(s) was detected but not available.
 * return the error
 */
 snd_printd("ac97_codec_new %d error %d\n", i,err);
 continue;
}
else { // blah blah

It compiled and the new error message is as follows.

ALSA /home/netstar/alsa/alsa-driver/pci/atiixp_modem.c:1101: 
ac97_codec_new 0 error -13

----------------------------------------------------------------------
 netstar - 05-17-2004 04:22 CEST 
----------------------------------------------------------------------
Gone quiet for a while.  The only debugging information  I could give is
that I posted earlier.

----------------------------------------------------------------------
 tiwai - 05-18-2004 21:32 CEST 
----------------------------------------------------------------------
if you loaded snd-atiixp, don't load it to avoid any possible
conflictions.

then try the attached patch and check the kernel messages.

----------------------------------------------------------------------
 netstar - 05-19-2004 02:01 CEST 
----------------------------------------------------------------------
Conditions were set as specified, here is the debugging information:

ALSA atiixp_modem.c:1086: codec_not_ready = 0x3000
ALSA atiixp_modem.c:1089: checking 0 [bit 400]<7>
ALSA atiixp_modem.c:1089: checking 1 [bit 800]<7>
ALSA atiixp_modem.c:1089: checking 2 [bit 1000]

----------------------------------------------------------------------
 tiwai - 05-19-2004 12:36 CEST 
----------------------------------------------------------------------
try to comment out the line 1090:

	if (chip->codec_not_ready_bits & codec_skip[i])
		continue;

i guess the driver will be loaded without abort, but unlikely it will
work.  if the driver is loaded well, attach the outputs of
/proc/asound/card0/codec97#*/* files (they may be multiple
matching directories.)

----------------------------------------------------------------------
 netstar - 05-19-2004 16:06 CEST 
----------------------------------------------------------------------
Module loads but with multiple repeats of these errors:

ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 1c)
ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 0)
ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 3c)

Debugging info in codec-info.tar.gz.

----------------------------------------------------------------------
 tiwai - 05-19-2004 18:41 CEST 
----------------------------------------------------------------------
the file is empty.  (tar doesn't work well with proc files.)

----------------------------------------------------------------------
 tiwai - 05-25-2004 12:57 CEST 
----------------------------------------------------------------------
try ALSA 1.0.5-rc1.

----------------------------------------------------------------------
 netstar - 05-25-2004 17:51 CEST 
----------------------------------------------------------------------
The new module loads fine with no errors, but when I attempt to DIAL I get

"NO DIALTONE".  I am testing from the UK if that helps at all.

snd_atiixp_modem       16776  0
snd_ac97_codec         67972  1 snd_atiixp_modem
snd_pcm                86528  1 snd_atiixp_modem
snd_page_alloc         10888  2 snd_atiixp_modem,snd_pcm
snd_timer              23680  2 snd_seq,snd_pcm
snd                    51460  6  
snd_seq,snd_seq_device,snd_atiixp_modem,snd_ac97_codec,snd_pcm,snd_timer

----------------------------------------------------------------------
 netstar - 05-25-2004 23:56 CEST 
----------------------------------------------------------------------
Additional info:

It appears the modem INIT strings from the windows driver are as follows:

AT
AT &F S0=0 E0 V1 S95=0 &D2

Receive an ERROR when attempting to use this and NO DIALTONE with other
init combinations.

----------------------------------------------------------------------
 tiwai - 05-26-2004 14:44 CEST 
----------------------------------------------------------------------
check /proc/asound/card0/codec97#0/* files whether the modem codec
is chosen by snd-atiixp-modem driver.

i have no big idea about the modem codec.  it'd be better to
ask Sasha Khapyorsky <sashak@smlink.com> about the further
debugging...

----------------------------------------------------------------------
 tiwai - 05-28-2004 16:59 CEST 
----------------------------------------------------------------------
i fixed a bit.  could you try 1.0.5-final?

----------------------------------------------------------------------
 netstar - 05-28-2004 18:49 CEST 
----------------------------------------------------------------------
Tried the new release, more modem commands are available but still no
DIALTONE.
I have been in contact with Sasha, as suggested, and sent him some more
debugging information, he informed me that the modem driver still needs
some work.  He will work on it next week with datasheet and possibly some
hardware.  Getting there :)

----------------------------------------------------------------------
 sashak - 07-07-2004 18:11 CEST 
----------------------------------------------------------------------
There is patch for atiixp_modem.c . The driver is able to setup HOOK OFF/ON
(GPIO is changed via ATI_REG_MODEM_OUT_GPIO) and line level.

Bug History
Date Modified  Username       Field                    Change              
======================================================================
05-07-04 01:48 netstar        New Bug                                      
05-11-04 18:29 tiwai          Bugnote Added: 0001087                       
05-11-04 18:30 tiwai          File Added: atiixp-modem.dif                    
05-12-04 01:19 netstar        Bugnote Added: 0001088                       
05-12-04 11:29 tiwai          Bugnote Added: 0001090                       
05-12-04 16:46 netstar        Bugnote Added: 0001092                       
05-12-04 17:01 tiwai          Bugnote Added: 0001093                       
05-12-04 17:01 tiwai          File Added: atiixp-modem2.dif                    
05-12-04 18:56 netstar        Bugnote Added: 0001094                       
05-12-04 19:17 tiwai          Bugnote Added: 0001097                       
05-12-04 19:17 tiwai          File Added: atiixp-modem-debug.dif                
   
05-13-04 00:43 netstar        Bugnote Added: 0001100                       
05-17-04 04:22 netstar        Bugnote Added: 0001127                       
05-18-04 21:32 tiwai          Bugnote Added: 0001148                       
05-18-04 21:33 tiwai          File Added: atiixp-modem-debug2.dif               
    
05-19-04 02:01 netstar        Bugnote Added: 0001149                       
05-19-04 12:36 tiwai          Bugnote Added: 0001150                       
05-19-04 16:06 netstar        Bugnote Added: 0001153                       
05-19-04 16:07 netstar        File Added: codec-info.tar.gz                    
05-19-04 18:41 tiwai          Bugnote Added: 0001154                       
05-19-04 22:13 netstar        File Added: proc_entries.txt                    
05-25-04 12:57 tiwai          Bugnote Added: 0001207                       
05-25-04 17:51 netstar        Bugnote Added: 0001222                       
05-25-04 23:56 netstar        Bugnote Added: 0001240                       
05-26-04 14:44 tiwai          Bugnote Added: 0001259                       
05-28-04 16:59 tiwai          Bugnote Added: 0001265                       
05-28-04 18:49 netstar        Bugnote Added: 0001270                       
06-15-04 05:25 mrjackbrooks   Bug Monitored: mrjackbrooks                    
07-07-04 18:06 sashak         Bug Monitored: sashak                        
07-07-04 18:09 sashak         File Added: atiixp_modem.c.patch                  
 
07-07-04 18:11 sashak         Bugnote Added: 0001393                       
======================================================================




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ALSA - driver 0000259]: Request additional features for ATIIXP
@ 2004-07-11 16:40 noreply
  0 siblings, 0 replies; 3+ messages in thread
From: noreply @ 2004-07-11 16:40 UTC (permalink / raw)
  To: alsa-devel


A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000259
======================================================================
Reported By:                netstar
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Bug ID:                     259
Category:                   PCI - atiixp
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             05-07-2004 01:48 CEST
Last Modified:              07-11-2004 18:40 CEST
======================================================================
Summary:                    Request additional features for ATIIXP
Description: 
Would it be possible to create an atiixpm driver similar to the intel modem
driver?  I have an ATI Modem with device id 434d, which i assume is AC97. 
I have spoken with the slmdm modem developer and he suggested I contacted
you.

My system is ATI infected, ATI controllers, sound card, video card and
unsupported modem.
======================================================================

----------------------------------------------------------------------
 tiwai - 05-11-2004 18:29 CEST 
----------------------------------------------------------------------
please try the attached patch.
you'll get a driver snd-atiixp-modem.

note that it's to the latest cvs version.

----------------------------------------------------------------------
 netstar - 05-12-2004 01:19 CEST 
----------------------------------------------------------------------
Just a few questions here, are you expecting to unleash this in the next
stable release or do you want some test results?  Do you have an atiixp
ac97 modem there?  Is the standard method to use slmdmd's modem daemon in
alsa mode?  Any further information gratefully received, it seems that
someone just unlocked the key to a loada Toshiba laptops :) magic.

----------------------------------------------------------------------
 tiwai - 05-12-2004 11:29 CEST 
----------------------------------------------------------------------
no, it's untested at all, and i have no ac97 modem.
whether it comes into the main tree depends on your tests.

it should work like intel8x0m, which talks ac97 modem codec.
but remember that the driver is totally untested and
might cause hang up.

----------------------------------------------------------------------
 netstar - 05-12-2004 16:46 CEST 
----------------------------------------------------------------------
Tiwai, that patch failed on CVS.  Also, alsa would not configure properly
on 2.6 because of failed version.h.  Any ideas?  Perhaps I could modify
1.0.4 source manually?  I will continue to investigate until I hear more
from you.  Sorry about that.

----------------------------------------------------------------------
 tiwai - 05-12-2004 17:01 CEST 
----------------------------------------------------------------------
no idea why you can't build alsa-driver with 2.6.  here works fine.

the second patch is another version.  it creates a new file instead
of patching the existing atiixp.c.  the patch should be applied to
the latest alsa-driver CVS version.  reverse the last patch.

after applying the patch, run ./cvscompile to regenerate configure
and Makefiles and to compile.

----------------------------------------------------------------------
 netstar - 05-12-2004 18:56 CEST 
----------------------------------------------------------------------
Tiwai,

Sorted the kernel issue, the new patch worked fine on alsa-driver CVS. 
Problem however when attempting to load into the kernel.  ALSACONF did not
detect the modem automatically so I loaded the module manually.  Here is
my dmesg:

ATI IXP MC97 controller: probe of 0000:00:14.6 failed with error -13

----------------------------------------------------------------------
 tiwai - 05-12-2004 19:17 CEST 
----------------------------------------------------------------------
alsaconf probes only for audio chips.  not a bug.

try the third attached patch (additional).
with this patch, you'll likely get another error messages even
if it still fails.

----------------------------------------------------------------------
 netstar - 05-13-2004 00:43 CEST 
----------------------------------------------------------------------
The second patch was slightly broken but i adjusted it slightly to as
below, i assume that it is ok:

if (chip->codec_not_ready_bits){
/* codec(s) was detected but not available.
 * return the error
 */
 snd_printd("ac97_codec_new %d error %d\n", i,err);
 continue;
}
else { // blah blah

It compiled and the new error message is as follows.

ALSA /home/netstar/alsa/alsa-driver/pci/atiixp_modem.c:1101: 
ac97_codec_new 0 error -13

----------------------------------------------------------------------
 netstar - 05-17-2004 04:22 CEST 
----------------------------------------------------------------------
Gone quiet for a while.  The only debugging information  I could give is
that I posted earlier.

----------------------------------------------------------------------
 tiwai - 05-18-2004 21:32 CEST 
----------------------------------------------------------------------
if you loaded snd-atiixp, don't load it to avoid any possible
conflictions.

then try the attached patch and check the kernel messages.

----------------------------------------------------------------------
 netstar - 05-19-2004 02:01 CEST 
----------------------------------------------------------------------
Conditions were set as specified, here is the debugging information:

ALSA atiixp_modem.c:1086: codec_not_ready = 0x3000
ALSA atiixp_modem.c:1089: checking 0 [bit 400]<7>
ALSA atiixp_modem.c:1089: checking 1 [bit 800]<7>
ALSA atiixp_modem.c:1089: checking 2 [bit 1000]

----------------------------------------------------------------------
 tiwai - 05-19-2004 12:36 CEST 
----------------------------------------------------------------------
try to comment out the line 1090:

	if (chip->codec_not_ready_bits & codec_skip[i])
		continue;

i guess the driver will be loaded without abort, but unlikely it will
work.  if the driver is loaded well, attach the outputs of
/proc/asound/card0/codec97#*/* files (they may be multiple
matching directories.)

----------------------------------------------------------------------
 netstar - 05-19-2004 16:06 CEST 
----------------------------------------------------------------------
Module loads but with multiple repeats of these errors:

ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 1c)
ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 0)
ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 3c)

Debugging info in codec-info.tar.gz.

----------------------------------------------------------------------
 tiwai - 05-19-2004 18:41 CEST 
----------------------------------------------------------------------
the file is empty.  (tar doesn't work well with proc files.)

----------------------------------------------------------------------
 tiwai - 05-25-2004 12:57 CEST 
----------------------------------------------------------------------
try ALSA 1.0.5-rc1.

----------------------------------------------------------------------
 netstar - 05-25-2004 17:51 CEST 
----------------------------------------------------------------------
The new module loads fine with no errors, but when I attempt to DIAL I get

"NO DIALTONE".  I am testing from the UK if that helps at all.

snd_atiixp_modem       16776  0
snd_ac97_codec         67972  1 snd_atiixp_modem
snd_pcm                86528  1 snd_atiixp_modem
snd_page_alloc         10888  2 snd_atiixp_modem,snd_pcm
snd_timer              23680  2 snd_seq,snd_pcm
snd                    51460  6  
snd_seq,snd_seq_device,snd_atiixp_modem,snd_ac97_codec,snd_pcm,snd_timer

----------------------------------------------------------------------
 netstar - 05-25-2004 23:56 CEST 
----------------------------------------------------------------------
Additional info:

It appears the modem INIT strings from the windows driver are as follows:

AT
AT &F S0=0 E0 V1 S95=0 &D2

Receive an ERROR when attempting to use this and NO DIALTONE with other
init combinations.

----------------------------------------------------------------------
 tiwai - 05-26-2004 14:44 CEST 
----------------------------------------------------------------------
check /proc/asound/card0/codec97#0/* files whether the modem codec
is chosen by snd-atiixp-modem driver.

i have no big idea about the modem codec.  it'd be better to
ask Sasha Khapyorsky <sashak@smlink.com> about the further
debugging...

----------------------------------------------------------------------
 tiwai - 05-28-2004 16:59 CEST 
----------------------------------------------------------------------
i fixed a bit.  could you try 1.0.5-final?

----------------------------------------------------------------------
 netstar - 05-28-2004 18:49 CEST 
----------------------------------------------------------------------
Tried the new release, more modem commands are available but still no
DIALTONE.
I have been in contact with Sasha, as suggested, and sent him some more
debugging information, he informed me that the modem driver still needs
some work.  He will work on it next week with datasheet and possibly some
hardware.  Getting there :)

----------------------------------------------------------------------
 sashak - 07-07-2004 18:28 CEST 
----------------------------------------------------------------------
There is patch for atiixp_modem.c . The driver is able to setup HOOK OFF/ON
(GPIO is changed via ATI_REG_MODEM_OUT_GPIO) and line level.

edited on: 07-07-04 18:28

----------------------------------------------------------------------
 sashak - 07-11-2004 18:40 CEST 
----------------------------------------------------------------------
There is updated patch atiixp_modem.c.patch2. Min/Max channels is "2" now,
this provides possibility to "route" right pcm channel (this consists
valid data) to modem input/output, so this looks like 'convensional' modem
device. .asoundrc example is attahched - asoundrc-atiixp_modem.

Such combination of driver and .asoundrc works (aplay, arecord,
slmodem-2.9.9).

Bug History
Date Modified  Username       Field                    Change              
======================================================================
05-07-04 01:48 netstar        New Bug                                      
05-11-04 18:29 tiwai          Bugnote Added: 0001087                       
05-11-04 18:30 tiwai          File Added: atiixp-modem.dif                    
05-12-04 01:19 netstar        Bugnote Added: 0001088                       
05-12-04 11:29 tiwai          Bugnote Added: 0001090                       
05-12-04 16:46 netstar        Bugnote Added: 0001092                       
05-12-04 17:01 tiwai          Bugnote Added: 0001093                       
05-12-04 17:01 tiwai          File Added: atiixp-modem2.dif                    
05-12-04 18:56 netstar        Bugnote Added: 0001094                       
05-12-04 19:17 tiwai          Bugnote Added: 0001097                       
05-12-04 19:17 tiwai          File Added: atiixp-modem-debug.dif                
   
05-13-04 00:43 netstar        Bugnote Added: 0001100                       
05-17-04 04:22 netstar        Bugnote Added: 0001127                       
05-18-04 21:32 tiwai          Bugnote Added: 0001148                       
05-18-04 21:33 tiwai          File Added: atiixp-modem-debug2.dif               
    
05-19-04 02:01 netstar        Bugnote Added: 0001149                       
05-19-04 12:36 tiwai          Bugnote Added: 0001150                       
05-19-04 16:06 netstar        Bugnote Added: 0001153                       
05-19-04 16:07 netstar        File Added: codec-info.tar.gz                    
05-19-04 18:41 tiwai          Bugnote Added: 0001154                       
05-19-04 22:13 netstar        File Added: proc_entries.txt                    
05-25-04 12:57 tiwai          Bugnote Added: 0001207                       
05-25-04 17:51 netstar        Bugnote Added: 0001222                       
05-25-04 23:56 netstar        Bugnote Added: 0001240                       
05-26-04 14:44 tiwai          Bugnote Added: 0001259                       
05-28-04 16:59 tiwai          Bugnote Added: 0001265                       
05-28-04 18:49 netstar        Bugnote Added: 0001270                       
06-15-04 05:25 mrjackbrooks   Bug Monitored: mrjackbrooks                    
07-07-04 18:06 sashak         Bug Monitored: sashak                        
07-07-04 18:09 sashak         File Added: atiixp_modem.c.patch                  
 
07-07-04 18:11 sashak         Bugnote Added: 0001393                       
07-07-04 18:28 sashak         Bugnote Edited: 0001393                      
07-11-04 18:31 sashak         File Added: atiixp_modem.c.patch2                 
  
07-11-04 18:32 sashak         File Added: asoundrc-atiixp_modem                 
  
07-11-04 18:40 sashak         Bugnote Added: 0001408                       
======================================================================




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ALSA - driver 0000259]: Request additional features for ATIIXP
@ 2004-07-15  9:31 noreply
  0 siblings, 0 replies; 3+ messages in thread
From: noreply @ 2004-07-15  9:31 UTC (permalink / raw)
  To: alsa-devel


The following bug has been RESOLVED.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000259
======================================================================
Reported By:                netstar
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Bug ID:                     259
Category:                   PCI - atiixp
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     resolved
Distribution:               
Kernel Version:             
Resolution:                 fixed
======================================================================
Date Submitted:             05-07-2004 01:48 CEST
Last Modified:              07-15-2004 11:31 CEST
======================================================================
Summary:                    Request additional features for ATIIXP
Description: 
Would it be possible to create an atiixpm driver similar to the intel modem
driver?  I have an ATI Modem with device id 434d, which i assume is AC97. 
I have spoken with the slmdm modem developer and he suggested I contacted
you.

My system is ATI infected, ATI controllers, sound card, video card and
unsupported modem.
======================================================================

----------------------------------------------------------------------
 tiwai - 05-11-2004 18:29 CEST 
----------------------------------------------------------------------
please try the attached patch.
you'll get a driver snd-atiixp-modem.

note that it's to the latest cvs version.

----------------------------------------------------------------------
 netstar - 05-12-2004 01:19 CEST 
----------------------------------------------------------------------
Just a few questions here, are you expecting to unleash this in the next
stable release or do you want some test results?  Do you have an atiixp
ac97 modem there?  Is the standard method to use slmdmd's modem daemon in
alsa mode?  Any further information gratefully received, it seems that
someone just unlocked the key to a loada Toshiba laptops :) magic.

----------------------------------------------------------------------
 tiwai - 05-12-2004 11:29 CEST 
----------------------------------------------------------------------
no, it's untested at all, and i have no ac97 modem.
whether it comes into the main tree depends on your tests.

it should work like intel8x0m, which talks ac97 modem codec.
but remember that the driver is totally untested and
might cause hang up.

----------------------------------------------------------------------
 netstar - 05-12-2004 16:46 CEST 
----------------------------------------------------------------------
Tiwai, that patch failed on CVS.  Also, alsa would not configure properly
on 2.6 because of failed version.h.  Any ideas?  Perhaps I could modify
1.0.4 source manually?  I will continue to investigate until I hear more
from you.  Sorry about that.

----------------------------------------------------------------------
 tiwai - 05-12-2004 17:01 CEST 
----------------------------------------------------------------------
no idea why you can't build alsa-driver with 2.6.  here works fine.

the second patch is another version.  it creates a new file instead
of patching the existing atiixp.c.  the patch should be applied to
the latest alsa-driver CVS version.  reverse the last patch.

after applying the patch, run ./cvscompile to regenerate configure
and Makefiles and to compile.

----------------------------------------------------------------------
 netstar - 05-12-2004 18:56 CEST 
----------------------------------------------------------------------
Tiwai,

Sorted the kernel issue, the new patch worked fine on alsa-driver CVS. 
Problem however when attempting to load into the kernel.  ALSACONF did not
detect the modem automatically so I loaded the module manually.  Here is
my dmesg:

ATI IXP MC97 controller: probe of 0000:00:14.6 failed with error -13

----------------------------------------------------------------------
 tiwai - 05-12-2004 19:17 CEST 
----------------------------------------------------------------------
alsaconf probes only for audio chips.  not a bug.

try the third attached patch (additional).
with this patch, you'll likely get another error messages even
if it still fails.

----------------------------------------------------------------------
 netstar - 05-13-2004 00:43 CEST 
----------------------------------------------------------------------
The second patch was slightly broken but i adjusted it slightly to as
below, i assume that it is ok:

if (chip->codec_not_ready_bits){
/* codec(s) was detected but not available.
 * return the error
 */
 snd_printd("ac97_codec_new %d error %d\n", i,err);
 continue;
}
else { // blah blah

It compiled and the new error message is as follows.

ALSA /home/netstar/alsa/alsa-driver/pci/atiixp_modem.c:1101: 
ac97_codec_new 0 error -13

----------------------------------------------------------------------
 netstar - 05-17-2004 04:22 CEST 
----------------------------------------------------------------------
Gone quiet for a while.  The only debugging information  I could give is
that I posted earlier.

----------------------------------------------------------------------
 tiwai - 05-18-2004 21:32 CEST 
----------------------------------------------------------------------
if you loaded snd-atiixp, don't load it to avoid any possible
conflictions.

then try the attached patch and check the kernel messages.

----------------------------------------------------------------------
 netstar - 05-19-2004 02:01 CEST 
----------------------------------------------------------------------
Conditions were set as specified, here is the debugging information:

ALSA atiixp_modem.c:1086: codec_not_ready = 0x3000
ALSA atiixp_modem.c:1089: checking 0 [bit 400]<7>
ALSA atiixp_modem.c:1089: checking 1 [bit 800]<7>
ALSA atiixp_modem.c:1089: checking 2 [bit 1000]

----------------------------------------------------------------------
 tiwai - 05-19-2004 12:36 CEST 
----------------------------------------------------------------------
try to comment out the line 1090:

	if (chip->codec_not_ready_bits & codec_skip[i])
		continue;

i guess the driver will be loaded without abort, but unlikely it will
work.  if the driver is loaded well, attach the outputs of
/proc/asound/card0/codec97#*/* files (they may be multiple
matching directories.)

----------------------------------------------------------------------
 netstar - 05-19-2004 16:06 CEST 
----------------------------------------------------------------------
Module loads but with multiple repeats of these errors:

ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 1c)
ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 0)
ALSA atiixp_modem.c:451: atiixp: codec read timeout (reg 3c)

Debugging info in codec-info.tar.gz.

----------------------------------------------------------------------
 tiwai - 05-19-2004 18:41 CEST 
----------------------------------------------------------------------
the file is empty.  (tar doesn't work well with proc files.)

----------------------------------------------------------------------
 tiwai - 05-25-2004 12:57 CEST 
----------------------------------------------------------------------
try ALSA 1.0.5-rc1.

----------------------------------------------------------------------
 netstar - 05-25-2004 17:51 CEST 
----------------------------------------------------------------------
The new module loads fine with no errors, but when I attempt to DIAL I get

"NO DIALTONE".  I am testing from the UK if that helps at all.

snd_atiixp_modem       16776  0
snd_ac97_codec         67972  1 snd_atiixp_modem
snd_pcm                86528  1 snd_atiixp_modem
snd_page_alloc         10888  2 snd_atiixp_modem,snd_pcm
snd_timer              23680  2 snd_seq,snd_pcm
snd                    51460  6  
snd_seq,snd_seq_device,snd_atiixp_modem,snd_ac97_codec,snd_pcm,snd_timer

----------------------------------------------------------------------
 netstar - 05-25-2004 23:56 CEST 
----------------------------------------------------------------------
Additional info:

It appears the modem INIT strings from the windows driver are as follows:

AT
AT &F S0=0 E0 V1 S95=0 &D2

Receive an ERROR when attempting to use this and NO DIALTONE with other
init combinations.

----------------------------------------------------------------------
 tiwai - 05-26-2004 14:44 CEST 
----------------------------------------------------------------------
check /proc/asound/card0/codec97#0/* files whether the modem codec
is chosen by snd-atiixp-modem driver.

i have no big idea about the modem codec.  it'd be better to
ask Sasha Khapyorsky <sashak@smlink.com> about the further
debugging...

----------------------------------------------------------------------
 tiwai - 05-28-2004 16:59 CEST 
----------------------------------------------------------------------
i fixed a bit.  could you try 1.0.5-final?

----------------------------------------------------------------------
 netstar - 05-28-2004 18:49 CEST 
----------------------------------------------------------------------
Tried the new release, more modem commands are available but still no
DIALTONE.
I have been in contact with Sasha, as suggested, and sent him some more
debugging information, he informed me that the modem driver still needs
some work.  He will work on it next week with datasheet and possibly some
hardware.  Getting there :)

----------------------------------------------------------------------
 sashak - 07-07-2004 18:28 CEST 
----------------------------------------------------------------------
There is patch for atiixp_modem.c . The driver is able to setup HOOK OFF/ON
(GPIO is changed via ATI_REG_MODEM_OUT_GPIO) and line level.

edited on: 07-07-04 18:28

----------------------------------------------------------------------
 sashak - 07-11-2004 18:40 CEST 
----------------------------------------------------------------------
There is updated patch atiixp_modem.c.patch2. Min/Max channels is "2" now,
this provides possibility to "route" right pcm channel (this consists
valid data) to modem input/output, so this looks like 'convensional' modem
device. .asoundrc example is attahched - asoundrc-atiixp_modem.

Such combination of driver and .asoundrc works (aplay, arecord,
slmodem-2.9.9).

----------------------------------------------------------------------
 tiwai - 07-15-2004 11:31 CEST 
----------------------------------------------------------------------
The patch is now on CVS.

The "modem" PCM is defined in the alsa-lib CVS version, so that
you don't have to set up the stereo -> mono routing on your
~/.asoundrc.

Now closing this bug.

Bug History
Date Modified  Username       Field                    Change              
======================================================================
05-07-04 01:48 netstar        New Bug                                      
05-11-04 18:29 tiwai          Bugnote Added: 0001087                       
05-11-04 18:30 tiwai          File Added: atiixp-modem.dif                    
05-12-04 01:19 netstar        Bugnote Added: 0001088                       
05-12-04 11:29 tiwai          Bugnote Added: 0001090                       
05-12-04 16:46 netstar        Bugnote Added: 0001092                       
05-12-04 17:01 tiwai          Bugnote Added: 0001093                       
05-12-04 17:01 tiwai          File Added: atiixp-modem2.dif                    
05-12-04 18:56 netstar        Bugnote Added: 0001094                       
05-12-04 19:17 tiwai          Bugnote Added: 0001097                       
05-12-04 19:17 tiwai          File Added: atiixp-modem-debug.dif                
   
05-13-04 00:43 netstar        Bugnote Added: 0001100                       
05-17-04 04:22 netstar        Bugnote Added: 0001127                       
05-18-04 21:32 tiwai          Bugnote Added: 0001148                       
05-18-04 21:33 tiwai          File Added: atiixp-modem-debug2.dif               
    
05-19-04 02:01 netstar        Bugnote Added: 0001149                       
05-19-04 12:36 tiwai          Bugnote Added: 0001150                       
05-19-04 16:06 netstar        Bugnote Added: 0001153                       
05-19-04 16:07 netstar        File Added: codec-info.tar.gz                    
05-19-04 18:41 tiwai          Bugnote Added: 0001154                       
05-19-04 22:13 netstar        File Added: proc_entries.txt                    
05-25-04 12:57 tiwai          Bugnote Added: 0001207                       
05-25-04 17:51 netstar        Bugnote Added: 0001222                       
05-25-04 23:56 netstar        Bugnote Added: 0001240                       
05-26-04 14:44 tiwai          Bugnote Added: 0001259                       
05-28-04 16:59 tiwai          Bugnote Added: 0001265                       
05-28-04 18:49 netstar        Bugnote Added: 0001270                       
06-15-04 05:25 mrjackbrooks   Bug Monitored: mrjackbrooks                    
07-07-04 18:06 sashak         Bug Monitored: sashak                        
07-07-04 18:09 sashak         File Added: atiixp_modem.c.patch                  
 
07-07-04 18:11 sashak         Bugnote Added: 0001393                       
07-07-04 18:28 sashak         Bugnote Edited: 0001393                      
07-11-04 18:31 sashak         File Added: atiixp_modem.c.patch2                 
  
07-11-04 18:32 sashak         File Added: asoundrc-atiixp_modem                 
  
07-11-04 18:40 sashak         Bugnote Added: 0001408                       
07-15-04 11:31 tiwai          Bugnote Added: 0001430                       
07-15-04 11:31 tiwai          Resolution               open => fixed       
07-15-04 11:31 tiwai          Status                   assigned => resolved
======================================================================




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id\x10040&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-15  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-11 16:40 [ALSA - driver 0000259]: Request additional features for ATIIXP noreply
  -- strict thread matches above, loose matches on Subject: below --
2004-07-15  9:31 noreply
2004-07-07 16:11 noreply

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.