ALSA: dice: purge generating channel cache
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Feb 2016 13:54:19 +0000 (22:54 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 9 Feb 2016 11:22:10 +0000 (12:22 +0100)
commit6f688268b3f4ba494bdf1f9755a3dfa4d91369f0
treea4fb786891078da051a246f993e95f876d91d995
parentc30076568d20bd6f7a4e021b19672a6b03266430
ALSA: dice: purge generating channel cache

Dice interface design doesn't allow drivers to read supported combination
between sampling transfer frequencies and the number of Multi bit linear
audio data channels. Due to the design, ALSA dice driver changes current
sampling transfer frequency to generate cache of the combinations at
device probing processing.

Although, this idea is worse because ALSA dice driver changes the state of
clock. This is not what users want when they save favorite configuration
to the device in advance.

Furthermore, there's a possibility that the format of data block is decided
not only according to current sampling transfer frequency, but also the
other factors, i.e. data format for digital interface. It's not good to
generate channel cache according to the sampling transfer frequency only.

This commit purges processing cache data and related structure members. As
a result, users must set preferable sampling transfer frequency before
using ALSA PCM applications, as long as they want to start any PCM
substreams at the rate except for current one.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-stream.c
sound/firewire/dice/dice.c
sound/firewire/dice/dice.h