lkml.org 
[lkml]   [2022]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [RESEND v13 05/10] ASoC: qcom: Add register definition for codec rddma and wrdma
    Quoting Srinivasa Rao Mandadapu (2022-02-14 06:58:23)
    > This patch adds register definitions for codec read dma and write dma

    git grep "This patch" -- Documentation/process/

    > lpass interface.
    >
    > Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
    > Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
    > Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
    > Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

    > diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h
    > index 7cc3763..e059c4a 100644
    > --- a/sound/soc/qcom/lpass.h
    > +++ b/sound/soc/qcom/lpass.h
    > @@ -39,6 +39,29 @@
    > return -EINVAL; \
    > } while (0)
    >
    > +static inline bool is_cdc_dma_port(int dai_id)
    > +{
    > + switch (dai_id) {
    > + case LPASS_CDC_DMA_RX0 ... LPASS_CDC_DMA_RX9:
    > + case LPASS_CDC_DMA_TX0 ... LPASS_CDC_DMA_TX8:
    > + case LPASS_CDC_DMA_VA_TX0 ... LPASS_CDC_DMA_VA_TX8:
    > + return true;
    > + default:

    Drop case

    > + return false;
    > + }

    return false;

    would be shorter.

    > +}
    > +
    > +static inline bool is_rxtx_cdc_dma_port(int dai_id)
    > +{
    > + switch (dai_id) {
    > + case LPASS_CDC_DMA_RX0 ... LPASS_CDC_DMA_RX9:
    > + case LPASS_CDC_DMA_TX0 ... LPASS_CDC_DMA_TX8:
    > + return true;
    > + default:
    > + return false;
    > + }

    Same.

    > +}
    > +
    > struct lpaif_i2sctl {
    > struct regmap_field *loopback;
    > struct regmap_field *spken;

    \
     
     \ /
      Last update: 2022-02-15 02:13    [W:4.174 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site