ALSA patch Nvidia 8 channel hdmi audio
I attach a patch to support 24bits and 32kHz, 44.1kHz, 48kHz, 96kHz, 192kHz, all rates that appears in the screenshot submitted by Alan Alan.
I created also an asound.conf to correct the speakers positions. Since current driver only support 2, 4, 6 and 8 channels I specified it in the asound.conf but I'm not sure if this slave.channels should be fixed.
The main problem is that by using asound.conf I didn't found any way to route to surround51 (or surround50 or surround40, ...) depending of the number of channels offered by the sink player.
And when I play directly to hdmi, the AMP reports automatically the correct number of speakers involved.
Of course it would be nice to have this routes hardcoded in the driver...
pci/hda/patch_nvhdmi.c renamed from pci/hda/patch_nvhdmi.c.orig +4 -4
@@ -258,9 +258,9 @@ .channels_min = 2, .channels_max = 8, .nid = Nv_Master_Convert_nid, - .rates = SNDRV_PCM_RATE_48000, - .maxbps = 16, - .formats = SNDRV_PCM_FMTBIT_S16_LE, + .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000, + .maxbps = 24, + .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, .ops = { .open = nvhdmi_dig_playback_pcm_open, .close = nvhdmi_dig_playback_pcm_close_8ch,
@@ -273,7 +273,7 @@ .channels_min = 2, .channels_max = 2, .nid = Nv_Master_Convert_nid, - .rates = SNDRV_PCM_RATE_48000, + .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000, .maxbps = 16, .formats = SNDRV_PCM_FMTBIT_S16_LE, .ops = {
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel