Re: [PATCH 2/2] asoc: soc-core: use regmap's parse_val to do endian translation

2014-03-06 Thread Mark Brown
On Wed, Feb 19, 2014 at 06:44:58PM +0800, Nenghua Cao wrote: > From: Nenghua Cao > > In snd_soc_bytes_put function, it forces cpu to do cpu_to_be translation, > but for mmio bus which uses REGMAP_ENDIAN_NATIVE, it doesn't need to do > endian translation. So it is better to use regmap's api wh

[PATCH 2/2] asoc: soc-core: use regmap's parse_val to do endian translation

2014-02-19 Thread Nenghua Cao
From: Nenghua Cao In snd_soc_bytes_put function, it forces cpu to do cpu_to_be translation, but for mmio bus which uses REGMAP_ENDIAN_NATIVE, it doesn't need to do endian translation. So it is better to use regmap's api which can decide if this translation is needed according to bus configura

Re: [PATCH 2/2] asoc: soc-core: use regmap's parse_val to do endian translation

2014-02-18 Thread Nenghua Cao
Update Liam and Mark's mail. On 02/19/2014 01:20 PM, Nenghua Cao wrote: > From: Nenghua Cao > > In snd_soc_bytes_put function, it forces cpu to do cpu_to_be translation, > but for mmio bus which uses REGMAP_ENDIAN_NATIVE, it doesn't need to do > endian translation. So it is better to use reg

[PATCH 2/2] asoc: soc-core: use regmap's parse_val to do endian translation

2014-02-18 Thread Nenghua Cao
From: Nenghua Cao In snd_soc_bytes_put function, it forces cpu to do cpu_to_be translation, but for mmio bus which uses REGMAP_ENDIAN_NATIVE, it doesn't need to do endian translation. So it is better to use regmap's api which can decide if this translation is needed according to bus configura