]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Update TNF bit in I2C status register, original patch by Juergen Lock.
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 27 Jul 2007 21:49:15 +0000 (21:49 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 27 Jul 2007 21:49:15 +0000 (21:49 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3088 c046a42c-6fe2-441c-8c8c-71466251a162

hw/pxa2xx.c

index a1c54b9881cd519e9cd33ade26726eb90790e274..6109fc13e9a624070e9948fa0dba687fc55ac87d 100644 (file)
@@ -1530,6 +1530,8 @@ static inline void pxa2xx_i2s_update(struct pxa2xx_i2s_s *i2s)
     pxa2xx_dma_request(i2s->dma, PXA2XX_TX_RQ_I2S, tfs);
 
     i2s->status &= 0xe0;
+    if (i2s->fifo_len < 16 || !i2s->enable)
+        i2s->status |= 1 << 0;                 /* TNF */
     if (i2s->rx_len)
         i2s->status |= 1 << 1;                 /* RNE */
     if (i2s->enable)