Searched refs:pcm_priv (Results 1 – 3 of 3) sorted by relevance
224 struct mtk_afe_pcm_priv *pcm_priv = afe_priv->dai_priv[pcm_id]; in mtk_dai_pcm_hw_params() local257 pcm_con |= pcm_priv->fmt << PCM_FMT_SFT; in mtk_dai_pcm_hw_params()272 pcm_con |= pcm_priv->lck_invert << PCM_SYNC_OUT_INV_SFT; in mtk_dai_pcm_hw_params()273 pcm_con |= pcm_priv->bck_invert << PCM_BCLK_OUT_INV_SFT; in mtk_dai_pcm_hw_params()289 struct mtk_afe_pcm_priv *pcm_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_pcm_set_fmt() local294 pcm_priv->fmt = AUD_PCM_FMT_I2S; in mtk_dai_pcm_set_fmt()297 pcm_priv->fmt = AUD_PCM_FMT_EIAJ; in mtk_dai_pcm_set_fmt()300 pcm_priv->fmt = AUD_PCM_FMT_PCM_MODE_A; in mtk_dai_pcm_set_fmt()303 pcm_priv->fmt = AUD_PCM_FMT_PCM_MODE_B; in mtk_dai_pcm_set_fmt()306 pcm_priv->fmt = AUD_PCM_FMT_I2S; in mtk_dai_pcm_set_fmt()[all …]
42 struct mt8365_pcm_intf_data *pcm_priv = afe_priv->dai_priv[MT8365_AFE_IO_PCM1]; in mt8365_dai_configure_pcm1() local43 bool slave_mode = pcm_priv->slave_mode; in mt8365_dai_configure_pcm1()44 bool lrck_inv = pcm_priv->lrck_inv; in mt8365_dai_configure_pcm1()45 bool bck_inv = pcm_priv->bck_inv; in mt8365_dai_configure_pcm1()46 unsigned int fmt = pcm_priv->format; in mt8365_dai_configure_pcm1()160 struct mt8365_pcm_intf_data *pcm_priv = afe_priv->dai_priv[MT8365_AFE_IO_PCM1]; in mt8365_dai_pcm1_set_fmt() local164 pcm_priv->format = MT8365_PCM_FORMAT_I2S; in mt8365_dai_pcm1_set_fmt()172 pcm_priv->bck_inv = false; in mt8365_dai_pcm1_set_fmt()173 pcm_priv->lrck_inv = false; in mt8365_dai_pcm1_set_fmt()176 pcm_priv->bck_inv = false; in mt8365_dai_pcm1_set_fmt()[all …]
518 static int pcmdev_change_dev(struct pcmdevice_priv *pcm_priv, in pcmdev_change_dev() argument521 struct i2c_client *client = (struct i2c_client *)pcm_priv->client; in pcmdev_change_dev()522 struct regmap *map = pcm_priv->regmap; in pcmdev_change_dev()525 if (client->addr == pcm_priv->addr[dev_no]) in pcmdev_change_dev()528 client->addr = pcm_priv->addr[dev_no]; in pcmdev_change_dev()536 dev_err(pcm_priv->dev, "%s: err = %d\n", __func__, ret); in pcmdev_change_dev()