diff options
author | hayeswang <hayeswang@realtek.com> | 2013-11-20 17:30:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-20 15:09:42 -0500 |
commit | dd1b119c835632f5d939f2a7351ad95001d9cb52 (patch) | |
tree | 005ce53b5939c72b15ee60a676b9298fa798dd37 /sound/soc/codecs/adau1701.h | |
parent | 61598788582cafad52816d5d1db879334d8bd561 (diff) |
r8152: support stopping/waking tx queue
The maximum packet number which a tx aggregation buffer could contain
is the tx_qlen.
tx_qlen = buffer size / (packet size + descriptor size).
If the tx buffer is empty and the queued packets are more than the
maximum value which is defined above, stop the tx queue. Wake the
tx queue if tx queue is stopped and the queued packets are less than
tx_qlen.
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/soc/codecs/adau1701.h')
0 files changed, 0 insertions, 0 deletions