Re: [alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-05 Thread Garlic Tseng
On Tue, 2016-07-05 at 10:12 +0200, Mark Brown wrote: > On Tue, Jul 05, 2016 at 09:52:13AM +0800, Garlic Tseng wrote: > > On Mon, 2016-07-04 at 16:44 +0200, Mark Brown wrote: > > > > We really shouldn't be writing the registers or other internal data of > > > the device. Instead we should be getti

Re: [alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-05 Thread Mark Brown
On Tue, Jul 05, 2016 at 09:52:13AM +0800, Garlic Tseng wrote: > On Mon, 2016-07-04 at 16:44 +0200, Mark Brown wrote: > > We really shouldn't be writing the registers or other internal data of > > the device. Instead we should be getting the driver for the relevant > > hardware component to do it.

Re: [alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-04 Thread Garlic Tseng
On Mon, 2016-07-04 at 16:44 +0200, Mark Brown wrote: > On Mon, Jul 04, 2016 at 06:56:27PM +0800, Garlic Tseng wrote: > > > +static int mt2701_btmrg_startup(struct snd_pcm_substream *substream, > > + struct snd_soc_dai *dai) > > +{ > > + struct snd_soc_pcm_runtime *rtd =

Re: [alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-04 Thread Mark Brown
On Mon, Jul 04, 2016 at 06:56:27PM +0800, Garlic Tseng wrote: > +static int mt2701_btmrg_startup(struct snd_pcm_substream *substream, > + struct snd_soc_dai *dai) > +{ > + struct snd_soc_pcm_runtime *rtd = substream->private_data; > + struct mtk_base_afe *afe =

[alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-04 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm