]> sigrok.org Git - libsigrok.git/blobdiff - hardware/alsa/protocol.c
alsa: Add some more samplerates.
[libsigrok.git] / hardware / alsa / protocol.c
index 2dfce2d1dfcaaa801ef2619a86dc85fab2c3a976..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,
@@ -330,7 +333,7 @@ SR_PRIV int alsa_set_samplerate(const struct sr_dev_inst *sdi,
        } while (devc->supp_rates.list[i++] != 0);
 
        if (!rate) {
-               sr_err("Sample rate " PRIu64 " not supported.", newrate);
+               sr_err("Sample rate %" PRIu64 " not supported.", newrate);
                return SR_ERR_ARG;
        }