alsa: support for alternate sampling rate

This is where the actual changes happen.
Some additional checks would be required to make sure the
rate is actually supported
Tested with both PCM and passthrough streams

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
Pierre-Louis Bossart 2011-08-02 18:37:29 -05:00 committed by Arun Raghavan
parent f0ec495938
commit b232fbd8f8
4 changed files with 48 additions and 50 deletions

View file

@ -45,6 +45,7 @@ PA_MODULE_USAGE(
"device_id=<ALSA card index> "
"format=<sample format> "
"rate=<sample rate> "
"alternate_rate=<alternate sample rate> "
"channels=<number of channels> "
"channel_map=<channel map> "
"fragments=<number of fragments> "
@ -69,6 +70,7 @@ static const char* const valid_modargs[] = {
"device_id",
"format",
"rate",
"alternate_rate",
"channels",
"channel_map",
"fragments",