Commit 7a7ebd9f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: add all supported S/PDIF frequencies

parent 7105abf8
...@@ -179,14 +179,15 @@ static int Open (vlc_object_t *obj) ...@@ -179,14 +179,15 @@ static int Open (vlc_object_t *obj)
switch (p_aout->output.output.i_rate) switch (p_aout->output.output.i_rate)
{ {
case 48000: #define FS(freq) \
aes3 = IEC958_AES3_CON_FS_48000; case freq: aes3 = IEC958_AES3_CON_FS_ ## freq; break;
break; FS( 44100) /* def. */ FS( 48000) FS( 32000)
case 44100: FS( 22050) FS( 24000)
aes3 = IEC958_AES3_CON_FS_44100; FS( 88200) FS(768000) FS( 96000)
break; FS(176400) FS(192000)
#undef FS
default: default:
aes3 = IEC958_AES3_CON_FS_32000; aes3 = IEC958_AES3_CON_FS_NOTID;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment