From bf279046ae3762e3ae1e958818cd518b6cfc39a7 Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Fri, 29 Oct 2010 14:07:25 +0300 Subject: [PATCH] --- yaml --- r: 221559 b: refs/heads/master c: d54e1f4fdf4cf9754b7220ae4cb66dcae0fc1702 h: refs/heads/master i: 221557: bc832f51b8c865b1653b70d9724a2ce7c83811e7 221555: 45d852164e19b715ffffd10189604cda944614bb 221551: 5c217fe0ec9e07d4b80fbb9fb62c11a01fc08637 v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/tlv320dac33.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index d5f5170bec56..12a6c278c409 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 911a0f0bfc01750590e8ac6e7f9f4921f470b0d1 +refs/heads/master: d54e1f4fdf4cf9754b7220ae4cb66dcae0fc1702 diff --git a/trunk/sound/soc/codecs/tlv320dac33.c b/trunk/sound/soc/codecs/tlv320dac33.c index fed14582b498..c47c20d21ea5 100644 --- a/trunk/sound/soc/codecs/tlv320dac33.c +++ b/trunk/sound/soc/codecs/tlv320dac33.c @@ -58,7 +58,7 @@ (1000000000 / ((rate * 1000) / samples)) #define US_TO_SAMPLES(rate, us) \ - (rate / (1000000 / us)) + (rate / (1000000 / (us < 1000000 ? us : 1000000))) #define UTHR_FROM_PERIOD_SIZE(samples, playrate, burstrate) \ ((samples * 5000) / ((burstrate * 5000) / (burstrate - playrate)))