• Takashi Sakamoto's avatar
    ALSA: dice: purge generating channel cache · 6f688268
    Takashi Sakamoto authored
    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: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    6f688268
dice-stream.c 9.36 KB