* [INFO] C-Media CMI9761 -A- type , CONTINOUS NOT DISCRETE MASTER/PCM MIXER with 106, please branch, PCM PLAY not working @ 2005-02-16 5:21 thomas schorpp 2005-02-16 10:47 ` Takashi Iwai 0 siblings, 1 reply; 8+ messages in thread From: thomas schorpp @ 2005-02-16 5:21 UTC (permalink / raw) To: alsa-devel -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 hello, this device http://www.cmedia.com.tw/product/CMI9761.htm the -A- type ive got has working continuous (slider) master mixer+balance and "working" pcm mixer slider with v106 (2.6.10 release kernel alsa) but no more with v108 alsa-driver or cvs from yesterday. please branch for this device (on cheap asrock mass-seller K7VTA+ board with via8235 pci). - -worse: pcm playback not working, capture works, seems no muting problem, klick sound on switching pcm mixer. 10 days left to fix it, or the board returns to the shop. need a start point for pcm problem, please. somebody got a reg descrption? only harware datasheet is available from vendor. ? y tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iQCVAwUBQhLYYmqsze5HSzyoAQPQGAP+NkGJTBonfz23+wKI/YHGjGqfratVRFPL 0/gaV3PCa+SGcW82QHfs/QPY0W0f4F013QUz+EQUQOxeLnNEvHOaqFbddL5zAIL3 2LTthgN+rGqfG7RZHfjOkOoU3tE0jjXU5UljqNO1A9Jd2tFGfQUJUZIn+B3RKCya Buuk4eI11gQ= =Q2Au -----END PGP SIGNATURE----- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [INFO] C-Media CMI9761 -A- type , CONTINOUS NOT DISCRETE MASTER/PCM MIXER with 106, please branch, PCM PLAY not working 2005-02-16 5:21 [INFO] C-Media CMI9761 -A- type , CONTINOUS NOT DISCRETE MASTER/PCM MIXER with 106, please branch, PCM PLAY not working thomas schorpp @ 2005-02-16 10:47 ` Takashi Iwai [not found] ` <42138EE3.8040201@gmx.de> 2005-02-17 1:27 ` [INFO] C-Media CMI9761 -A- type , CODEC ID thomas schorpp 0 siblings, 2 replies; 8+ messages in thread From: Takashi Iwai @ 2005-02-16 10:47 UTC (permalink / raw) To: t.schorpp; +Cc: alsa-devel At Wed, 16 Feb 2005 06:21:42 +0100, thomas schorpp wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > > hello, > > this device > > http://www.cmedia.com.tw/product/CMI9761.htm > > the -A- type ive got > > has working continuous (slider) master mixer+balance and "working" pcm > mixer slider with v106 (2.6.10 release kernel alsa) but no more with > v108 alsa-driver or cvs from yesterday. > > please branch for this device (on cheap asrock mass-seller K7VTA+ board > with via8235 pci). Interesting. How can one detect the difference of model? Does it have a different codec id? Anyway, please attach the contents of /proc/asound/card0/codec97#0/* files. > - -worse: pcm playback not working, capture works, seems no muting > problem, klick sound on switching pcm mixer. > > 10 days left to fix it, or the board returns to the shop. > > need a start point for pcm problem, please. somebody got a reg > descrption? only harware datasheet is available from vendor. No. We have no datasheet for these codecs at all. Takashi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <42138EE3.8040201@gmx.de>]
* Re: [INFO] C-Media CMI9761 -A- type , CONTINOUS NOT DISCRETE MASTER/PCM MIXER with 106, please branch, PCM PLAY not working [not found] ` <42138EE3.8040201@gmx.de> @ 2005-02-16 18:29 ` Takashi Iwai 2005-02-17 7:54 ` [INFO] C-Media CMI9761 -A- type , DEVICE REVISION IS 8D thomas schorpp 0 siblings, 1 reply; 8+ messages in thread From: Takashi Iwai @ 2005-02-16 18:29 UTC (permalink / raw) To: t.schorpp; +Cc: alsa-devel [-- Attachment #1: Type: text/plain, Size: 2030 bytes --] At Wed, 16 Feb 2005 19:20:19 +0100, thomas schorpp wrote: > > hello, > > sorry, just seen bounces from the list, someone doesnt like me,it seems.. > > <alsa-devel@lists.sourceforge.net>: > 66.35.250.206_does_not_like_recipient./Remote_host_said:_550_Administrative_prohibition/Giving_up_on_66.35.250.206./ > > <tiwai@users.sourceforge.net>: > 66.35.250.206_does_not_like_recipient./Remote_host_said:_550_Administrative_prohibition/Giving_up_on_66.35.250.206./ Seems like a temporary problem of sourceforge... > > anyway: > > Takashi Iwai wrote: > > At Wed, 16 Feb 2005 06:21:42 +0100, > > thomas schorpp wrote: > > > >>-----BEGIN PGP SIGNED MESSAGE----- > >>Hash: RIPEMD160 > >> > >>hello, > >> > >>this device > >> > >>http://www.cmedia.com.tw/product/CMI9761.htm > >> > >>the -A- type ive got > >> > >>has working continuous (slider) master mixer+balance and "working" pcm > >>mixer slider with v106 (2.6.10 release kernel alsa) but no more with > >>v108 alsa-driver or cvs from yesterday. > >> > >>please branch for this device (on cheap asrock mass-seller K7VTA+ board > >>with via8235 pci). > > > > > > Interesting. How can one detect the difference of model? Does it > > have a different codec id? > > im sorry, need to work in this... you got some indentifiers in +{ > 0x434d4983, 0xffffffff, XXXXXXXXXX chip id? from where? XXXXXXXXXX > "CMI9761A", patch_cm9761a, NULL }, ? > > last resort were a configure script switch (?) Well, I'm working on the problem of CM9761 (model 83) with another guy. We found out that although the Master and PCM volumes look as if working, they don't affect any volumes in fact. So, removing these controls are correct (at least for his chip). Please make sure that the Master and PCM volumes _really_ work with the older version of ALSA on your board. That means, when you change the PCM or Master volume, it really changes the output level. Anyway, the patch below might fix the silent output of CM9761, which was already committed to CVS today. Takashi [-- Attachment #2: Type: text/plain, Size: 699 bytes --] Index: alsa-kernel/pci/ac97/ac97_patch.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.74 diff -u -r1.74 ac97_patch.c --- alsa-kernel/pci/ac97/ac97_patch.c 14 Feb 2005 11:15:30 -0000 1.74 +++ alsa-kernel/pci/ac97/ac97_patch.c 16 Feb 2005 17:53:06 -0000 @@ -2084,8 +2084,10 @@ val = 0x0214; else val = 0x321c; - snd_ac97_write_cache(ac97, AC97_CM9761_MULTI_CHAN, val); #endif + val = snd_ac97_read(ac97, AC97_CM9761_MULTI_CHAN); + val |= (1 << 4); + snd_ac97_write_cache(ac97, AC97_CM9761_MULTI_CHAN, val); /* FIXME: set up GPIO */ snd_ac97_write_cache(ac97, 0x70, 0x0100); ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [INFO] C-Media CMI9761 -A- type , DEVICE REVISION IS 8D 2005-02-16 18:29 ` Takashi Iwai @ 2005-02-17 7:54 ` thomas schorpp 0 siblings, 0 replies; 8+ messages in thread From: thomas schorpp @ 2005-02-17 7:54 UTC (permalink / raw) To: alsa-devel good morning. figured out the device rev. for A type. its 8D. now it can be done. tom ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [INFO] C-Media CMI9761 -A- type , CODEC ID 2005-02-16 10:47 ` Takashi Iwai [not found] ` <42138EE3.8040201@gmx.de> @ 2005-02-17 1:27 ` thomas schorpp 2005-02-17 1:52 ` [INFO] C-Media CMI9761 -A- type , CODEC ID BY MB thomas schorpp 1 sibling, 1 reply; 8+ messages in thread From: thomas schorpp @ 2005-02-17 1:27 UTC (permalink / raw) Cc: alsa-devel Takashi Iwai wrote: > At Wed, 16 Feb 2005 06:21:42 +0100, > thomas schorpp wrote: > >>-----BEGIN PGP SIGNED MESSAGE----- >>Hash: RIPEMD160 >> >>hello, >> >>this device >> >>http://www.cmedia.com.tw/product/CMI9761.htm >> >>the -A- type ive got >> >>has working continuous (slider) master mixer+balance and "working" pcm >>mixer slider with v106 (2.6.10 release kernel alsa) but no more with >>v108 alsa-driver or cvs from yesterday. >> >>please branch for this device (on cheap asrock mass-seller K7VTA+ board >>with via8235 pci). > > > Interesting. How can one detect the difference of model? Does it > have a different codec id? > uh-oh! { 0x434d4941, 0xffffffff, "CMI9738", patch_cm9738, NULL }, { 0x434d4961, 0xffffffff, "CMI9739", patch_cm9739, NULL }, { 0x434d4978, 0xffffffff, "CMI9761", patch_cm9761, NULL }, { 0x434d4982, 0xffffffff, "CMI9761", patch_cm9761, NULL }, /* { 0x434d4983, 0xffffffff, "CMI9761", patch_cm9761, NULL }, */ { 0x434d4983, 0xffffffff, "CMI9761A", patch_cm9761a, NULL }, Feb 17 02:05:42 tom1 kernel: ALSA /usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 0 is [0x434d4983] id. can it be? or im mistaking here: int patch_cm9761a(ac97_t *ac97) { snd_printk(KERN_ERR "AC'97 %d is [0x%x] id.\n", ac97->num, ac97->id); /*identify schorpp s -A- chip*/ ive seen you somewhere in the code branching by mainboard vendor. /* Special exception for ASUS W1000/CMI9739. It does not have an SPDIF in. */ if (ac97->pci && ac97->subsystem_vendor == 0x1043 && ac97->subsystem_device == 0x1843) { well see... tom > > Takashi > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [INFO] C-Media CMI9761 -A- type , CODEC ID BY MB 2005-02-17 1:27 ` [INFO] C-Media CMI9761 -A- type , CODEC ID thomas schorpp @ 2005-02-17 1:52 ` thomas schorpp 2005-02-17 3:37 ` Sergio Monteiro Basto 0 siblings, 1 reply; 8+ messages in thread From: thomas schorpp @ 2005-02-17 1:52 UTC (permalink / raw) Cc: alsa-devel thomas schorpp wrote: > Takashi Iwai wrote: > >> At Wed, 16 Feb 2005 06:21:42 +0100, >> thomas schorpp wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: RIPEMD160 >>> >>> hello, >>> >>> this device >>> >>> http://www.cmedia.com.tw/product/CMI9761.htm >>> >>> the -A- type ive got >>> >>> has working continuous (slider) master mixer+balance and "working" pcm >>> mixer slider with v106 (2.6.10 release kernel alsa) but no more with >>> v108 alsa-driver or cvs from yesterday. >>> >>> please branch for this device (on cheap asrock mass-seller K7VTA+ board >>> with via8235 pci). >> >> >> >> Interesting. How can one detect the difference of model? Does it >> have a different codec id? >> > > uh-oh! > > { 0x434d4941, 0xffffffff, "CMI9738", patch_cm9738, NULL }, > { 0x434d4961, 0xffffffff, "CMI9739", patch_cm9739, NULL }, > { 0x434d4978, 0xffffffff, "CMI9761", patch_cm9761, NULL }, > { 0x434d4982, 0xffffffff, "CMI9761", patch_cm9761, NULL }, > /* { 0x434d4983, 0xffffffff, "CMI9761", patch_cm9761, NULL }, */ > { 0x434d4983, 0xffffffff, "CMI9761A", patch_cm9761a, NULL }, > > > Feb 17 02:05:42 tom1 kernel: ALSA > /usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 > 0 is [0x434d4983] id. > > can it be? > > or im mistaking here: > > int patch_cm9761a(ac97_t *ac97) > { > snd_printk(KERN_ERR "AC'97 %d is [0x%x] id.\n", ac97->num, > ac97->id); /*identify schorpp s -A- chip*/ > > ive seen you somewhere in the code branching by mainboard vendor. > > /* Special exception for ASUS W1000/CMI9739. It does not have an > SPDIF in. */ > if (ac97->pci && > ac97->subsystem_vendor == 0x1043 && > ac97->subsystem_device == 0x1843) { > > > well see... snd_printk(KERN_ERR "AC'97 %d is [0x%x] id. [0x%x] pci, [0x%x] subsystem_vendor [0x%x] subsystem_device \n", ac97->num, ac97->id, ac97->pci, ac97->subsystem_vendor, ac97->subsystem_device); /*identify schorpp s -A- chip*/ Feb 17 02:48:34 tom1 kernel: ALSA /usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 0 is [0x434d4983] id. [0xdff32800] pci, [0x1849] subsystem_vendor [0x9761] subsystem_device hope this helps. tom > > tom > >> >> Takashi >> ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [INFO] C-Media CMI9761 -A- type , CODEC ID BY MB 2005-02-17 1:52 ` [INFO] C-Media CMI9761 -A- type , CODEC ID BY MB thomas schorpp @ 2005-02-17 3:37 ` Sergio Monteiro Basto 2005-02-17 4:10 ` [PATCH V0.1] C-Media CMI9761 -A- type thomas schorpp 0 siblings, 1 reply; 8+ messages in thread From: Sergio Monteiro Basto @ 2005-02-17 3:37 UTC (permalink / raw) To: t.schorpp, Takashi Iwai; +Cc: alsa-devel Hi, After search on https://bugtrack.alsa-project.org/ for CMI9761, 1 issues, resolved ! with some similarity is one ASRock k7vt4a+ with CMedia CMI9761, I have one ASRock P4VT8+ with CMedia CMI9761. After play around with alsamixer, I got sound when unmute PCM and Off (mute) IEC958 Capture Monitor. All others controls does change anything include mute or unmute the Master. Except VIA DXS (this one can do sound balance, left and right). VIA DXS 1, VIA DXS 2 and VIA DXS 3 also doesn't do nothing. Play around with options snd-via82xx dxs_support on file /etc/modprobe.conf only with "options snd-via82xx dxs_support=2" I see any difference but for worst, make disappear VIA DXS, VIA DXS 1, VIA DXS 2 and VIA DXS 3 controls. So, can help you testing alsa CVS ? Now I have to sleep and tomorrow, I am a little busy but, have you some patch in specific to test this C-MEDIA sound card ? Sorry for my weak English, if you don't understand something just ask me, that I will try explain again. thanks, On Thu, 2005-02-17 at 02:52 +0100, thomas schorpp wrote: > thomas schorpp wrote: > > Takashi Iwai wrote: > > > >> At Wed, 16 Feb 2005 06:21:42 +0100, > >> thomas schorpp wrote: > >> > >>> -----BEGIN PGP SIGNED MESSAGE----- > >>> Hash: RIPEMD160 > >>> > >>> hello, > >>> > >>> this device > >>> > >>> http://www.cmedia.com.tw/product/CMI9761.htm > >>> > >>> the -A- type ive got > >>> > >>> has working continuous (slider) master mixer+balance and "working" pcm > >>> mixer slider with v106 (2.6.10 release kernel alsa) but no more with > >>> v108 alsa-driver or cvs from yesterday. > >>> > >>> please branch for this device (on cheap asrock mass-seller K7VTA+ board > >>> with via8235 pci). > >> > >> > >> > >> Interesting. How can one detect the difference of model? Does it > >> have a different codec id? > >> > > > > uh-oh! > > > > { 0x434d4941, 0xffffffff, "CMI9738", patch_cm9738, NULL }, > > { 0x434d4961, 0xffffffff, "CMI9739", patch_cm9739, NULL }, > > { 0x434d4978, 0xffffffff, "CMI9761", patch_cm9761, NULL }, > > { 0x434d4982, 0xffffffff, "CMI9761", patch_cm9761, NULL }, > > /* { 0x434d4983, 0xffffffff, "CMI9761", patch_cm9761, NULL }, */ > > { 0x434d4983, 0xffffffff, "CMI9761A", patch_cm9761a, NULL }, > > > > > > Feb 17 02:05:42 tom1 kernel: ALSA > > /usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 > > 0 is [0x434d4983] id. > > > > can it be? > > > > or im mistaking here: > > > > int patch_cm9761a(ac97_t *ac97) > > { > > snd_printk(KERN_ERR "AC'97 %d is [0x%x] id.\n", ac97->num, > > ac97->id); /*identify schorpp s -A- chip*/ > > > > ive seen you somewhere in the code branching by mainboard vendor. > > > > /* Special exception for ASUS W1000/CMI9739. It does not have an > > SPDIF in. */ > > if (ac97->pci && > > ac97->subsystem_vendor == 0x1043 && > > ac97->subsystem_device == 0x1843) { > > > > > > well see... > > snd_printk(KERN_ERR "AC'97 %d is [0x%x] id. [0x%x] pci, [0x%x] > subsystem_vendor [0x%x] subsystem_device \n", ac97->num, ac97->id, > ac97->pci, ac97->subsystem_vendor, ac97->subsystem_device); /*identify > schorpp s -A- chip*/ > > > Feb 17 02:48:34 tom1 kernel: ALSA > /usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 > 0 is [0x434d4983] id. [0xdff32800] pci, [0x1849] subsystem_vendor > [0x9761] subsystem_device > > hope this helps. > > tom > > > > > tom > > > >> > >> Takashi > >> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-devel -- Sérgio M.B. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH V0.1] C-Media CMI9761 -A- type 2005-02-17 3:37 ` Sergio Monteiro Basto @ 2005-02-17 4:10 ` thomas schorpp 0 siblings, 0 replies; 8+ messages in thread From: thomas schorpp @ 2005-02-17 4:10 UTC (permalink / raw) To: alsa-devel [-- Attachment #1: Type: text/plain, Size: 1848 bytes --] -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 hi, created a patch with branch -A- type support by Mainboard for the start. like youve done it before for a mainboard in the code. and now i want a pcm slider. lets see... hello, Sergio Monteiro Basto wrote: | Hi, | | After search on https://bugtrack.alsa-project.org/ for CMI9761, 1 | issues, resolved ! | with some similarity is one ASRock k7vt4a+ with CMedia CMI9761, I have | one ASRock P4VT8+ with CMedia CMI9761. ive got the follower CMI9761A. got ascreenshot from cmedia windosdriver app, for "unbeliefers" ;) | | After play around with alsamixer, | I got sound when unmute PCM and Off (mute) IEC958 Capture Monitor. | | All others controls does change anything include mute or unmute the | Master. | Except VIA DXS (this one can do sound balance, left and right). | VIA DXS 1, VIA DXS 2 and VIA DXS 3 also doesn't do nothing. | | Play around with | options snd-via82xx dxs_support | on file /etc/modprobe.conf | only with "options snd-via82xx dxs_support=2" I see any difference but | for worst, make disappear VIA DXS, VIA DXS 1, VIA DXS 2 and VIA DXS 3 | controls. | | So, can help you testing alsa CVS ? | Now I have to sleep and tomorrow, I am a little busy but, have you some | patch in specific to test this C-MEDIA sound card ? | | Sorry for my weak English, if you don't understand something just ask | me, that I will try explain again. | | thanks, | all verified yet yesterday, negative thx tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iQCVAwUBQhQZHWqsze5HSzyoAQMpmgP9EB7DJoUUkYMrLbBniIiXZ+4zzPYxfpRN Hv13zEvbxSs4LTzZtgD5Kbmtey55CV+mbaTArhGRKQ/O60RNrxk6pcri3ASxm6DM uTdAWGjk8F1tXoFYF5WWD8tvyIDvGIw/Zh1UGdmeIvpvEjpwrM7i3Ca9UVeYjMk9 z8Laxy3nhIk= =ug02 -----END PGP SIGNATURE----- [-- Attachment #2: alsa-driver-CM9761A-0.1.diff --] [-- Type: text/x-patch, Size: 1779 bytes --] Index: ac97_patch.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.74 diff -U3 -r1.74 ac97_patch.c --- ac97_patch.c 16 Feb 2005 18:27:17 -0000 1.74 +++ ac97_patch.c 17 Feb 2005 03:24:52 -0000 @@ -2035,7 +2035,11 @@ int patch_cm9761(ac97_t *ac97) { unsigned short val; - + + /* CM9761A only on this Mainboard Series for now, due to diverting infos(?) */ + if( !ac97->pci && ac97->subsystem_vendor != 0x1849 && ac97->subsystem_device != 0x9761) + { + /* CM9761 has no Master and PCM volume although the register reacts */ ac97->flags |= AC97_HAS_NO_MASTER_VOL | AC97_HAS_NO_PCM_VOL; snd_ac97_write_cache(ac97, AC97_MASTER, 0x8000); @@ -2085,6 +2089,31 @@ else val = 0x321c; #endif + + /* FIXME: set up GPIO */ + snd_ac97_write_cache(ac97, 0x70, 0x0100); + snd_ac97_write_cache(ac97, 0x72, 0x0020); + + } + else + { + + /* CM9761A */ + + unsigned short val; + + ac97->build_ops = &patch_cm9761_ops; + +#if 0 + /* enable spdif */ + /* force the SPDIF bit in ext_id - codec doesn't set this bit! */ + ac97->ext_id |= AC97_EI_SPDIF; + /* to be sure: we overwrite the ext status bits */ + snd_ac97_write_cache(ac97, AC97_EXTENDED_STATUS, 0x05c0); + snd_ac97_write_cache(ac97, AC97_CM9761_SPDIF_CTRL, 0x0209); + ac97->rates[AC97_RATES_SPDIF] = SNDRV_PCM_RATE_48000; /* 48k only */ +#endif + /* set-up multi channel */ val = snd_ac97_read(ac97, AC97_CM9761_MULTI_CHAN); val |= (1 << 4); snd_ac97_write_cache(ac97, AC97_CM9761_MULTI_CHAN, val); @@ -2092,10 +2121,12 @@ /* FIXME: set up GPIO */ snd_ac97_write_cache(ac97, 0x70, 0x0100); snd_ac97_write_cache(ac97, 0x72, 0x0020); - + } + return 0; } + /* * VIA VT1616 codec ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-02-17 7:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-16 5:21 [INFO] C-Media CMI9761 -A- type , CONTINOUS NOT DISCRETE MASTER/PCM MIXER with 106, please branch, PCM PLAY not working thomas schorpp
2005-02-16 10:47 ` Takashi Iwai
[not found] ` <42138EE3.8040201@gmx.de>
2005-02-16 18:29 ` Takashi Iwai
2005-02-17 7:54 ` [INFO] C-Media CMI9761 -A- type , DEVICE REVISION IS 8D thomas schorpp
2005-02-17 1:27 ` [INFO] C-Media CMI9761 -A- type , CODEC ID thomas schorpp
2005-02-17 1:52 ` [INFO] C-Media CMI9761 -A- type , CODEC ID BY MB thomas schorpp
2005-02-17 3:37 ` Sergio Monteiro Basto
2005-02-17 4:10 ` [PATCH V0.1] C-Media CMI9761 -A- type thomas schorpp
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.