From: Uwe Hermann Date: Mon, 31 Dec 2012 23:33:05 +0000 (+0100) Subject: alsa: Add some more samplerates. X-Git-Tag: dsupstream~384 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=21d3d4ee871ee84a5ba598b21e9a1bdeaa9db5e3;p=libsigrok.git alsa: Add some more samplerates. Add some more samplerates that seem to be supported by some devices (found via random grepping of alsa and kernel sources). --- diff --git a/hardware/alsa/protocol.c b/hardware/alsa/protocol.c index 666211b8..f3c1d7b4 100644 --- a/hardware/alsa/protocol.c +++ b/hardware/alsa/protocol.c @@ -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,