Skip to content

Commit

Permalink
ALSA: compress: change the way sample rates are sent to kernel
Browse files Browse the repository at this point in the history
The usage of SNDRV_RATES is not effective as we can have rates like 12000 or
some other ones used by decoders. This change the usage of this to use the raw
Hz values to be sent to kernel

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Vinod Koul authored and Takashi Iwai committed Dec 16, 2013
1 parent d094760 commit f0e9c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/sound/compress_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ union snd_codec_options {

/** struct snd_codec_desc - description of codec capabilities
* @max_ch: Maximum number of audio channels
* @sample_rates: Sampling rates in Hz, use SNDRV_PCM_RATE_xxx for this
* @sample_rates: Sampling rates in Hz, use values like 48000 for this
* @bit_rate: Indexed array containing supported bit rates
* @num_bitrates: Number of valid values in bit_rate array
* @rate_control: value is specified by SND_RATECONTROLMODE defines.
Expand Down

0 comments on commit f0e9c08

Please sign in to comment.