Takashi Iwai wrote: > At Thu, 10 Feb 2005 14:16:12 -0500, > Ron Cococcia wrote: > >>I had been looking through that block of code, and had made some of my >>own "tweaks". What I did was make "reg_ok" an array (size 4, all >>initialized to 0). I used the codec index (cidx) to index into that >>array. The idea is that there would be a reg_ok for each codec, instead >>of just 1 for all codecs. This correctly set the output on all codecs >>after making the change. > > > Yeah, that's better than my last hack. Could you create a patch? Attached. I had a backup copy of the file that I diff'd against. This is also based off of 1.0.8 files, but from what I could see the ac97_pcm.c file hasn't changed. You'll also see a few snd_printk's in there that I had for testing/debugging purposes. You can get rid of them if you want. I'm not sure what the implications of changing the rates on all of the codecs are. Is it possible that, in a multiple codec configuration, there would be a situation where they would want to be handling different rates? > Given that overriding codecs with NCR becomes popular, it might be > nice to have a module option to specify the codecs as bitmask. > The below is a quick hack. I think I had tried something similar, but it oops'd the module. When I did this, however, I knew beforehand that it was likely to not work. Your hack looks safer though. I'll pop this in when I get some time and play with it and see how it works. Thanks, Ron