HDA patch_via.c: Add 48K sample rate limit for S/PDIF streams.
PATCH 18/31 HDA patch_via.c: Add 48K sample rate limit for S/PDIF streams.
[ALSA] HDA VIA: Add 48K sample rate limit for S/PDIF streams.
sound/pci/hda/patch_via.c +6 -0
@@ -1228,6 +1228,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
@@ -1241,6 +1242,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, };static int via_build_controls (struct hda_codec *codec)
@@ -2042,6 +2044,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
@@ -2657,6 +2660,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
@@ -3137,6 +3141,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
@@ -3581,6 +3586,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
At Mon, 5 Oct 2009 22:27:43 +0800,
Quoted 4 lines · Li Bo
[ALSA] HDA VIA: Add 48K sample rate limit for S/PDIF streams.
Signed-off-by Lydia Wang <[email protected]>
Any reason?
Takashi
Quoted 54 lines
Index:
sound-2.6/sound/pci/hda/patch_via.c
===================================================================sound/pci/hda/patch_via.c +6
-0@@ -1228,6 +1228,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -1241,6 +1242,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, };static int via_build_controls (struct hda_codec *codec)@@ -2042,6 +2044,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -2657,6 +2660,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -3137,6 +3141,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -3581,6 +3586,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000,/* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
Quoted 8 lines · Takashi Iwai
At Mon, 5 Oct 2009 22:27:43 +0800,
Quoted 4 lines · Li Bo
[ALSA] HDA VIA: Add 48K sample rate limit for S/PDIF streams.
Signed-off-by Lydia Wang <[email protected]>Any reason?
Indeed, if this is required it's a pretty bad limitation..
Hi, Takashi
According to our HW test, S/PDIF at 48K sample rate has best SNR, so this limit can make S/PDIF work better.
Quoted 67 lines · Takashi Iwai
At Mon, 5 Oct 2009 22:27:43 +0800,
Quoted 4 lines · Li Bo
[ALSA] HDA VIA: Add 48K sample rate limit for S/PDIF streams.
Signed-off-by Lydia Wang <[email protected]>Any reason?
Takashi
Quoted 54 lines
Index:
sound-2.6/sound/pci/hda/patch_via.c
===================================================================sound/pci/hda/patch_via.c 2009-10-05 15:11:04.000000000 +0800 renamed from sound/pci/hda/patch_via.c 2009-10-05 15:11:02.000000000 +0800 +6
-0@@ -1228,6 +1228,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -1241,6 +1242,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, }; static int via_build_controls(struct hda_codec *codec)@@ -2042,6 +2044,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -2657,6 +2660,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -3137,6 +3141,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -3581,6 +3586,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
Sorry, I meant better stability, not SNR.
Quoted 73 lines · Li Bo
Hi, Takashi
According to our HW test, S/PDIF at 48K sample rate has best SNR, so this limit can make S/PDIF work better.Quoted 67 lines · Takashi Iwai
At Mon, 5 Oct 2009 22:27:43 +0800,
Quoted 4 lines · Li Bo
[ALSA] HDA VIA: Add 48K sample rate limit for S/PDIF streams.
Signed-off-by Lydia Wang <[email protected]>Any reason?
Takashi
Quoted 54 lines
Index:
sound-2.6/sound/pci/hda/patch_via.c
===================================================================sound/pci/hda/patch_via.c 2009-10-05 15:11:04.000000000 +0800 renamed from sound/pci/hda/patch_via.c 2009-10-05 15:11:02.000000000 +0800 +6
-0@@ -1228,6 +1228,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -1241,6 +1242,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, }; static int via_build_controls(struct hda_codec *codec)@@ -2042,6 +2044,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -2657,6 +2660,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -3137,6 +3141,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -3581,6 +3586,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
At Tue, 6 Oct 2009 12:57:14 +0800,
Quoted 2 lines · Li Bo
Sorry, I meant better stability, not SNR.
What kind of stability do you mean?
A sort of hardware limitation? Any software workaround is needed?
thanks,
Takashi
Quoted 66 lines · Li Bo
Quoted 65 lines
Hi, Takashi
According to our HW test, S/PDIF at 48K sample rate has best SNR, so this limit can make S/PDIF work better.Quoted 60 lines · Takashi Iwai
At Mon, 5 Oct 2009 22:27:43 +0800,
Quoted 4 lines · Li Bo
[ALSA] HDA VIA: Add 48K sample rate limit for S/PDIF streams.
Signed-off-by Lydia Wang <[email protected]>Any reason?
Takashi
Quoted 48 lines
Index:
sound-2.6/sound/pci/hda/patch_via.c
===================================================================sound/pci/hda/patch_via.c 2009-10-05 15:11:04.000000000 +0800 renamed from sound/pci/hda/patch_via.c 2009-10-05 15:11:02.000000000 +0800 +5
-0@@ -1228,6 +1228,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -1241,6 +1242,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, }; static int via_build_controls(struct hda_codec *codec)@@ -2042,6 +2044,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -2657,6 +2660,7 @@ .substreams = 1, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -3137,6 +3141,7 @@ .substreams = 2, .channels_min = 2, .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,@@ -3581,6 +3586,7 @@ .substreams = 2, .channels_min = 2,
Quoted 9 lines
Quoted 8 lines
Quoted 7 lines
sound/pci/hda/patch_via.c 2009-10-05 15:11:04.000000000 +0800 line 3592
Quoted 6 lines
sound/pci/hda/patch_via.c 2009-10-05 15:11:04.000000000 +0800 renamed from sound/pci/hda/patch_via.c 2009-10-05 15:11:02.000000000 +0800 +1
-0.channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, /* NID is set in via_build_pcms */ .ops = { .open = via_dig_playback_pcm_open,
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel