ralink: fix audio recording
authorJohn Crispin <john@openwrt.org>
Wed, 9 Dec 2015 11:25:01 +0000 (11:25 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 9 Dec 2015 11:25:01 +0000 (11:25 +0000)
there was an incorrect usage of tx path helpers in the rx path causing the code to
run into endless sleep states

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 47812

target/linux/ramips/patches-3.18/500-alsa.patch

index d6d489249fd6fef034bede03083d7c5bd4895e42..41fbb8407c7901c223e521f8ae4dc901ce4980f9 100644 (file)
 +              if(rtd->dmaStat[SNDRV_PCM_STREAM_CAPTURE]){
 +
 +                      gdma_En_Switch(rtd,STREAM_CAPTURE,GDMA_I2S_DIS);
-+                      i2s_tx_end_sleep_on(rtd);
++                      i2s_rx_end_sleep_on(rtd);
 +                      tasklet_kill(&i2s_rx_tasklet);
 +                      i2s_rx_disable(rtd);
 +                      //mt76xx_pcm_free_dma_buffer(substream,substream->stream);