I connected a Logitech C920 to Jack (48k, 1024frames, 3p) using:
alsa_in -j webcam-mic -c 2 -d hw:C920 -v
It sounds terribly bad and console says:
...
WARNING: Rate doesn't match (requested 48000Hz, get 32000Hz)
WARNING: buffer size does not match: (requested 2048, got 1365)
WARNING: period size does not match: (requested 1024, got 682)
...
It seems that this mic doesn't support 48000, but 32000. Ok, if alsa_in selects automatically that samplerate... what about buffer size and period size? 1365? 682?
This does the trick
alsa_in -j webcam-mic -c 2 -d hw:C920 -r 32000 -v
By telling alsa_in to set samplerate to 32000, that warning messages disappears. Nothing about samplerate (it's ok, I told it to use 32000), but neither about buffer and period size.
Why this is happening? How do I know if device supports 2048 buffer size and 1024 period size that alsa_in requested? If this an alsa_in issue or device issue?
I connected a Logitech C920 to Jack (48k, 1024frames, 3p) using:
alsa_in -j webcam-mic -c 2 -d hw:C920 -v
It sounds terribly bad and console says:It seems that this mic doesn't support 48000, but 32000. Ok, if alsa_in selects automatically that samplerate... what about buffer size and period size? 1365? 682?
This does the trick
alsa_in -j webcam-mic -c 2 -d hw:C920 -r 32000 -v
By telling alsa_in to set samplerate to 32000, that warning messages disappears. Nothing about samplerate (it's ok, I told it to use 32000), but neither about buffer and period size.Why this is happening? How do I know if device supports 2048 buffer size and 1024 period size that alsa_in requested? If this an alsa_in issue or device issue?
More info of this webcam mic.
Complete log of first command:
Complete log with second command: