ASoC: dwc: fix support for more than two channels
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Jan 2013 06:43:43 +0000 (09:43 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 26 Jan 2013 07:37:09 +0000 (15:37 +0800)
commit0099d24c6bb584d3bac76ca81bb55f3fd8ddfb21
treef0dfd12af9facc41567fdad2bedefd4a28c5d037
parent949db153b6466c6f7cad5a427ecea94985927311
ASoC: dwc: fix support for more than two channels

There were missing break statements so everything used
TWO_CHANNEL_SUPPORT.

Also I added a return statement to silence a GCC warning:

sound/soc/dwc/designware_i2s.c: In function ‘dw_i2s_hw_params’:
sound/soc/dwc/designware_i2s.c:236:32: warning: ‘ch_reg’ may be
used uninitialized in this function
[-Wmaybe-uninitialized]

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/dwc/designware_i2s.c