Advertisement
Guest User

Patch for fourchannel support

a guest
Jun 10th, 2014
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.07 KB | None | 0 0
  1. From 1207cd0e107ae58a376056ae5c8ae60a04950b0e Mon Sep 17 00:00:00 2001
  2. From: Florian Meier <florian.meier@koalo.de>
  3. Date: Tue, 10 Jun 2014 15:23:44 +0200
  4. Subject: [PATCH] Fourchannel support
  5.  
  6. ---
  7.  sound/soc/codecs/arizona.c | 5 ++++-
  8.  1 file changed, 4 insertions(+), 1 deletion(-)
  9.  
  10. diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
  11. index f5e9285..62bfb00 100644
  12. --- a/sound/soc/codecs/arizona.c
  13. +++ b/sound/soc/codecs/arizona.c
  14. @@ -10,6 +10,8 @@
  15.   * published by the Free Software Foundation.
  16.   */
  17.  
  18. +#define DEBUG
  19. +
  20.  #include <linux/delay.h>
  21.  #include <linux/gcd.h>
  22.  #include <linux/module.h>
  23. @@ -1082,7 +1084,8 @@ static int arizona_hw_params(struct snd_pcm_substream *substream,
  24.     arizona_aif_dbg(dai, "BCLK %dHz LRCLK %dHz\n",
  25.             rates[bclk], rates[bclk] / lrclk);
  26.  
  27. -   wl = snd_pcm_format_width(params_format(params));
  28. +   //wl = snd_pcm_format_width(params_format(params));
  29. +   wl = snd_pcm_format_width(params_format(params))/2;
  30.     frame = wl << ARIZONA_AIF1TX_WL_SHIFT | wl;
  31.  
  32.     ret = arizona_hw_params_rate(substream, params, dai);
  33. --
  34. 1.9.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement