X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fsunxi%2Fpatches-4.1%2F166-asoc-sunxi-fix-distortion-on-16bit-mono.patch;h=b3668ded3d86832c8805c31aae25b9401aa9506e;hb=384e649c9cc1813f52fe124bc6ae75adccf5ef6d;hp=120220ce3db670721224a29b22e6d6e598ca947b;hpb=fa3b59d9af8d5c2550db9cc94d35c1d417d55e6a;p=openwrt.git diff --git a/target/linux/sunxi/patches-4.1/166-asoc-sunxi-fix-distortion-on-16bit-mono.patch b/target/linux/sunxi/patches-4.1/166-asoc-sunxi-fix-distortion-on-16bit-mono.patch index 120220ce3d..b3668ded3d 100644 --- a/target/linux/sunxi/patches-4.1/166-asoc-sunxi-fix-distortion-on-16bit-mono.patch +++ b/target/linux/sunxi/patches-4.1/166-asoc-sunxi-fix-distortion-on-16bit-mono.patch @@ -11,11 +11,9 @@ Signed-off-by: Hans de Goede sound/soc/sunxi/sunxi-codec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -diff --git a/sound/soc/sunxi/sunxi-codec.c b/sound/soc/sunxi/sunxi-codec.c -index 67f978e..77a191b 100644 --- a/sound/soc/sunxi/sunxi-codec.c +++ b/sound/soc/sunxi/sunxi-codec.c -@@ -215,9 +215,6 @@ static int sunxi_codec_prepare(struct snd_pcm_substream *substream, +@@ -215,9 +215,6 @@ static int sunxi_codec_prepare(struct sn regmap_update_bits(priv->regmap, SUNXI_DAC_FIFOC, 0x1 << SUNXI_DAC_FIFOC_FIR_VERSION, 0x1 << SUNXI_DAC_FIFOC_FIR_VERSION); } @@ -25,7 +23,7 @@ index 67f978e..77a191b 100644 /* send last sample when DAC FIFO under run */ regmap_update_bits(priv->regmap, SUNXI_DAC_FIFOC, 0x1 << SUNXI_DAC_FIFOC_SEND_LASAT, 0x0 << SUNXI_DAC_FIFOC_SEND_LASAT); } else { -@@ -329,6 +326,7 @@ static int sunxi_codec_hw_params(struct snd_pcm_substream *substream, +@@ -329,6 +326,7 @@ static int sunxi_codec_hw_params(struct regmap_update_bits(priv->regmap, SUNXI_DAC_FIFOC, 7 << SUNXI_DAC_FIFOC_DAC_FS, hwrate << SUNXI_DAC_FIFOC_DAC_FS); regmap_update_bits(priv->regmap, SUNXI_DAC_FIFOC, 1 << SUNXI_DAC_FIFOC_MONO_EN, is_mono << SUNXI_DAC_FIFOC_MONO_EN); regmap_update_bits(priv->regmap, SUNXI_DAC_FIFOC, 1 << SUNXI_DAC_FIFOC_TX_SAMPLE_BITS, is_24bit << SUNXI_DAC_FIFOC_TX_SAMPLE_BITS);