Re: [alsa-devel] ALSA patch Nvidia 8 channel hdmi audio

On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting 8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except for a few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6 gives the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits 48 khz. I think the minimum which is supported by nvidia hardware is 24bits 96 (or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa with the oatched nvidia.c file. Anyway the amplifier shows multichannel LPCM and that's great news.

Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting 8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except for a few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6 gives the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits 48 khz. I think the minimum which is supported by nvidia hardware is 24bits 96 (or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa with the oatched nvidia.c file. Anyway the amplifier shows multichannel LPCM and that's great news.
----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -----------------------------------------------------------------------------------

Wei Ni wrote:
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack.
speaker-test -Dhw:0,3 -c6
Or put a line pcm.hdmi = "hw:0,3" into your ~/.asoundrc or the /etc/asound.conf file, then you can just use the device name "hdmi" everywhere.
HTH Clemens

At Wed, 3 Jun 2009 15:14:19 +0800, Wei Ni wrote:
Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name.
It's in the recent alsa-lib, but maybe not in the older version. You can see it in "aplay -L" output.
The latest version should work like
% speaker-test -Dhdmi:NVidia -c6
Takashi
I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting 8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except for a few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6 gives the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits 48 khz. I think the minimum which is supported by nvidia hardware is 24bits 96 (or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa with the oatched nvidia.c file. Anyway the amplifier shows multichannel LPCM and that's great news.
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from a normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
Thanks for working on this.
2009/6/3 Wei Ni wni@nvidia.com
Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting 8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except for a few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6 gives the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits 48
khz.
I think the minimum which is supported by nvidia hardware is 24bits
96
(or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa with
the
oatched nvidia.c file. Anyway the amplifier shows multichannel LPCM
and
that's great news.
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

At Wed, 3 Jun 2009 10:00:24 +0200, Alan Alan wrote:
Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from a normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
How about the patch below?
Also, could you give alsa-info.sh output?
Takashi
--- diff --git a/sound/pci/hda/patch_nvhdmi.c b/sound/pci/hda/patch_nvhdmi.c index f5792e2..48443de 100644 --- a/sound/pci/hda/patch_nvhdmi.c +++ b/sound/pci/hda/patch_nvhdmi.c @@ -258,9 +258,11 @@ static struct hda_pcm_stream nvhdmi_pcm_digital_playback_8ch = { .channels_min = 2, .channels_max = 8, .nid = Nv_Master_Convert_nid, +#if 0 .rates = SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, +#endif .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_8ch, @@ -273,9 +275,11 @@ static struct hda_pcm_stream nvhdmi_pcm_digital_playback_2ch = { .channels_min = 2, .channels_max = 2, .nid = Nv_Master_Convert_nid, +#if 0 .rates = SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, +#endif .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_2ch,

Hello Takashi !
What should this patch do ? Is it a cure for the 96, 192khz or 24bit sample playback problem ? If so, will it resample or natievly pass the stream to the amplifier ?
Thank you
Alan
2009/6/3 Takashi Iwai tiwai@suse.de
At Wed, 3 Jun 2009 10:00:24 +0200, Alan Alan wrote:
Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from
a
normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
How about the patch below?
Also, could you give alsa-info.sh output?
Takashi
diff --git a/sound/pci/hda/patch_nvhdmi.c b/sound/pci/hda/patch_nvhdmi.c index f5792e2..48443de 100644 --- a/sound/pci/hda/patch_nvhdmi.c +++ b/sound/pci/hda/patch_nvhdmi.c @@ -258,9 +258,11 @@ static struct hda_pcm_stream nvhdmi_pcm_digital_playback_8ch = { .channels_min = 2, .channels_max = 8, .nid = Nv_Master_Convert_nid, +#if 0 .rates = SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, +#endif .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_8ch, @@ -273,9 +275,11 @@ static struct hda_pcm_stream nvhdmi_pcm_digital_playback_2ch = { .channels_min = 2, .channels_max = 2, .nid = Nv_Master_Convert_nid, +#if 0 .rates = SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, +#endif .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_2ch,

At Wed, 3 Jun 2009 11:34:00 +0200, Alan Alan wrote:
Hello Takashi !
What should this patch do ?
The patch removes the restriction patch_nvhdmi.c sets. Instead, the driver tries to detect the supported format, rate, etc from the codec widget information.
Is it a cure for the 96, 192khz or 24bit sample playback problem ?
Possibly.
If so, will it resample or natievly pass the stream to the amplifier ?
It just enables the native support, possibly.
And, don't forget to give back the alsa-info.sh output (run with --no-upload option).
Takashi
Thank you
Alan
2009/6/3 Takashi Iwai tiwai@suse.de
At Wed, 3 Jun 2009 10:00:24 +0200, Alan Alan wrote: > > Hello Wei ! > > Thanks for replying. > I tested it with speaker-test and xbmc babylon. Both had problems with > channel mapping. > I used this command: > > speaker-test -Dhdmi -c6 > or > speaker-test -Dhdmi -c8 > > alternatively you could try > > speaker-test -Dhw:0,3 -c6 > > > I had to rund Xorg first and have the command from an xterm, becasue from a > normal terminal it would not work. > I think that is normal as a limitation of hdmi. > > What about the support for 24bits 192khz sound ? > > speaker-test -Dhdmi -c6 -r192000 does not work. How about the patch below? Also, could you give alsa-info.sh output? Takashi --- diff --git a/sound/pci/hda/patch_nvhdmi.c b/sound/pci/hda/patch_nvhdmi.c index f5792e2..48443de 100644 --- a/sound/pci/hda/patch_nvhdmi.c +++ b/sound/pci/hda/patch_nvhdmi.c @@ -258,9 +258,11 @@ static struct hda_pcm_stream nvhdmi_pcm_digital_playback_8ch = { .channels_min = 2, .channels_max = 8, .nid = Nv_Master_Convert_nid, +#if 0 .rates = SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, +#endif .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_8ch, @@ -273,9 +275,11 @@ static struct hda_pcm_stream nvhdmi_pcm_digital_playback_2ch = { .channels_min = 2, .channels_max = 2, .nid = Nv_Master_Convert_nid, +#if 0 .rates = SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, +#endif .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_2ch,

Hello Takashi !
I tried to apply the patch that removes restrictions to 16bits 48khz format. Well now we have the following: 16bit 48khz works 32bit 48khz works 32bit 44khz, 96khz, 192khz don't work 24bit 44khz, 48khz, 96khz, 192khz don't work 16bit 44khz, 96khz, 192khz don't work
I only get Sample format not available for playback: Setting of hwparams failed:
I enclosed to pastebin my alsainfo script output.
Thanks for the help !
2009/6/3 Takashi Iwai tiwai@suse.de
At Wed, 3 Jun 2009 11:34:00 +0200, Alan Alan wrote:
Hello Takashi !
What should this patch do ?
The patch removes the restriction patch_nvhdmi.c sets. Instead, the driver tries to detect the supported format, rate, etc from the codec widget information.
Is it a cure for the 96, 192khz or 24bit sample playback problem ?
Possibly.
If so, will it resample or natievly pass the stream to the amplifier ?
It just enables the native support, possibly.
And, don't forget to give back the alsa-info.sh output (run with --no-upload option).
Takashi
Thank you
Alan
2009/6/3 Takashi Iwai tiwai@suse.de
At Wed, 3 Jun 2009 10:00:24 +0200, Alan Alan wrote: > > Hello Wei ! > > Thanks for replying. > I tested it with speaker-test and xbmc babylon. Both had problems
with
> channel mapping. > I used this command: > > speaker-test -Dhdmi -c6 > or > speaker-test -Dhdmi -c8 > > alternatively you could try > > speaker-test -Dhw:0,3 -c6 > > > I had to rund Xorg first and have the command from an xterm,
becasue
from a > normal terminal it would not work. > I think that is normal as a limitation of hdmi. > > What about the support for 24bits 192khz sound ? > > speaker-test -Dhdmi -c6 -r192000 does not work. How about the patch below? Also, could you give alsa-info.sh output? Takashi --- diff --git a/sound/pci/hda/patch_nvhdmi.c
b/sound/pci/hda/patch_nvhdmi.c
index f5792e2..48443de 100644 --- a/sound/pci/hda/patch_nvhdmi.c +++ b/sound/pci/hda/patch_nvhdmi.c @@ -258,9 +258,11 @@ static struct hda_pcm_stream nvhdmi_pcm_digital_playback_8ch = { .channels_min = 2, .channels_max = 8, .nid = Nv_Master_Convert_nid, +#if 0 .rates = SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, +#endif .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_8ch, @@ -273,9 +275,11 @@ static struct hda_pcm_stream nvhdmi_pcm_digital_playback_2ch = { .channels_min = 2, .channels_max = 2, .nid = Nv_Master_Convert_nid, +#if 0 .rates = SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, +#endif .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_2ch,

At Thu, 4 Jun 2009 01:28:24 +0200, Alan Alan wrote:
Hello Takashi !
I tried to apply the patch that removes restrictions to 16bits 48khz format. Well now we have the following: 16bit 48khz works 32bit 48khz works 32bit 44khz, 96khz, 192khz don't work 24bit 44khz, 48khz, 96khz, 192khz don't work 16bit 44khz, 96khz, 192khz don't work
I only get Sample format not available for playback: Setting of hwparams failed:
As you can find in alsa-info output, it seems that the codec supports only 48kHz and 88.2kHz, strangely. I don't know whether it's a (hardware) bug or not.
Takashi
I enclosed to pastebin my alsainfo script output.
Thanks for the help !
2009/6/3 Takashi Iwai tiwai@suse.de
At Wed, 3 Jun 2009 11:34:00 +0200, Alan Alan wrote: > > Hello Takashi ! > > What should this patch do ? The patch removes the restriction patch_nvhdmi.c sets. Instead, the driver tries to detect the supported format, rate, etc from the codec widget information. > Is it a cure for the 96, 192khz or 24bit sample playback problem ? Possibly. > If so, will it resample or natievly pass the stream to the amplifier ? It just enables the native support, possibly. And, don't forget to give back the alsa-info.sh output (run with --no-upload option). Takashi > > Thank you > > Alan > > 2009/6/3 Takashi Iwai <tiwai@suse.de> > > At Wed, 3 Jun 2009 10:00:24 +0200, > Alan Alan wrote: > > > > Hello Wei ! > > > > Thanks for replying. > > I tested it with speaker-test and xbmc babylon. Both had problems with > > channel mapping. > > I used this command: > > > > speaker-test -Dhdmi -c6 > > or > > speaker-test -Dhdmi -c8 > > > > alternatively you could try > > > > speaker-test -Dhw:0,3 -c6 > > > > > > I had to rund Xorg first and have the command from an xterm, becasue > from a > > normal terminal it would not work. > > I think that is normal as a limitation of hdmi. > > > > What about the support for 24bits 192khz sound ? > > > > speaker-test -Dhdmi -c6 -r192000 does not work. > > How about the patch below? > > Also, could you give alsa-info.sh output? > > Takashi > > --- > diff --git a/sound/pci/hda/patch_nvhdmi.c b/sound/pci/hda/ patch_nvhdmi.c > index f5792e2..48443de 100644 > --- a/sound/pci/hda/patch_nvhdmi.c > +++ b/sound/pci/hda/patch_nvhdmi.c > @@ -258,9 +258,11 @@ static struct hda_pcm_stream > nvhdmi_pcm_digital_playback_8ch = { > .channels_min = 2, > .channels_max = 8, > .nid = Nv_Master_Convert_nid, > +#if 0 > .rates = SNDRV_PCM_RATE_48000, > .maxbps = 16, > .formats = SNDRV_PCM_FMTBIT_S16_LE, > +#endif > .ops = { > .open = nvhdmi_dig_playback_pcm_open, > .close = nvhdmi_dig_playback_pcm_close_8ch, > @@ -273,9 +275,11 @@ static struct hda_pcm_stream > nvhdmi_pcm_digital_playback_2ch = { > .channels_min = 2, > .channels_max = 2, > .nid = Nv_Master_Convert_nid, > +#if 0 > .rates = SNDRV_PCM_RATE_48000, > .maxbps = 16, > .formats = SNDRV_PCM_FMTBIT_S16_LE, > +#endif > .ops = { > .open = nvhdmi_dig_playback_pcm_open, > .close = nvhdmi_dig_playback_pcm_close_2ch, > >

Hi, Alan
I reproduced this problems with speaker-test. The channels are wrong mapped.
It's strange that if use mplayer to run, it looks ok.
I'm looking this problems, and try to find the root cause.
Thanks
From: Alan Alan [mailto:alanwww1@gmail.com] Sent: Wednesday, June 03, 2009 4:00 PM To: Wei Ni Cc: Marek Vasut; alsa-devel@alsa-project.org; Peer Chen Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from a normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
Thanks for working on this.
2009/6/3 Wei Ni wni@nvidia.com
Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting 8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except
for a
few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6
gives
the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits 48
khz.
I think the minimum which is supported by nvidia hardware is
24bits 96
(or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa with
the
oatched nvidia.c file. Anyway the amplifier shows multichannel
LPCM and
that's great news.
------------------------------------------------------------------------ ----------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ------------------------------------------------------------------------ -----------

At Wed, 3 Jun 2009 18:25:09 +0800, Wei Ni wrote:
Hi, Alan
I reproduced this problems with speaker-test. The channels are wrong mapped.
It's strange that if use mplayer to run, it looks ok.
I'm looking this problems, and try to find the root cause.
Actually, from historical reasons, the standard ALSA channel mapping for 5.1 is FL/FR/RL/RR/C/LFE while Windows sets FL/FR/C/LFE/RL/RR. If you play a WAV file assuming the latter channel assignment, it will be played like that.
Does the nvidia codec support channel-slot assignment (verb 0x734)? If yes, we can assign the channels freely to fix this...
thanks,
Takashi
Thanks
From: Alan Alan [mailto:alanwww1@gmail.com] Sent: Wednesday, June 03, 2009 4:00 PM To: Wei Ni Cc: Marek Vasut; alsa-devel@alsa-project.org; Peer Chen Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from a normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
Thanks for working on this.
2009/6/3 Wei Ni wni@nvidia.com
Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting 8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except
for a
few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6
gives
the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits 48
khz.
I think the minimum which is supported by nvidia hardware is
24bits 96
(or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa with
the
oatched nvidia.c file. Anyway the amplifier shows multichannel
LPCM and
that's great news.
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Yes, my test wav file is from Windows.
I had used different player to test with my test wav file. The mplayer has no mapping problem, but other players map channels wrong. As you said, it seems that is caused by the difference of the ALSA and Windows.
Unfortunately, our nvidia codec doesn't support channel-slot assignment yet. How could we fix this problems, do you have any suggestions?
Thanks Wei.
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Wednesday, June 03, 2009 7:02 PM To: Wei Ni Cc: Alan Alan; Peer Chen; Marek Vasut; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] ALSA patch Nvidia 8 channel hdmi audio
At Wed, 3 Jun 2009 18:25:09 +0800, Wei Ni wrote:
Hi, Alan
I reproduced this problems with speaker-test. The channels are wrong mapped.
It's strange that if use mplayer to run, it looks ok.
I'm looking this problems, and try to find the root cause.
Actually, from historical reasons, the standard ALSA channel mapping for 5.1 is FL/FR/RL/RR/C/LFE while Windows sets FL/FR/C/LFE/RL/RR. If you play a WAV file assuming the latter channel assignment, it will be played like that.
Does the nvidia codec support channel-slot assignment (verb 0x734)? If yes, we can assign the channels freely to fix this...
thanks,
Takashi
Thanks
From: Alan Alan [mailto:alanwww1@gmail.com] Sent: Wednesday, June 03, 2009 4:00 PM To: Wei Ni Cc: Marek Vasut; alsa-devel@alsa-project.org; Peer Chen Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from a normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
Thanks for working on this.
2009/6/3 Wei Ni wni@nvidia.com
Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200
Digital]
Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting
8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except
for a
few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6
gives
the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits
48
khz.
I think the minimum which is supported by nvidia hardware is
24bits 96
(or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa
with
the
oatched nvidia.c file. Anyway the amplifier shows multichannel
LPCM and
that's great news.
------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s)
and
may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
------------------------------------------------------------------------
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

At Thu, 4 Jun 2009 14:05:52 +0800, Wei Ni wrote:
Yes, my test wav file is from Windows.
I had used different player to test with my test wav file. The mplayer has no mapping problem, but other players map channels wrong. As you said, it seems that is caused by the difference of the ALSA and Windows.
I guess mplayer corrects the channel mapping automatically.
Unfortunately, our nvidia codec doesn't support channel-slot assignment yet.
OK.
How could we fix this problems, do you have any suggestions?
It's a bit difficult issue right now. Usually we could "fix" the channel mapping in alsa-lib configuration. But, HD-audio has currently a single alsa-lib configuration, and others may use the right channel mapping.
I don't remember how is the case of Intel HDMI... Can anyone check? If it also suffers from the same problem, the channel conversion rule can be put in hdmi configuration statically as a temporary workaround.
We need a proper API to inform / change the channel mapping, anyway. Then it'll be better adjustable...
thanks,
Takashi
Thanks Wei.
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Wednesday, June 03, 2009 7:02 PM To: Wei Ni Cc: Alan Alan; Peer Chen; Marek Vasut; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] ALSA patch Nvidia 8 channel hdmi audio
At Wed, 3 Jun 2009 18:25:09 +0800, Wei Ni wrote:
Hi, Alan
I reproduced this problems with speaker-test. The channels are wrong mapped.
It's strange that if use mplayer to run, it looks ok.
I'm looking this problems, and try to find the root cause.
Actually, from historical reasons, the standard ALSA channel mapping for 5.1 is FL/FR/RL/RR/C/LFE while Windows sets FL/FR/C/LFE/RL/RR. If you play a WAV file assuming the latter channel assignment, it will be played like that.
Does the nvidia codec support channel-slot assignment (verb 0x734)? If yes, we can assign the channels freely to fix this...
thanks,
Takashi
Thanks
From: Alan Alan [mailto:alanwww1@gmail.com] Sent: Wednesday, June 03, 2009 4:00 PM To: Wei Ni Cc: Marek Vasut; alsa-devel@alsa-project.org; Peer Chen Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from a normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
Thanks for working on this.
2009/6/3 Wei Ni wni@nvidia.com
Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200
Digital]
Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting
8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except
for a
few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6
gives
the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits
48
khz.
I think the minimum which is supported by nvidia hardware is
24bits 96
(or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa
with
the
oatched nvidia.c file. Anyway the amplifier shows multichannel
LPCM and
that's great news.
This email message is for the sole use of the intended recipient(s)
and
may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

On Thu, Jun 04, 2009 at 08:29:25AM +0200, Takashi Iwai wrote:
At Thu, 4 Jun 2009 14:05:52 +0800, Wei Ni wrote:
Yes, my test wav file is from Windows.
I had used different player to test with my test wav file. The mplayer has no mapping problem, but other players map channels wrong. As you said, it seems that is caused by the difference of the ALSA and Windows.
I guess mplayer corrects the channel mapping automatically.
Unfortunately, our nvidia codec doesn't support channel-slot assignment yet.
OK.
How could we fix this problems, do you have any suggestions?
It's a bit difficult issue right now. Usually we could "fix" the channel mapping in alsa-lib configuration. But, HD-audio has currently a single alsa-lib configuration, and others may use the right channel mapping.
I don't remember how is the case of Intel HDMI... Can anyone check?
The codecs I tested - G35/G45/GM45 - does not support the channel-slot assignment. I guess future hardwares may support that.
Thanks, Fengguang
If it also suffers from the same problem, the channel conversion rule can be put in hdmi configuration statically as a temporary workaround.
We need a proper API to inform / change the channel mapping, anyway. Then it'll be better adjustable...
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Wednesday, June 03, 2009 7:02 PM To: Wei Ni Cc: Alan Alan; Peer Chen; Marek Vasut; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] ALSA patch Nvidia 8 channel hdmi audio
At Wed, 3 Jun 2009 18:25:09 +0800, Wei Ni wrote:
Hi, Alan
I reproduced this problems with speaker-test. The channels are wrong mapped.
It's strange that if use mplayer to run, it looks ok.
I'm looking this problems, and try to find the root cause.
Actually, from historical reasons, the standard ALSA channel mapping for 5.1 is FL/FR/RL/RR/C/LFE while Windows sets FL/FR/C/LFE/RL/RR. If you play a WAV file assuming the latter channel assignment, it will be played like that.
Does the nvidia codec support channel-slot assignment (verb 0x734)? If yes, we can assign the channels freely to fix this...
thanks,
Takashi
Thanks
From: Alan Alan [mailto:alanwww1@gmail.com] Sent: Wednesday, June 03, 2009 4:00 PM To: Wei Ni Cc: Marek Vasut; alsa-devel@alsa-project.org; Peer Chen Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from a normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
Thanks for working on this.
2009/6/3 Wei Ni wni@nvidia.com
Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200
Digital]
Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting
8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except
for a
few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6
gives
the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits
48
khz.
I think the minimum which is supported by nvidia hardware is
24bits 96
(or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa
with
the
oatched nvidia.c file. Anyway the amplifier shows multichannel
LPCM and
that's great news.
This email message is for the sole use of the intended recipient(s)
and
may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

At Fri, 5 Jun 2009 12:28:29 +0800, Wu Fengguang wrote:
On Thu, Jun 04, 2009 at 08:29:25AM +0200, Takashi Iwai wrote:
At Thu, 4 Jun 2009 14:05:52 +0800, Wei Ni wrote:
Yes, my test wav file is from Windows.
I had used different player to test with my test wav file. The mplayer has no mapping problem, but other players map channels wrong. As you said, it seems that is caused by the difference of the ALSA and Windows.
I guess mplayer corrects the channel mapping automatically.
Unfortunately, our nvidia codec doesn't support channel-slot assignment yet.
OK.
How could we fix this problems, do you have any suggestions?
It's a bit difficult issue right now. Usually we could "fix" the channel mapping in alsa-lib configuration. But, HD-audio has currently a single alsa-lib configuration, and others may use the right channel mapping.
I don't remember how is the case of Intel HDMI... Can anyone check?
The codecs I tested - G35/G45/GM45 - does not support the channel-slot assignment. I guess future hardwares may support that.
OK, and the channel assignment is also FL/FR/C/LFE/RL/RR, right?
thanks,
Takashi

On Fri, Jun 05, 2009 at 01:40:58PM +0800, Takashi Iwai wrote:
At Fri, 5 Jun 2009 12:28:29 +0800, Wu Fengguang wrote:
On Thu, Jun 04, 2009 at 08:29:25AM +0200, Takashi Iwai wrote:
At Thu, 4 Jun 2009 14:05:52 +0800, Wei Ni wrote:
Yes, my test wav file is from Windows.
I had used different player to test with my test wav file. The mplayer has no mapping problem, but other players map channels wrong. As you said, it seems that is caused by the difference of the ALSA and Windows.
I guess mplayer corrects the channel mapping automatically.
Unfortunately, our nvidia codec doesn't support channel-slot assignment yet.
OK.
How could we fix this problems, do you have any suggestions?
It's a bit difficult issue right now. Usually we could "fix" the channel mapping in alsa-lib configuration. But, HD-audio has currently a single alsa-lib configuration, and others may use the right channel mapping.
I don't remember how is the case of Intel HDMI... Can anyone check?
The codecs I tested - G35/G45/GM45 - does not support the channel-slot assignment. I guess future hardwares may support that.
OK, and the channel assignment is also FL/FR/C/LFE/RL/RR, right?
It's FL/FR/LFE/FC/RL/RR for 5.1, but it can be more complicated. HDMI supports a number of speaker configurations - which will be reported via ELD by HDMI sinks. And we have a big mapping table name channel_allocations in patch_intelhdmi.c.
The 6 channel configurations listed in the table are:
/* 5.1 */ { .ca_index = 0x0b, .speakers = { 0, 0, RR, RL, FC, LFE, FR, FL } }, { .ca_index = 0x0c, .speakers = { 0, RC, RR, RL, 0, 0, FR, FL } }, { .ca_index = 0x0d, .speakers = { 0, RC, RR, RL, 0, LFE, FR, FL } }, { .ca_index = 0x0e, .speakers = { 0, RC, RR, RL, FC, 0, FR, FL } },
Thanks, Fengguang

Hello Wei !
If you used mplayer with this command,
"mplayer -ao alsa:device=hw=0.3 6ch.wav"
than i think it might be that the test fiile is faulty. Why not try this test file with a dts stream saying the channles after each other:
http://rapidshare.com/files/240315685/xbmc_dts_test.mkv
I also tried xbmc media center which "treats" the hdmi device as a multichannel analog device and there i found the same mapping problem.
Thanks
2009/6/3 Wei Ni wni@nvidia.com
Hi, Alan
I reproduced this problems with speaker-test. The channels are wrong mapped.
It’s strange that if use mplayer to run, it looks ok.
I’m looking this problems, and try to find the root cause.
Thanks
*From:* Alan Alan [mailto:alanwww1@gmail.com] *Sent:* Wednesday, June 03, 2009 4:00 PM *To:* Wei Ni *Cc:* Marek Vasut; alsa-devel@alsa-project.org; Peer Chen
*Subject:* Re: ALSA patch Nvidia 8 channel hdmi audio
Hello Wei !
Thanks for replying. I tested it with speaker-test and xbmc babylon. Both had problems with channel mapping. I used this command:
speaker-test -Dhdmi -c6 or speaker-test -Dhdmi -c8
alternatively you could try
speaker-test -Dhw:0,3 -c6
I had to rund Xorg first and have the command from an xterm, becasue from a normal terminal it would not work. I think that is normal as a limitation of hdmi.
What about the support for 24bits 192khz sound ?
speaker-test -Dhdmi -c6 -r192000 does not work.
Thanks for working on this.
2009/6/3 Wei Ni wni@nvidia.com
Hi, Marek and Alan I'm a Nvidia engineer and develop this patch file.
I used mplayer to test. The channels are mapped good. Running mplayer -ao alsa:device=hw=0.3 6ch.wav
I tried to use speaker-test to test, but I can't get the hdmi device name. I used speaker-test -Dsurround51:NVidia -c6, the sound output from the analog jack. Which device name should I use?
I use aplay -l, it show **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
Thanks Wei.
-----Original Message----- From: Marek Vasut [mailto:marek.vasut@gmail.com] Sent: Wednesday, June 03, 2009 8:01 AM To: Alan Alan Cc: alsa-devel@alsa-project.org; Wei Ni Subject: Re: ALSA patch Nvidia 8 channel hdmi audio
On Wednesday 03 of June 2009 00:30:04 Alan Alan wrote:
Thank's for the info. How can i contact him ?
He and alsa-devel mailing list are both in CC already, please preserve them there or fix your mailer.
2009/6/3 Marek Vasut marek.vasut@gmail.com
I'm not the author of the patch, CCing alsa-devel and the original author.
On Tuesday 02 of June 2009 23:58:26 Alan Alan wrote:
Hi Marek !
I just read your emailing with nvidia devs about alsa supporting 8
channel
lpcm over hdmi.
I checked it out an i have to tell it is working awsome, except for a few bugs:
The channels are wrong mapped. Running a speakertest -Dhdmi -c6 gives the following result (first where it should sound) FL - FL C - RL FR - FR RR - LFE RL - C
The other thing i realized that playback is limited to 16 bits 48
khz.
I think the minimum which is supported by nvidia hardware is 24bits
96
(or 192) khz. Why not ?
Could you contact the devs as i don't know how to reach them.
ps.: Mybe my build methot was not 100% ok ? I used 1.020 Alsa with
the
oatched nvidia.c file. Anyway the amplifier shows multichannel LPCM
and
that's great news.
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
participants (6)
-
Alan Alan
-
Clemens Ladisch
-
Marek Vasut
-
Takashi Iwai
-
Wei Ni
-
Wu Fengguang