• Takashi Sakamoto's avatar
    ALSA: dice: remove local frag of force_two_pcms · 9c367c01
    Takashi Sakamoto authored
    At present, to add PCM substreams for each of available tx/rx streams,
    this driver uses a condition based on model-name. This is not enough
    to support unknown models.
    
    In former commits, this driver gains cache of stream formats. For models
    which support protocol extension, all of available steam formats are
    cached. For known models, hard-coded stream formats are used to generate
    the cache. For unknown models, stream formats at current mode of sampling
    transmission frequency is cached.
    
    Anyway, at least, the cached formats are used to expose constrains of PCM
    substreams for userspace applications. Thus, The cached data can be also
    used to add PCM substreams themselves, instead of the name-based
    conditions.
    
    This commit obsoletes local frag of force_two_pcms.
    Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    9c367c01
dice.h 6.95 KB