NVHDMI new high resolution formats patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I noticed the patch-nvhdmi.c still contains very few formats.

It's a pity since I tested this simple patch and it's able to reproduce 192khz 
7.1 channels with 32bit resolution.

Note: I noticed this works only when video output is set to 1080p. With 576p 
or 720p the sampling rate is limited to 48Khz.

BEWARE!! There is an annoying bug in nvidia drivers >=190.xx. Multichannel 
audio is correctly initialized but only stereo audio is sent.
*** linux-2.6.31-gentoo-r6/sound/pci/hda/patch_nvhdmi.c	2009-09-10 00:13:59.000000000 +0200
--- linux/sound/pci/hda/patch_nvhdmi.c	2009-09-07 16:44:34.000000000 +0200
***************
*** 258,267 ****
  	.channels_min = 2,
  	.channels_max = 8,
  	.nid = Nv_Master_Convert_nid,
! 	.rates = SNDRV_PCM_RATE_48000,
! 	.maxbps = 16,
! 	.formats = SNDRV_PCM_FMTBIT_S16_LE,
! 	.ops = {
  		.open = nvhdmi_dig_playback_pcm_open,
  		.close = nvhdmi_dig_playback_pcm_close_8ch,
  		.prepare = nvhdmi_dig_playback_pcm_prepare_8ch
--- 258,267 ----
  	.channels_min = 2,
  	.channels_max = 8,
  	.nid = Nv_Master_Convert_nid,
! 	.rates = 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|SNDRV_PCM_FMTBIT_S32_LE,
! 	.ops = {	
  		.open = nvhdmi_dig_playback_pcm_open,
  		.close = nvhdmi_dig_playback_pcm_close_8ch,
  		.prepare = nvhdmi_dig_playback_pcm_prepare_8ch
***************
*** 273,281 ****
  	.channels_min = 2,
  	.channels_max = 2,
  	.nid = Nv_Master_Convert_nid,
! 	.rates = SNDRV_PCM_RATE_48000,
! 	.maxbps = 16,
! 	.formats = SNDRV_PCM_FMTBIT_S16_LE,
  	.ops = {
  		.open = nvhdmi_dig_playback_pcm_open,
  		.close = nvhdmi_dig_playback_pcm_close_2ch,
--- 273,281 ----
  	.channels_min = 2,
  	.channels_max = 2,
  	.nid = Nv_Master_Convert_nid,
! 	.rates = SNDRV_PCM_RATE_44100|SNDRV_PCM_RATE_96000|SNDRV_PCM_RATE_192000,
! 	.maxbps = 24,
! 	.formats = SNDRV_PCM_FMTBIT_S16_LE|SNDRV_PCM_FMTBIT_S32_LE|SNDRV_PCM_FMTBIT_S32_LE,
  	.ops = {
  		.open = nvhdmi_dig_playback_pcm_open,
  		.close = nvhdmi_dig_playback_pcm_close_2ch,
*** linux-2.6.31-gentoo-r6/sound/pci/hda/patch_nvhdmi.c	2009-09-10 00:13:59.000000000 +0200
--- linux/sound/pci/hda/patch_nvhdmi.c	2009-09-07 16:44:34.000000000 +0200
***************
*** 258,267 ****
  	.channels_min = 2,
  	.channels_max = 8,
  	.nid = Nv_Master_Convert_nid,
! 	.rates = SNDRV_PCM_RATE_48000,
! 	.maxbps = 16,
! 	.formats = SNDRV_PCM_FMTBIT_S16_LE,
! 	.ops = {
  		.open = nvhdmi_dig_playback_pcm_open,
  		.close = nvhdmi_dig_playback_pcm_close_8ch,
  		.prepare = nvhdmi_dig_playback_pcm_prepare_8ch
--- 258,267 ----
  	.channels_min = 2,
  	.channels_max = 8,
  	.nid = Nv_Master_Convert_nid,
! 	.rates = 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|SNDRV_PCM_FMTBIT_S32_LE,
! 	.ops = {	
  		.open = nvhdmi_dig_playback_pcm_open,
  		.close = nvhdmi_dig_playback_pcm_close_8ch,
  		.prepare = nvhdmi_dig_playback_pcm_prepare_8ch
***************
*** 273,281 ****
  	.channels_min = 2,
  	.channels_max = 2,
  	.nid = Nv_Master_Convert_nid,
! 	.rates = SNDRV_PCM_RATE_48000,
! 	.maxbps = 16,
! 	.formats = SNDRV_PCM_FMTBIT_S16_LE,
  	.ops = {
  		.open = nvhdmi_dig_playback_pcm_open,
  		.close = nvhdmi_dig_playback_pcm_close_2ch,
--- 273,281 ----
  	.channels_min = 2,
  	.channels_max = 2,
  	.nid = Nv_Master_Convert_nid,
! 	.rates = SNDRV_PCM_RATE_44100|SNDRV_PCM_RATE_96000|SNDRV_PCM_RATE_192000,
! 	.maxbps = 24,
! 	.formats = SNDRV_PCM_FMTBIT_S16_LE|SNDRV_PCM_FMTBIT_S32_LE|SNDRV_PCM_FMTBIT_S32_LE,
  	.ops = {
  		.open = nvhdmi_dig_playback_pcm_open,
  		.close = nvhdmi_dig_playback_pcm_close_2ch,
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux