S/PDIF on AD1980 patch
Quoted 8 lines
Quoted 4 lines
Here's the patch I promised. I had some trouble compiling the CVS version (not the drivers but libs, still don't know why), but I supplemented with
[...]
Send us unified diff, please. It's more readable to verify the contents.
Will do. Once I get home :-).
I thought since I'm only adding lines anyway it's more compact, but you're right, it's easier to see it in context.
Another question though. I still cannot get the AC3 pass-through to work. I assume the spdif source must be set to AC-Link (which is hw-reset default anyway), and I figure all other stuff should be set by alsa (like Category Code, etc.). I have no problem with AC3 on emu10k1, so I guess mplayer is requesting correct stream params from alsa. Yet on AC97 I can't get it to work (amp keeps indicating a PCM stream). Any suggestions what to look for?
--------------
Fycio (J.Sobierski)
[email protected]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
At Mon, 17 Feb 2003 08:01:27 -0800,
Quoted 8 lines · Jaroslaw Sobierski
Another question though. I still cannot get the AC3 pass-through to work. I assume the spdif source must be set to AC-Link (which is hw-reset default anyway), and I figure all other stuff should be set by alsa (like Category Code, etc.). I have no problem with AC3 on emu10k1, so I guess mplayer is requesting correct stream params from alsa. Yet on AC97 I can't get it to work (amp keeps indicating a PCM stream). Any suggestions what to look for?
hmm.. ICH4 has a separate SPDIF channel and it looks like we don't use this properly. that is, SPDIF is routed via the normal slot 3/4. perhaps we should route the spdif via slot 10/11 (in GLOB_CNT bit 30:31 to 1:1), and set SPSA to the corresponding value.
the definition of iec958 in ICH.conf should be rewritten, too...
anyway, can you check whether the register 0x3a is set correctly when mplayer tries to play ac3?
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Quoting Takashi Iwai <[email protected]>:
Quoted 12 lines
At Mon, 17 Feb 2003 08:01:27 -0800,
Quoted 6 lines · Jaroslaw Sobierski
Another question though. I still cannot get the AC3 pass-through to work. I assume the spdif source must be set to AC-Link (which is hw-reset default
anyway), and I figure all other stuff should be set by alsa (like
Category
Quoted 2 lines
Code, etc.). I have no problem with AC3 on emu10k1, so I guess mplayer is requesting correct stream params from alsa. Yet on AC97 I can't get it to
Quoted 8 lines
Quoted 1 line
work (amp keeps indicating a PCM stream). Any suggestions what to look
for?
hmm.. ICH4 has a separate SPDIF channel and it looks like we don't use this properly. that is, SPDIF is routed via the normal slot 3/4. perhaps we should route the spdif via slot 10/11 (in
GLOB_CNTbit 30:31 to 1:1), and set SPSA to the corresponding value.
the definition of iec958 in ICH.conf should be rewritten, too...
The default configuration for ad1980 is to use slots 7/8. 3/4 is not the best choice since the DACs are set to this by default. I don't think ICH4 has anything to do with this, I downloaded the specs a while ago only to realize that it just gives you access to the ac97 regs and that's it. There's practically nothing to configure on the south bridge itself.
Quoted 4 lines
anyway, can you check whether the register
0x3ais set correctly when mplayer tries to play ac3?
Yes and no :-). I dumped all ac97 regs from /proc and was going to send you teh list, but they did not change at all between PCM and ac3. I later discovered, quite by accident, that for some reason ac3 is never routed to the ac97 codec - when I choose the hwac3 option the stream always goes to emu10k1 (and plays correctly over its spdif), even though I explicitly specify "hw:1". I have to try unloading the modules for emu and see what happens then. But this seems anyway a bug. Unless the ICH driver declares no possibilty to create open ac3 stream and alsa falls back on the default card?
--------------
Fycio (J.Sobierski)
[email protected]
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge
At Thu, 20 Feb 2003 01:01:52 -0800,
Quoted 23 lines · Jaroslaw Sobierski
Quoting Takashi Iwai <[email protected]>:
Quoted 12 lines
At Mon, 17 Feb 2003 08:01:27 -0800,
Quoted 6 lines · Jaroslaw Sobierski
Another question though. I still cannot get the AC3 pass-through to work. I assume the spdif source must be set to AC-Link (which is hw-reset default
anyway), and I figure all other stuff should be set by alsa (like
Category
Quoted 2 lines
Code, etc.). I have no problem with AC3 on emu10k1, so I guess mplayer is requesting correct stream params from alsa. Yet on AC97 I can't get it to
Quoted 8 lines
Quoted 1 line
work (amp keeps indicating a PCM stream). Any suggestions what to look
for?
hmm.. ICH4 has a separate SPDIF channel and it looks like we don't use this properly. that is, SPDIF is routed via the normal slot 3/4. perhaps we should route the spdif via slot 10/11 (in
GLOB_CNTbit 30:31 to 1:1), and set SPSA to the corresponding value.
the definition of iec958 in ICH.conf should be rewritten, too...
Quoted 5 lines
The default configuration for ad1980 is to use slots 7/8. 3/4 is not the best choice since the DACs are set to this by default. I don't think ICH4 has anything to do with this, I downloaded the specs a while ago only to realize that it just gives you access to the ac97 regs and that's it.
no, as mentioned above, ICH4 has the configuration of SPDIF out slots via GLOB_CNT bits 30:31. please check these bits.
Quoted 6 lines
There's practically nothing to configure on the south bridge itself.
Quoted 4 lines
anyway, can you check whether the register
0x3ais set correctly when mplayer tries to play ac3?
Quoted 9 lines
Yes and no :-). I dumped all ac97 regs from /proc and was going to send you teh list, but they did not change at all between PCM and ac3. I later discovered, quite by accident, that for some reason ac3 is never routed to the ac97 codec - when I choose the hwac3 option the stream always goes to emu10k1 (and plays correctly over its spdif), even though I explicitly specify "hw:1". I have to try unloading the modules for emu and see what happens then. But this seems anyway a bug. Unless the ICH driver declares no possibilty to create open ac3 stream and alsa falls back on the default card?
can you try ac3dec in alsa-tools (with -C option).
if it works, then it's a bug of mplayer. mplayer should access "spdif" or "iec958" as the pcm name.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge
Quoting Takashi Iwai <[email protected]>:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
hmm.. ICH4 has a separate SPDIF channel and it looks like we don't use this properly. that is, SPDIF is routed via the normal slot 3/4. perhaps we should route the spdif via slot 10/11 (in
GLOB_CNTbit 30:31 to 1:1), and set SPSA to the corresponding value.
the definition of iec958 in ICH.conf should be rewritten, too...
Quoted 8 lines
Quoted 5 lines
The default configuration for ad1980 is to use slots 7/8. 3/4 is not the best choice since the DACs are set to this by default. I don't think ICH4 has anything to do with this, I downloaded the specs a while ago only to realize that it just gives you access to the ac97 regs and that's it.
no, as mentioned above, ICH4 has the configuration of SPDIF out slots via
GLOB_CNTbits 30:31. please check these bits.
You're absoultely right (of course). I didn't get that far in the ICH4 docs, I thought the ac97 chapter covers it all :-).
Quoted 14 lines
Quoted 13 lines
There's practically nothing to configure on the south bridge itself.
Quoted 4 lines
anyway, can you check whether the register
0x3ais set correctly when mplayer tries to play ac3?Yes and no :-). I dumped all ac97 regs from /proc and was going to send you teh list, but they did not change at all between PCM and ac3. I later discovered, quite by accident, that for some reason ac3 is never routed to the ac97 codec - when I choose the hwac3 option the stream always goes to emu10k1 (and plays correctly over its spdif), even though I explicitly specify "hw:1". I have to try unloading the modules for emu and
Quoted 7 lines
Quoted 3 lines
see what happens then. But this seems anyway a bug. Unless the ICH driver declares no possibilty to create open ac3 stream and alsa falls back on the default card?
can you try ac3dec in alsa-tools (with -C option).
if it works, then it's a bug of mplayer. mplayer should access "spdif" or "iec958" as the pcm name.
Worked like a charm! No problem, on any of the two cards. So I guess I have to start patching mplayer now ;-) (which I was gonna do eventually anyway, since it doesn't handle dts streams correctly).
Thanks a lot for all your help guys! You've greatly help me enjoy my audio experience on Linux.
Fycio.
--------------
Fycio (J.Sobierski)
[email protected]
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge