]> sigrok.org Git - libsigrok.git/commitdiff
alsa: Add some more samplerates.
authorUwe Hermann <redacted>
Mon, 31 Dec 2012 23:33:05 +0000 (00:33 +0100)
committerUwe Hermann <redacted>
Mon, 31 Dec 2012 23:37:18 +0000 (00:37 +0100)
Add some more samplerates that seem to be supported by some devices
(found via random grepping of alsa and kernel sources).

hardware/alsa/protocol.c

index 666211b8432d37f7e3de0677122f333882131b0c..f3c1d7b49c045b07a3b0e5e1a6e8000cbe7b61b5 100644 (file)
@@ -39,8 +39,10 @@ static const unsigned int rates[] = {
        5512,
        8000,
        11025,
+       12000,
        16000,
        22050,
+       24000,
        32000,
        44100,
        48000,
@@ -49,7 +51,8 @@ static const unsigned int rates[] = {
        96000,
        176400,
        192000,
-       384000, /* Yes, there are sound cards that go this high. */
+       384000,
+       768000, /* Yes, there are sound cards that go this high. */
 };
 
 static void alsa_scan_handle_dev(GSList **devices,