hda intel driver and no surround sound with nvidia mcp55 (chip ID RealTek 888)
Hi there,
I'm trying to get multichannel sound working on my nvidia nforce 590 based mobo that uses the intel hd audio (nvidia mcp55) chipset. It plays fine in two channels but any attempts to use -Dsurround51 or -Dsurround40 fail. Ie:
Playing WAVE 'space_battle.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
aplay: set_params:906: Channels count non available
I've been working on it long enough that I suspect it's a driver limitation (but please correct me if I'm wrong!). I've verified that the card works in surround mode in Windows, so I know the hardware is fine.
Is there anything I can do to get my soundcard working? Or if it's a driver issue, is there anything I can do to help?
Thanks,
Tim.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 10 lines · Tim Burrell
Hi there,
I'm trying to get multichannel sound working on my nvidia nforce 590 based mobo that uses the intel hd audio (nvidia mcp55) chipset. It plays fine in two channels but any attempts to use -Dsurround51 or -Dsurround40 fail. Ie:
Playing WAVE 'space_battle.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
aplay: set_params:906: Channels count non available
That's correct. Use -Dplug:surround40, because the count of channels from the .wav file has to be converted to four.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 11 lines
Quoted 8 lines
I'm trying to get multichannel sound working on my nvidia nforce 590 based mobo that uses the intel hd audio (nvidia mcp55) chipset. It plays fine in two channels but any attempts to use -Dsurround51 or -Dsurround40 fail. Ie:
Playing WAVE 'space_battle.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
aplay: set_params:906: Channels count non availableThat's correct. Use -Dplug:surround40, because the count of channels from the .wav file has to be converted to four.
I just upgraded to 1.0.12_rc2, and I've got a lot more mixer controls in alsamixer now. I can see front, rear, surround, etc. And now I can finally specify -Dplug:surround71 to get 8 channel audio!
However, there is one problem. On my card the channels are not exactly correct when running speaker-test. The side and rear speakers are reversed. I double checked this with my card's manual, and in Windows.
In dmesg I see the following:
hda_codec: Unknown model for ALC883, trying auto-probe from BIOS...
pdplus: version 0.0.5
hda-intel: Invalid position buffer, using LPIB read method instead.
Also, curiously, using the same settings as speaker-test (which works fine), aplay hangs when trying to play multichannel audio files. Same for mplayer (with or without -channels settings).
Thanks,
Tim.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
At Sat, 05 Aug 2006 16:42:44 -0300,
Quoted 13 lines · Tim Burrell
Quoted 6 lines
Quoted 6 lines
I'm trying to get multichannel sound working on my nvidia nforce 590 based mobo that uses the intel hd audio (nvidia mcp55) chipset. It plays fine in two channels but any attempts to use -Dsurround51 or -Dsurround40 fail. Ie:
Quoted 6 lines
Quoted 3 lines
Playing WAVE 'space_battle.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
aplay: set_params:906: Channels count non availableThat's correct. Use -Dplug:surround40, because the count of channels from the .wav file has to be converted to four.
Quoted 7 lines
I just upgraded to 1.0.12_rc2, and I've got a lot more mixer controls in alsamixer now. I can see front, rear, surround, etc. And now I can finally specify -Dplug:surround71 to get 8 channel audio!
However, there is one problem. On my card the channels are not exactly correct when running speaker-test. The side and rear speakers are reversed. I double checked this with my card's manual, and in Windows.
Does -Dplug:surround51 work as expected?
Quoted 5 lines
In dmesg I see the following:
hda_codec: Unknown model for ALC883, trying auto-probe from BIOS...
pdplus: version 0.0.5
hda-intel: Invalid position buffer, using LPIB read method instead.
This is irrelevant.
Quoted 3 lines
Also, curiously, using the same settings as speaker-test (which works fine), aplay hangs when trying to play multichannel audio files. Same for mplayer (with or without -channels settings).
What do you mean "hang"?
Takashi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 14 lines
Quoted 14 lines
Quoted 10 lines
Quoted 8 lines
I'm trying to get multichannel sound working on my nvidia nforce 590 based mobo that uses the intel hd audio (nvidia mcp55) chipset. It plays fine in two channels but any attempts to use -Dsurround51 or -Dsurround40 fail. Ie:
Playing WAVE 'space_battle.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
aplay: set_params:906: Channels count non availableThat's correct. Use -Dplug:surround40, because the count of channels from the .wav file has to be converted to four.
I just upgraded to 1.0.12_rc2, and I've got a lot more mixer controls in alsamixer now. I can see front, rear, surround, etc. And now I can finally specify -Dplug:surround71 to get 8 channel audio!
Quoted 5 lines
Quoted 3 lines
However, there is one problem. On my card the channels are not exactly correct when running speaker-test. The side and rear speakers are reversed. I double checked this with my card's manual, and in Windows.
Does -Dplug:surround51 work as expected?
speaker-test hangs when I use plug:surround51, however since upgrading I incorrectly said that mplayer hangs when playing multichannel audio. When playing a 6 channel audio file with mplayer (it says it uses surround51) it also has the rear and side channels reversed. Obviously since it's 6 channel audio the side channels are not used, but the rear channels come out of the side speakers.
Quoted 6 lines
Quoted 4 lines
Also, curiously, using the same settings as speaker-test (which works fine), aplay hangs when trying to play multichannel audio files. Same for mplayer (with or without -channels settings).
What do you mean "hang"?
By hang, I mean aplay and speaker-test open the device fine, and begin playing, but do not play any samples and then just sit there indefinitely. Ie I see the following output from speaker-test -Dplug:surround51 -c 6:
Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 22 to 5461
Period size range from 11 to 2730
Using max buffer size 5460
Periods = 4
was set period_size = 1365
was set buffer_size = 5460
0 - Front Left
Then no audio is heard and it sits there and does nothing until I press ctrl-c.
The same goes for aplay using either -Dplug:surround51 OR -Dplug:surround71.
Why mplayer works and aplay doesn't is a mystery to me. It's also quite odd that speaker-test works in 8 channels and aplay doesn't.
Either way I'm happy enough with the setup. I can watch movies in surround and that's really all I wanted, but I thought this information might be useful to you ALSA devs.
I don't mind testing, or helping out so if I can provide more information or if there's anything I can do I'd be happy to lend a hand.
Tim.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
At Mon, 07 Aug 2006 09:52:08 -0300,
Quoted 19 lines · Tim Burrell
Quoted 19 lines
Quoted 18 lines
Quoted 11 lines
Quoted 9 lines
I'm trying to get multichannel sound working on my nvidia nforce 590 based mobo that uses the intel hd audio (nvidia mcp55) chipset. It plays fine in two channels but any attempts to use -Dsurround51 or -Dsurround40 fail. Ie:
Playing WAVE 'space_battle.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
aplay: set_params:906: Channels count non availableThat's correct. Use -Dplug:surround40, because the count of channels from the .wav file has to be converted to four.
I just upgraded to 1.0.12_rc2, and I've got a lot more mixer controls in alsamixer now. I can see front, rear, surround, etc. And now I can finally specify -Dplug:surround71 to get 8 channel audio!
However, there is one problem. On my card the channels are not exactly correct when running speaker-test. The side and rear speakers are reversed. I double checked this with my card's manual, and in Windows.
Quoted 8 lines
Quoted 1 line
Does -Dplug:surround51 work as expected?
speaker-test hangs when I use plug:surround51, however since upgrading I incorrectly said that mplayer hangs when playing multichannel audio. When playing a 6 channel audio file with mplayer (it says it uses surround51) it also has the rear and side channels reversed. Obviously since it's 6 channel audio the side channels are not used, but the rear channels come out of the side speakers.
OK, then it's either a bug of BIOS or a specification of HD-audio. A tentative patch is below.
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
Also, curiously, using the same settings as speaker-test (which works fine), aplay hangs when trying to play multichannel audio files. Same for mplayer (with or without -channels settings).
What do you mean "hang"?
By hang, I mean aplay and speaker-test open the device fine, and begin playing, but do not play any samples and then just sit there indefinitely.
Interesting. So, you started like:
% aplay -Dplug:surround51 somefile.wav
?? Does any process block the sound device? You can check it via "lsof /dev/snd/pcm* /dev/dsp*", for example.
Quoted 15 lines
Ie I see the following output from `speaker-test
-Dplug:surround51 -c 6`:Playback device is plug:surround51
Stream parameters are 48000Hz,S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 22 to 5461
Period size range from 11 to 2730
Using max buffer size 5460
Periods = 4
was setperiod_size= 1365
was setbuffer_size= 5460
0 - Front Left
Quoted 4 lines
Then no audio is heard and it sits there and does nothing until I press ctrl-c.
The same goes for aplay using either -Dplug:surround51 OR -Dplug:surround71.
"same" == "aplay doesn't process any samples"?
What shows "aplay -v -Dplug:surround51 some6ch.wav" ?
Takashi
pci/hda/hda_codec.c +3 -0
@@ -2122,16 +2122,19 @@ int snd_hda_parse_pin_def_config(struct*/ switch (cfg->line_outs) {case 3 : +case 4 : nid = cfg->line_out_pins[1 ]; cfg->line_out_pins[1 ] = cfg->line_out_pins[2 ]; cfg->line_out_pins[2 ] = nid;break ; +#if 0 /* seems wrong */ case 4 : nid = cfg->line_out_pins[1 ]; cfg->line_out_pins[1 ] = cfg->line_out_pins[3 ]; cfg->line_out_pins[3 ] = cfg->line_out_pins[2 ]; cfg->line_out_pins[2 ] = nid;break ; +#endif }/*
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 25 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 10 lines
Quoted 8 lines
I'm trying to get multichannel sound working on my nvidia nforce 590 based mobo that uses the intel hd audio (nvidia mcp55) chipset. It plays fine in two channels but any attempts to use -Dsurround51 or -Dsurround40 fail. Ie:
Playing WAVE 'space_battle.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
aplay: set_params:906: Channels count non availableThat's correct. Use -Dplug:surround40, because the count of channels from the .wav file has to be converted to four.
I just upgraded to 1.0.12_rc2, and I've got a lot more mixer controls in alsamixer now. I can see front, rear, surround, etc. And now I can finally specify -Dplug:surround71 to get 8 channel audio!
However, there is one problem. On my card the channels are not exactly correct when running speaker-test. The side and rear speakers are reversed. I double checked this with my card's manual, and in Windows.
Quoted 7 lines
Quoted 1 line
Does -Dplug:surround51 work as expected?
speaker-test hangs when I use plug:surround51, however since upgrading I incorrectly said that mplayer hangs when playing multichannel audio. When playing a 6 channel audio file with mplayer (it says it uses surround51) it also has the rear and side channels reversed. Obviously since it's 6 channel audio the side channels are not used, but the rear channels come out of the side speakers.
Quoted 2 lines
OK, then it's either a bug of BIOS or a specification of HD-audio. A tentative patch is below.
Thanks the patch! I applied it, and channel output now works as expected! Must be irritating having to cope with all the different hardware variations / flaws!
Quoted 11 lines
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Also, curiously, using the same settings as speaker-test (which works fine), aplay hangs when trying to play multichannel audio files. Same for mplayer (with or without -channels settings).
What do you mean "hang"?
By hang, I mean aplay and speaker-test open the device fine, and begin playing, but do not play any samples and then just sit there indefinitely.
Interesting. So, you started like:
% aplay -Dplug:surround51 somefile.wav
Yes, originally I also put "-c 6" in there, but I just tried exactly as above, and got the same results. aplay looks like it starts playing, and then sits indefinitely.
Quoted 2 lines
?? Does any process block the sound device? You can check it via "lsof
/dev/snd/pcm*/dev/dsp*", for example.
nope, lsof as you suggested showed nothing is blocking, and when something else is using the device aplay will give me a "device busy" error which it does not in this case. Also, if I run aplay on the same audio file without specifying -Dplug:surround51 aplay will play the audio without hanging (albeit in 2 channel mode).
Quoted 8 lines
Quoted 8 lines
Ie I see the following output from `speaker-test
-Dplug:surround51 -c 6`:Playback device is plug:surround51
Stream parameters are 48000Hz,S16_LE, 6 channels
...
0 - Front Left
Quoted 6 lines
Quoted 4 lines
Then no audio is heard and it sits there and does nothing until I press ctrl-c.
The same goes for aplay using either -Dplug:surround51 OR -Dplug:surround71.
"same" == "aplay doesn't process any samples"?
Sorry, I can't say for sure what aplay is doing, but it looks to me like it does the same thing. It opens the sound card, and appears to start playing, but no audio is heard, and it sits indefinitely, just as speaker-test does when using plug:surround51.
Quoted 1 line
What shows "aplay -v -Dplug:surround51 some6ch.wav" ?
Here is the output:
% aplay -v -Dplug:surround51 chan-id.wav
Playing WAVE 'chan-id.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
Plug PCM: Soft volume PCM
Control: PCM Playback Volumemin_dB: -48
resolution: 256
Its setup is:
stream : PLAYBACK access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 6 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 5460 period_size : 1365 period_time : 30952 tick_time : 1000 tstamp_mode : NONE period_step : 1 sleep_min : 0 avail_min : 1365 xfer_align : 1365
start_threshold : 5460
stop_threshold : 5460
silence_threshold: 0
silence_size : 0
boundary : 1431306240
Slave: Hardware PCM card 0 'HDA NVidia' device 0 subdevice 0 Its setup is:
stream : PLAYBACK access : MMAP_INTERLEAVED format : S16_LE subformat : STD channels : 6 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 5460 period_size : 1365 period_time : 30952 tick_time : 1000 tstamp_mode : NONE period_step : 1 sleep_min : 0 avail_min : 1365 xfer_align : 1365
start_threshold : 5460
stop_threshold : 5460
silence_threshold: 0
silence_size : 0
boundary : 1431306240
Then after that there is no output and it sits there until I ctlr-c it.
Tim.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
At Mon, 07 Aug 2006 10:27:42 -0300,
Quoted 41 lines · Tim Burrell
Quoted 26 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 11 lines
Quoted 9 lines
I'm trying to get multichannel sound working on my nvidia nforce 590 based mobo that uses the intel hd audio (nvidia mcp55) chipset. It plays fine in two channels but any attempts to use -Dsurround51 or -Dsurround40 fail. Ie:
Playing WAVE 'space_battle.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6
aplay: set_params:906: Channels count non availableThat's correct. Use -Dplug:surround40, because the count of channels from the .wav file has to be converted to four.
I just upgraded to 1.0.12_rc2, and I've got a lot more mixer controls in alsamixer now. I can see front, rear, surround, etc. And now I can finally specify -Dplug:surround71 to get 8 channel audio!
However, there is one problem. On my card the channels are not exactly correct when running speaker-test. The side and rear speakers are reversed. I double checked this with my card's manual, and in Windows.
Quoted 7 lines
Quoted 1 line
Does -Dplug:surround51 work as expected?
speaker-test hangs when I use plug:surround51, however since upgrading I incorrectly said that mplayer hangs when playing multichannel audio. When playing a 6 channel audio file with mplayer (it says it uses surround51) it also has the rear and side channels reversed. Obviously since it's 6 channel audio the side channels are not used, but the rear channels come out of the side speakers.
Quoted 2 lines
OK, then it's either a bug of BIOS or a specification of HD-audio. A tentative patch is below.
Thanks the patch! I applied it, and channel output now works as expected! Must be irritating having to cope with all the different hardware variations / flaws!
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Also, curiously, using the same settings as speaker-test (which works fine), aplay hangs when trying to play multichannel audio files. Same for mplayer (with or without -channels settings).
What do you mean "hang"?
By hang, I mean aplay and speaker-test open the device fine, and begin playing, but do not play any samples and then just sit there indefinitely.
Quoted 7 lines
Quoted 3 lines
Interesting. So, you started like:
% aplay -Dplug:surround51 somefile.wav
Yes, originally I also put "-c 6" in there, but I just tried exactly as above, and got the same results. aplay looks like it starts playing, and then sits indefinitely.
The "-c 6" plays no role there because the number of channels is taken from WAV file, anyway.
Quoted 8 lines
Quoted 2 lines
?? Does any process block the sound device? You can check it via "lsof
/dev/snd/pcm*/dev/dsp*", for example.nope, lsof as you suggested showed nothing is blocking, and when something else is using the device aplay will give me a "device busy" error which it does not in this case. Also, if I run aplay on the same audio file without specifying -Dplug:surround51 aplay will play the audio without hanging (albeit in 2 channel mode).
I remember that I've seen a similar bug. This is likely related with the buffer and period size... Will check this issue later.
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642