From: Daniel Schroeder <sec@dschroeder.info>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: ASUS M2N32 MCP55 HDAudio problems - small solution!
Date: Thu, 29 Jun 2006 20:41:03 +0200 [thread overview]
Message-ID: <44A41EBF.2040308@dschroeder.info> (raw)
In-Reply-To: <s5h64ikce22.wl%tiwai@suse.de>
Takashi Iwai wrote:
> At Wed, 28 Jun 2006 23:20:12 +0200,
> Daniel Schroeder wrote:
>> Takashi Iwai wrote:
>>> At Tue, 27 Jun 2006 22:43:49 +0200,
>>> Daniel Schroeder wrote:
>>>> Hello *,
>>>>
>>>> sorry for posting this to devel and users, but i think this could be
>>>> interesting for both. Plz. send replies in cc to my mail address because
>>>> i am not on list.
>>>>
>>>> I am a proud owner of this flagship mainboard with a nvdidia mcp55
>>>> hdaudio sound card. The chip is identified by alsa as a AD1988A rev.2
>>>> (dmesg, lspci -v, lspci -nv output below):
>>>>
>>>> The problem is that if i activate only front in kmix all is fine.
>>>> Speaker-Test works as expected. If i activate lfe/center then the sound
>>>> is messed up and he plays front-left/front-rigt through center and lfe.
>>> What do you mean to "activate lfe/center"?
>>> A more detailed step to reproduce is helpful.
>>>
>>>
>>> Takashi
>> a more detail problem description:
>>
>> with this module configuration: options snd-hda-intel model=6stack-dig
>> position_fix=1
>
> Doesn't the driver work without position_fix option?
The driver works without these options...i have just played around with
these.
>
>> --------------------------
>> headphone jack in front: if connected the regular sound isnt muted.
>> --------------------------
>> speaker test hangs in surround51 configuration:
>>
>> speaker-test -Dplug:surround51 -c6
>>
>> speaker-test 1.0.12rc1
>>
>> 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
>> ---- hangs forever
>
> That's bad. Does aplay with 6 channel samples work fine?
while true; do aplay chan-id.wav ; done
Playing WAVE 'chan-id.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,
Channels 6
aplay with 6 channel sample works but only front left / front right the
other "tracks" in the file are "silent".
Output of front left and front right are: front left all speakers to the
left. front left/rear left/center with output of channel "front right"
all speakers to the right "front right/rear right/subwoofer"
>
>> ----------------------------
>> speaker-test in surround40
>>
>> front left=sound output rear left;
>> front right=sound output rear right;
>> rear right=sound output subwoofer
>> rear left=sound output center
>
> So the channels are shifted.
>
> When you play with 2-channel via "aplay foo.wav", do the samples come
> from front speakers?
aplay 10.wav
Playing WAVE 10.wav : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
sound comes through all speakers, front left/front right/rear left/rear
right/center and subwoofer
>
> As you might have noticed in the kernel message, there is a workaround
> for AD1988A rev2 codec. You can disable it by re-defining
> AD1988A_REV2 in patch_analog.c to a bogus value, for example, a patch
> like below. Then try the tests again.
>
>
> Takashi
>
> diff -r ac7516b5dcb9 pci/hda/patch_analog.c
> --- a/pci/hda/patch_analog.c Thu Jun 29 13:22:29 2006 +0200
> +++ b/pci/hda/patch_analog.c Thu Jun 29 14:58:36 2006 +0200
> @@ -1543,7 +1543,8 @@ enum {
> };
>
> /* reivision id to check workarounds */
> -#define AD1988A_REV2 0x100200
> +// #define AD1988A_REV2 0x100200
> +#define AD1988A_REV2 0xabcd1234 /* bogus */
>
>
> /*
i have patched the file patch_analog.c recompiled and loaded the module.
same bad behaviour. Im sure that he has taken the new module because the
dmesg output is missing.
----
have you any clues of what i could do? This stuff is a bit mysterious
for me. Why does he play a stereo wav file to all speakers. And why does
he plays only two channels of the surround file (chan-id.wav) and these
two channels getting splitted to every left speaker / every right speaker...
,
daniel
P.S.: after writing my last email...i have tested the movie file with
mplayer.
Ãffne Audiodecoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000->576000)
Ausgewählter Audiocodec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
==========================================================================
Ãffne Videodecoder: [ffmpeg] FFmpeg's libavcodec codec family
Ausgewählter Videocodec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
alsa-init: using device surround51
alsa: 48000 Hz/6 channels/12 bpf/61440 bytes buffer/Signed 16 bit Little
Endian
AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
now the missing audio channel is there and it seems to me that this
movie is fully working in surround!
This bogus patch seems to work :)
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
next prev parent reply other threads:[~2006-06-29 18:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-27 20:43 ASUS M2N32 MCP55 HDAudio problems Daniel Schroeder
2006-06-28 15:27 ` Takashi Iwai
2006-06-28 21:20 ` Daniel Schroeder
2006-06-29 13:00 ` Takashi Iwai
2006-06-29 18:29 ` Daniel Schroeder
2006-06-29 18:41 ` Daniel Schroeder [this message]
2006-06-30 10:08 ` ASUS M2N32 MCP55 HDAudio problems - small solution! Takashi Iwai
2006-07-01 9:36 ` Daniel Schroeder
2006-07-03 14:54 ` Takashi Iwai
2006-07-06 15:43 ` ASUS M2N32 MCP55 HDAudio problems - solved Daniel Schroeder
2006-07-06 15:46 ` Takashi Iwai
2006-07-06 16:20 ` Daniel Schroeder
2006-07-06 16:30 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44A41EBF.2040308@dschroeder.info \
--to=sec@dschroeder.info \
--cc=alsa-devel@lists.sourceforge.net \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.