RE: [PATCH v3] ASoC: amd: add support for rt5682 codec in machine driver

2021-03-16 Thread Shuming [范書銘]
> On 3/16/21 8:37 AM, Mukunda,Vijendar wrote: > > > > > > On 15/03/21 9:30 pm, Pierre-Louis Bossart wrote: > >> > >>> +static int rt5682_clk_enable(struct snd_pcm_substream *substream) { > >>> +    int ret; > >>> +    struct snd_soc_pcm_runtime *rtd = > >>> +asoc_substream_to_rtd(substream); > >>>

Re: [PATCH v3] ASoC: amd: add support for rt5682 codec in machine driver

2021-03-16 Thread Pierre-Louis Bossart
On 3/16/21 8:37 AM, Mukunda,Vijendar wrote: On 15/03/21 9:30 pm, Pierre-Louis Bossart wrote: +static int rt5682_clk_enable(struct snd_pcm_substream *substream) +{ +    int ret; +    struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); + +    /* + * Set wclk to 48000 bec

Re: [PATCH v3] ASoC: amd: add support for rt5682 codec in machine driver

2021-03-16 Thread Mukunda,Vijendar
On 15/03/21 9:30 pm, Pierre-Louis Bossart wrote: +static int rt5682_clk_enable(struct snd_pcm_substream *substream) +{ +    int ret; +    struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); + +    /* + * Set wclk to 48000 because the rate constraint of this driver is +   

Re: [PATCH v3] ASoC: amd: add support for rt5682 codec in machine driver

2021-03-15 Thread Pierre-Louis Bossart
+static int rt5682_clk_enable(struct snd_pcm_substream *substream) +{ + int ret; + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); + + /* +* Set wclk to 48000 because the rate constraint of this driver is +* 48000. ADAU7002 spec: "The ADAU70