linux-stable/sound/soc/ux500
Lee Jones 43f2e1a3be dmaengine: ste_dma40: Convert data_width from register bit format to value
When a DMA client requests and configures a DMA channel, it requests
data_width in Bytes. The DMA40 driver then swiftly converts it over to
the necessary register bit value. Unfortunately, for any subsequent
calculations we have to shift '1' by the bit pattern (1 << data_width)
times to make any sense of it.

This patch flips the semantics on its head and only converts the value
to its respective register bit pattern when writing to registers. This
way we can use the true data_width (in Bytes) value.

Cc: Dan Williams <djbw@fb.com>
Cc: Per Forlin <per.forlin@stericsson.com>
Cc: Rabin Vincent <rabin@rab.in>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-06-04 11:12:09 +02:00
..
Kconfig sound updates for v3.10-rc1 2013-05-03 09:10:23 -07:00
Makefile ASoC: Ux500: Add machine-driver 2012-06-17 20:46:12 +01:00
mop500.c ASoC: Ux500: Fix build error pertaining to missing include file 2013-01-31 20:37:05 +08:00
mop500_ab8500.c ARM: ux500: get rid of <mach/[hardware|db8500-regs].h> 2013-04-08 13:59:28 +02:00
mop500_ab8500.h ASoC: Ux500: Add machine-driver 2012-06-17 20:46:12 +01:00
ux500_msp_dai.c sound updates for v3.10-rc1 2013-05-03 09:10:23 -07:00
ux500_msp_dai.h ASoC: Ux500: remove test for undefined Kconfig macro 2013-04-08 13:44:32 +01:00
ux500_msp_i2s.c ARM: ux500: get rid of <mach/[hardware|db8500-regs].h> 2013-04-08 13:59:28 +02:00
ux500_msp_i2s.h sound updates for v3.10-rc1 2013-05-03 09:10:23 -07:00
ux500_pcm.c dmaengine: ste_dma40: Convert data_width from register bit format to value 2013-06-04 11:12:09 +02:00
ux500_pcm.h ASoC: ux500_pcm: Use the same snd_pcm_hardware for playback and capture 2013-04-07 19:51:05 +01:00