[alsa-devel] Surround problems on ALC883
Hi all,
I have problems with chip Realtek ALC883 (lspci: 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)) and surround sound.
Stereo sound is working (games, music) fine - all 6 speaker are playing.
But when I tried to run "aplay chan-id.wav", i've heard only "front left" (front & rear left + center were playing) and "front right" (right front & rear were playing), then was silence until the end of the file.
Running "aplay -Dsurround51 chan-id.wav" causes that aplay hangs-up without any output. Running it with -v parameter produces this output:
Playing WAVE 'Desktop/Surround-SDL-testfiles/chan-id.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6 Soft volume PCM Control: PCM Playback Volume min_dB: -51 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 : 6147413491360727040 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 : 6147413491360727040
and then hang up until i press ctrl+c. Same results i get with speaker-test.
I'm using alsa-lib-1.0.14-0.4.rc3.fc7
I've found similar problem in archive (about half a year old) but it still seems it isn't working. Is there any possibility, that this will be fixed in future?
Thanks for all your help (and please leave me in CC, i'm not on mailing-list).
Following lsmod & /proc/asound/card0/codec#0
[cdome@andromeda ~]$ /sbin/lsmod |grep snd snd_hda_intel 27936 2 snd_hda_codec 262400 1 snd_hda_intel snd_seq_dummy 11908 0 snd_seq_oss 40448 0 snd_seq_midi_event 16128 1 snd_seq_oss snd_seq 60704 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_seq_device 16404 3 snd_seq_dummy,snd_seq_oss,snd_seq snd_pcm_oss 50944 0 snd_mixer_oss 24320 2 snd_pcm_oss snd_pcm 90888 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss snd_timer 30088 2 snd_seq,snd_pcm snd 67624 12 snd_hda_intel,snd_hda_codec,snd_seq_dummy,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer soundcore 17505 2 snd snd_page_alloc 16912 2 snd_hda_intel,snd_pcm
[cdome@andromeda ~]$ cat /proc/asound/card0/codec#0 Codec: Realtek ALC883 Address: 0 Vendor Id: 0x10ec0883 Subsystem Id: 0x1458e601 Revision Id: 0x100002 Default PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Default Amp-In caps: N/A Default Amp-Out caps: N/A Node 0x02 [Audio Output] wcaps 0x11: Stereo PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Node 0x03 [Audio Output] wcaps 0x11: Stereo PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Node 0x04 [Audio Output] wcaps 0x11: Stereo PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Node 0x05 [Audio Output] wcaps 0x11: Stereo PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital PCM: rates [0x560]: 44100 48000 96000 192000 bits [0x1e]: 16 20 24 32 formats [0x1]: PCM Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In Amp-In caps: ofs=0x08, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x10 0x10] PCM: rates [0x160]: 44100 48000 96000 bits [0x6]: 16 20 formats [0x1]: PCM Connection: 1 0x23 Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In Amp-In caps: ofs=0x08, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x00 0x00] PCM: rates [0x160]: 44100 48000 96000 bits [0x6]: 16 20 formats [0x1]: PCM Connection: 1 0x22 Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital PCM: rates [0x560]: 44100 48000 96000 192000 bits [0x1e]: 16 20 24 32 formats [0x1]: PCM Connection: 1 0x1f Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x80 0x80] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x17 0x17] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] Connection: 10 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0 Amp-Out vals: [0x1a 0x1a] Connection: 2 0x02 0x0b Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0 Amp-Out vals: [0x1a 0x1a] Connection: 2 0x03 0x0b Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0 Amp-Out vals: [0x1a 0x04] Connection: 2 0x04 0x0b Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0 Amp-Out vals: [0x00 0x00] Connection: 2 0x05 0x0b Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00] Pincap 0x083e: IN OUT HP Detect Pin Default 0x01014410: [Jack] Line Out at Ext Rear Conn = 1/8, Color = Green Pin-ctls: 0x40: OUT Connection: 5 0x0c* 0x0d 0x0e 0x0f 0x26 Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00] Pincap 0x083e: IN OUT HP Detect Pin Default 0x01011412: [Jack] Line Out at Ext Rear Conn = 1/8, Color = Black Pin-ctls: 0x40: OUT Connection: 5 0x0c 0x0d* 0x0e 0x0f 0x26 Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00] Pincap 0x083e: IN OUT HP Detect Pin Default 0x01016411: [Jack] Line Out at Ext Rear Conn = 1/8, Color = Orange Pin-ctls: 0x40: OUT Connection: 5 0x0c 0x0d 0x0e* 0x0f 0x26 Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00] Pincap 0x083e: IN OUT HP Detect Pin Default 0x01012414: [Jack] Line Out at Ext Rear Conn = 1/8, Color = Grey Pin-ctls: 0x40: OUT Connection: 5 0x0c 0x0d 0x0e 0x0f* 0x26 Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x08173e: IN OUT HP Detect Pin Default 0x01a19c40: [Jack] Mic at Ext Rear Conn = 1/8, Color = Pink Pin-ctls: 0x24: IN Connection: 5 0x0c* 0x0d 0x0e 0x0f 0x26 Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x08173e: IN OUT HP Detect Pin Default 0x02a19c50: [Jack] Mic at Ext Front Conn = 1/8, Color = Pink Pin-ctls: 0x24: IN Connection: 5 0x0c* 0x0d 0x0e 0x0f 0x26 Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x08173e: IN OUT HP Detect Pin Default 0x01813c41: [Jack] Line In at Ext Rear Conn = 1/8, Color = Blue Pin-ctls: 0x20: IN Connection: 5 0x0c* 0x0d 0x0e 0x0f 0x26 Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x08173e: IN OUT HP Detect Pin Default 0x02214c20: [Jack] HP Out at Ext Front Conn = 1/8, Color = Green Pin-ctls: 0xc0: OUT HP Connection: 5 0x0c* 0x0d 0x0e 0x0f 0x26 Node 0x1c [Pin Complex] wcaps 0x400001: Stereo Pincap 0x0820: IN Pin Default 0x9933014f: [Fixed] CD at Int ATAPI Conn = ATAPI, Color = Unknown Pin-ctls: 0x00: Node 0x1d [Pin Complex] wcaps 0x400000: Mono Pincap 0x0820: IN Pin Default 0x411111f0: [N/A] Speaker at Ext Rear Conn = 1/8, Color = Black Pin-ctls: 0x00: Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital Pincap 0x0810: OUT Pin Default 0x014b6130: [Jack] SPDIF Out at Ext Rear Conn = Comb, Color = Orange Pin-ctls: 0x00: Connection: 1 0x06 Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital Pincap 0x0820: IN Pin Default 0x01cb7160: [Jack] SPDIF In at Ext Rear Conn = Comb, Color = Yellow Pin-ctls: 0x00: Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x22 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] Amp-Out caps: N/A Amp-Out vals: [0x00 0x00] Connection: 11 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b Node 0x23 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] Amp-Out caps: N/A Amp-Out vals: [0x00 0x00] Connection: 11 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x25 [Audio Output] wcaps 0x11: Stereo PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Node 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0 Amp-Out vals: [0x00 0x00] Connection: 2 0x25 0x0b
At Tue, 17 Apr 2007 19:42:42 +0200, Pavel Patz wrote:
Hi all,
I have problems with chip Realtek ALC883 (lspci: 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)) and surround sound.
Stereo sound is working (games, music) fine - all 6 speaker are playing.
But when I tried to run "aplay chan-id.wav", i've heard only "front left" (front & rear left + center were playing) and "front right" (right front & rear were playing), then was silence until the end of the file.
Running "aplay -Dsurround51 chan-id.wav" causes that aplay hangs-up without any output. Running it with -v parameter produces this output:
Playing WAVE 'Desktop/Surround-SDL-testfiles/chan-id.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6 Soft volume PCM Control: PCM Playback Volume min_dB: -51 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 : 6147413491360727040 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 : 6147413491360727040
and then hang up until i press ctrl+c. Same results i get with speaker-test.
Looks like the stream setup doesn't match with your device.
I'm using alsa-lib-1.0.14-0.4.rc3.fc7
The more important thing is the version of ALSA driver you're using. Try the latest ALSA version (not released one), HG version, at first. If you don't want / have HG, try the daily snapshot tarball below: ftp://ftp.suse.com/pub/projects/alsa/snapshot/
Then check whether it's a supported device or not. If yours is an unsupported one, you'll see a kernel messages like "unknown model, using BIOS..." Anyway, you can try different model option value for snd-hda-intel module, as listed in Documentation/ALSA-Configuration.txt.
Takashi
Dne st 18. dubna 2007 Takashi Iwai napsal(a):
At Tue, 17 Apr 2007 19:42:42 +0200,
Pavel Patz wrote:
Hi all,
I have problems with chip Realtek ALC883 (lspci: 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)) and surround sound.
Stereo sound is working (games, music) fine - all 6 speaker are playing.
But when I tried to run "aplay chan-id.wav", i've heard only "front left" (front & rear left + center were playing) and "front right" (right front & rear were playing), then was silence until the end of the file.
Running "aplay -Dsurround51 chan-id.wav" causes that aplay hangs-up without any output. Running it with -v parameter produces this output:
Playing WAVE 'Desktop/Surround-SDL-testfiles/chan-id.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6 Soft volume PCM Control: PCM Playback Volume min_dB: -51 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 : 6147413491360727040 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 : 6147413491360727040
and then hang up until i press ctrl+c. Same results i get with speaker-test.
Looks like the stream setup doesn't match with your device.
I'm using alsa-lib-1.0.14-0.4.rc3.fc7
The more important thing is the version of ALSA driver you're using. Try the latest ALSA version (not released one), HG version, at first. If you don't want / have HG, try the daily snapshot tarball below: ftp://ftp.suse.com/pub/projects/alsa/snapshot/
Then check whether it's a supported device or not. If yours is an unsupported one, you'll see a kernel messages like "unknown model, using BIOS..." Anyway, you can try different model option value for snd-hda-intel module, as listed in Documentation/ALSA-Configuration.txt.
Takashi
Hi,
thanks a lot, it is working now!!!
1) upgrade to last (today's) snaphot helped - there were no hang-ups when using -Dsurround51
2) Auto-detection is not working (i got "hda_codec: Unknown model for ALC883, trying auto-probe from BIOS...") - just must use model=6stack-dig
[cdome@andromeda ~]$ /sbin/lspci | grep Audio 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)
3) When starting alsa i usualy get one of these messages:
[root@andromeda Audition]# /etc/init.d/alsasound start Starting sound driver: snd-hda-intel done /usr/sbin/alsactl: load_state:1326: No soundcards found...
or
[root@andromeda Audition]# /etc/init.d/alsasound start Starting sound driver: snd-hda-intel done XXX write TLV...
however sound is working properly. From my view is hard to say under which conditions i get which one - just sometimes first one and sometimes second one.
4) It seems there are Center+LFE and Rear Left+Right jacks swapped - i had to connect Center to Rear output and vice versa. But controls in alsamixer are not swapped so i have to use Surround slider to adjust Center and LFE speakers; LFE slider to adjust Rear right speaker and finally Center slider to adjust Rear left speaker.
5) As my soundcard is 7.1, current driver is incapable to use it: [cdome@andromeda Surround-SDL-testfiles]$ speaker-test -Dsurround71 -c8
speaker-test 1.0.14rc1
Playback device is surround71 Stream parameters are 48000Hz, S16_LE, 8 channels Using 16 octaves of pink noise Channels count (8) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument
(uhm, i get that "Invalid argument" message in czech language as "Nepristupny argument", i hope that is proper translation)
But as I said, it is working now (even with those minor problems)! I hope my message will help you make alsa better.
Thanks again for your great work.
Pavel
Could you also submit a couple more pieces of information?
1. System/Motherboard make and model. 2. output from http://bulletproof.servebeer.com/alsa/scripts/alsa-info.sh (this is a shell script. Download and run it, and it will post information to http://pastebin.ca)
You said that you are currently loading the driver with "model=6stack-dig". Could you rebuild the driver with "./configure --with-cards=hda-intel --with-debug=detect" then post the dmesg output from loading the driver, both with "model=6stack-dig" and without?
Thanks,
Tobin Davis
On Wed, 2007-04-18 at 19:21 +0200, Pavel Patz wrote:
Dne st 18. dubna 2007 Takashi Iwai napsal(a):
At Tue, 17 Apr 2007 19:42:42 +0200,
Pavel Patz wrote:
Hi all,
I have problems with chip Realtek ALC883 (lspci: 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)) and surround sound.
Stereo sound is working (games, music) fine - all 6 speaker are playing.
But when I tried to run "aplay chan-id.wav", i've heard only "front left" (front & rear left + center were playing) and "front right" (right front & rear were playing), then was silence until the end of the file.
Running "aplay -Dsurround51 chan-id.wav" causes that aplay hangs-up without any output. Running it with -v parameter produces this output:
Playing WAVE 'Desktop/Surround-SDL-testfiles/chan-id.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6 Soft volume PCM Control: PCM Playback Volume min_dB: -51 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 : 6147413491360727040 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 : 6147413491360727040
and then hang up until i press ctrl+c. Same results i get with speaker-test.
Looks like the stream setup doesn't match with your device.
I'm using alsa-lib-1.0.14-0.4.rc3.fc7
The more important thing is the version of ALSA driver you're using. Try the latest ALSA version (not released one), HG version, at first. If you don't want / have HG, try the daily snapshot tarball below: ftp://ftp.suse.com/pub/projects/alsa/snapshot/
Then check whether it's a supported device or not. If yours is an unsupported one, you'll see a kernel messages like "unknown model, using BIOS..." Anyway, you can try different model option value for snd-hda-intel module, as listed in Documentation/ALSA-Configuration.txt.
Takashi
Hi,
thanks a lot, it is working now!!!
- upgrade to last (today's) snaphot helped - there were no hang-ups when
using -Dsurround51
- Auto-detection is not working (i got "hda_codec: Unknown model for ALC883,
trying auto-probe from BIOS...") - just must use model=6stack-dig
[cdome@andromeda ~]$ /sbin/lspci | grep Audio 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)
- When starting alsa i usualy get one of these messages:
[root@andromeda Audition]# /etc/init.d/alsasound start Starting sound driver: snd-hda-intel done /usr/sbin/alsactl: load_state:1326: No soundcards found...
or
[root@andromeda Audition]# /etc/init.d/alsasound start Starting sound driver: snd-hda-intel done XXX write TLV...
however sound is working properly. From my view is hard to say under which conditions i get which one - just sometimes first one and sometimes second one.
- It seems there are Center+LFE and Rear Left+Right jacks swapped - i had to
connect Center to Rear output and vice versa. But controls in alsamixer are not swapped so i have to use Surround slider to adjust Center and LFE speakers; LFE slider to adjust Rear right speaker and finally Center slider to adjust Rear left speaker.
- As my soundcard is 7.1, current driver is incapable to use it:
[cdome@andromeda Surround-SDL-testfiles]$ speaker-test -Dsurround71 -c8
speaker-test 1.0.14rc1
Playback device is surround71 Stream parameters are 48000Hz, S16_LE, 8 channels Using 16 octaves of pink noise Channels count (8) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument
(uhm, i get that "Invalid argument" message in czech language as "Nepristupny argument", i hope that is proper translation)
But as I said, it is working now (even with those minor problems)! I hope my message will help you make alsa better.
Thanks again for your great work.
Pavel _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi all,
Could you also submit a couple more pieces of information?
1. System/Motherboard make and model.
Gigabyte S-Series; GA-M57SLI-S4 chipset nVidia nForce 570-SLI, onboard audio Realtek ALC883 CODEC chip (supports High Definition Audio; 2/4/6/8 channel audio; SPDIF In/Out connection (coaxial & optical) - however, i'm using analog output (6-jack))
2. output from http://bulletproof.servebeer.com/alsa/scripts/alsa-info.sh (this
You said that you are currently loading the driver with "model=6stack-dig". Could you rebuild the driver with "./configure --with-cards=hda-intel --with-debug=detect" then post the dmesg output from loading the driver, both with "model=6stack-dig" and without?
with model=6stack-dig:
ACPI: PCI Interrupt 0000:00:06.1[B] -> Link [LAZA] -> GSI 11 (level, low) -> IRQ 11 PCI: Setting latency timer of device 0000:00:06.1 to 64 ALSA /home/cdome/tmp/alsa-driver-hg20070418/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:696: codec_mask = 0x1 ALSA /home/cdome/tmp/alsa-driver-hg20070418/pci/hda/hda_codec.c:1794: hda_codec: model '6stack-dig' is selected
without model=6stack-dig:
ACPI: PCI Interrupt 0000:00:06.1[B] -> Link [LAZA] -> GSI 11 (level, low) -> IRQ 11 PCI: Setting latency timer of device 0000:00:06.1 to 64 ALSA /home/cdome/tmp/alsa-driver-hg20070418/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:696: codec_mask = 0x1 hda_codec: Unknown model for ALC883, trying auto-probe from BIOS... ALSA /home/cdome/tmp/alsa-driver-hg20070418/pci/hda/hda_codec.c:2274: autoconfig: line_outs=4 (0x14/0x17/0x16/0x15/0x0) ALSA /home/cdome/tmp/alsa-driver-hg20070418/pci/hda/hda_codec.c:2278: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) ALSA /home/cdome/tmp/alsa-driver-hg20070418/pci/hda/hda_codec.c:2282: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0) ALSA /home/cdome/tmp/alsa-driver-hg20070418/pci/hda/hda_codec.c:2290: inputs: mic=0x18, fmic=0x19, line=0x1a, fline=0x0, cd=0x1c, aux=0x0
Thanks,
Tobin Davis
On Wed, 2007-04-18 at 19:21 +0200, Pavel Patz wrote:
Dne st 18. dubna 2007 Takashi Iwai napsal(a):
At Tue, 17 Apr 2007 19:42:42 +0200,
Pavel Patz wrote:
Hi all,
I have problems with chip Realtek ALC883 (lspci: 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)) and surround sound.
Stereo sound is working (games, music) fine - all 6 speaker are playing.
But when I tried to run "aplay chan-id.wav", i've heard only "front left" (front & rear left + center were playing) and "front right" (right front & rear were playing), then was silence until the end of the file.
Running "aplay -Dsurround51 chan-id.wav" causes that aplay hangs-up without any output. Running it with -v parameter produces this output:
Playing WAVE 'Desktop/Surround-SDL-testfiles/chan-id.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Channels 6 Soft volume PCM Control: PCM Playback Volume min_dB: -51 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 : 6147413491360727040 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 : 6147413491360727040
and then hang up until i press ctrl+c. Same results i get with speaker-test.
Looks like the stream setup doesn't match with your device.
I'm using alsa-lib-1.0.14-0.4.rc3.fc7
The more important thing is the version of ALSA driver you're using. Try the latest ALSA version (not released one), HG version, at first. If you don't want / have HG, try the daily snapshot tarball below: ftp://ftp.suse.com/pub/projects/alsa/snapshot/
Then check whether it's a supported device or not. If yours is an unsupported one, you'll see a kernel messages like "unknown model, using BIOS..." Anyway, you can try different model option value for snd-hda-intel module, as listed in Documentation/ALSA-Configuration.txt.
Takashi
Hi,
thanks a lot, it is working now!!!
- upgrade to last (today's) snaphot helped - there were no hang-ups when
using -Dsurround51
- Auto-detection is not working (i got "hda_codec: Unknown model for
ALC883, trying auto-probe from BIOS...") - just must use model=6stack-dig
[cdome@andromeda ~]$ /sbin/lspci | grep Audio 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)
- When starting alsa i usualy get one of these messages:
[root@andromeda Audition]# /etc/init.d/alsasound start Starting sound driver: snd-hda-intel done /usr/sbin/alsactl: load_state:1326: No soundcards found...
or
[root@andromeda Audition]# /etc/init.d/alsasound start Starting sound driver: snd-hda-intel done XXX write TLV...
however sound is working properly. From my view is hard to say under which conditions i get which one - just sometimes first one and sometimes second one.
- It seems there are Center+LFE and Rear Left+Right jacks swapped - i
had to connect Center to Rear output and vice versa. But controls in alsamixer are not swapped so i have to use Surround slider to adjust Center and LFE speakers; LFE slider to adjust Rear right speaker and finally Center slider to adjust Rear left speaker.
- As my soundcard is 7.1, current driver is incapable to use it:
[cdome@andromeda Surround-SDL-testfiles]$ speaker-test -Dsurround71 -c8
speaker-test 1.0.14rc1
Playback device is surround71 Stream parameters are 48000Hz, S16_LE, 8 channels Using 16 octaves of pink noise Channels count (8) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument
(uhm, i get that "Invalid argument" message in czech language as "Nepristupny argument", i hope that is proper translation)
But as I said, it is working now (even with those minor problems)! I hope my message will help you make alsa better.
Thanks again for your great work.
Pavel _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Just one correction. I've just noticed that i have new switch in alsamixer now - "Channel mode" and when i switch it to 8ch that command below works :) Sorry for giving wrong informations...
- As my soundcard is 7.1, current driver is incapable to use it:
[cdome@andromeda Surround-SDL-testfiles]$ speaker-test -Dsurround71 -c8
speaker-test 1.0.14rc1
Playback device is surround71 Stream parameters are 48000Hz, S16_LE, 8 channels Using 16 octaves of pink noise Channels count (8) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument
(uhm, i get that "Invalid argument" message in czech language
as "Nepristupny
argument", i hope that is proper translation)
Try this patch to alsa-driver/alsa-kernel/pci/hda/patch_realtek.c. Load the patched driver without any "model=" parameters. If it works, it can be added to the HG repository.
Summary: Add support for Gigabyte S-Series GA-M57SLI-S4 motherboard.
signed off by Tobin Davis
On Wed, 2007-04-18 at 20:50 +0200, Pavel Patz wrote:
Just one correction. I've just noticed that i have new switch in alsamixer now - "Channel mode" and when i switch it to 8ch that command below works :) Sorry for giving wrong informations...
- As my soundcard is 7.1, current driver is incapable to use it:
[cdome@andromeda Surround-SDL-testfiles]$ speaker-test -Dsurround71 -c8
speaker-test 1.0.14rc1
Playback device is surround71 Stream parameters are 48000Hz, S16_LE, 8 channels Using 16 octaves of pink noise Channels count (8) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument
(uhm, i get that "Invalid argument" message in czech language
as "Nepristupny
argument", i hope that is proper translation)
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi,
yep, it is working.
dmesg: ACPI: PCI Interrupt 0000:00:06.1[B] -> Link [LAZA] -> GSI 11 (level, low) -> IRQ 11 PCI: Setting latency timer of device 0000:00:06.1 to 64
however, i'm still getting "No soundcards found..." message when starting alsa, but i think this wasn't intention of this patch :)
Pavel
[root@andromeda sound]# /etc/init.d/alsasound start Starting sound driver: snd-hda-intel done /usr/sbin/alsactl: load_state:1326: No soundcards found...
Try this patch to alsa-driver/alsa-kernel/pci/hda/patch_realtek.c. Load the patched driver without any "model=" parameters. If it works, it can be added to the HG repository.
Summary: Add support for Gigabyte S-Series GA-M57SLI-S4 motherboard.
signed off by Tobin Davis
On Wed, 2007-04-18 at 20:50 +0200, Pavel Patz wrote:
Just one correction. I've just noticed that i have new switch in alsamixer now - "Channel mode" and when i switch it to 8ch that command below works :) Sorry for giving wrong informations...
- As my soundcard is 7.1, current driver is incapable to use it:
[cdome@andromeda Surround-SDL-testfiles]$ speaker-test -Dsurround71 -c8
speaker-test 1.0.14rc1
Playback device is surround71 Stream parameters are 48000Hz, S16_LE, 8 channels Using 16 octaves of pink noise Channels count (8) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument
(uhm, i get that "Invalid argument" message in czech language
as "Nepristupny
argument", i hope that is proper translation)
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Wed, 18 Apr 2007 22:40:59 +0200, Pavel Patz wrote:
Hi,
yep, it is working.
Thanks, I applied it to HG tree now.
dmesg: ACPI: PCI Interrupt 0000:00:06.1[B] -> Link [LAZA] -> GSI 11 (level, low) -> IRQ 11 PCI: Setting latency timer of device 0000:00:06.1 to 64
however, i'm still getting "No soundcards found..." message when starting alsa, but i think this wasn't intention of this patch :)
Pavel
[root@andromeda sound]# /etc/init.d/alsasound start Starting sound driver: snd-hda-intel done /usr/sbin/alsactl: load_state:1326: No soundcards found...
This is likely because of alsasound init script of your distribution. "alsactl restore" shouldn't be called in the recent 2.6 kernel systems with udev. It should be called from udev script instead.
Takashi
participants (3)
-
Pavel Patz
-
Takashi Iwai
-
Tobin Davis