• Kuninori Morimoto's avatar
    ASoC: rsnd: add rsnd_adg_clk_query() · 1dfdc650
    Kuninori Morimoto authored
    Current Renesas sound driver is assuming that all Sampling rate and
    channles are possible to use, but these are depends on inputed clock
    and SSI connection situation.
    For example, if it is using 1 SSI, enabled TDM mode and has 12288000
    input clock, 2ch output can support until 192000Hz, but 6ch output can
    support until 64000Hz, 8ch can support 48000Hz.
    To control these situation correctly, it needs to support
    hw_constraints / refine feature.
    
    To support such feature, it needs SSI clock query feature, and it needs
    ADG clock query feature. Current ADG has rsnd_adg_ssi_clk_try_start()
    and it is doing similar things, but it try to setup ADG register in
    same time. This is not needed.
    
    This patch adds new rsnd_adg_clk_query() and separates query feature
    and register setting feature in adg.c
    Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Tested-by: default avatarHiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    1dfdc650
rsnd.h 21.6 KB