android_kernel_motorola_sm6225/sound/firewire/oxfw
Takashi Sakamoto 5cd1d3f47a ALSA: oxfw: Change the way to make PCM rules/constraints
In previous commit, this driver can get to know stream formations at
each supported sampling rates. This commit uses it to make PCM
rules/constraints and obsoletes hard-coded rules/constraints.

For this purpose, this commit adds 'struct snd_oxfw_stream_formation' and
snd_oxfw_stream_parse_format() to parse data channel formation of data
block.

According to datasheet of OXFW970/971, they support 32.0kHz to 196.0kHz.

As long as developers investigate, some devices are confirmed to have
several formats for the same sampling rate.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-12-10 10:47:37 +01:00
..
Makefile ALSA: oxfw: Add support for AV/C stream format command to get/set supported stream formation 2014-12-10 10:47:09 +01:00
oxfw-command.c ALSA: oxfw: Add support for AV/C stream format command to get/set supported stream formation 2014-12-10 10:47:09 +01:00
oxfw-control.c ALSA: oxfw: Split control functionality to a new file 2014-11-29 20:22:37 +01:00
oxfw-pcm.c ALSA: oxfw: Change the way to make PCM rules/constraints 2014-12-10 10:47:37 +01:00
oxfw-stream.c ALSA: oxfw: Change the way to make PCM rules/constraints 2014-12-10 10:47:37 +01:00
oxfw.c ALSA: oxfw: Change the way to make PCM rules/constraints 2014-12-10 10:47:37 +01:00
oxfw.h ALSA: oxfw: Change the way to make PCM rules/constraints 2014-12-10 10:47:37 +01:00