mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
projects/RPi/patches/linux: update RPi support patch, this adds Hifiberry DAC+ support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7e83f12740
commit
74c4bf7f59
@ -2190,6 +2190,7 @@ CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y
|
||||
# CONFIG_SND_ATMEL_SOC is not set
|
||||
CONFIG_SND_BCM2708_SOC_I2S=m
|
||||
CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC=m
|
||||
CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS=m
|
||||
CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI=m
|
||||
CONFIG_SND_BCM2708_SOC_RPI_DAC=m
|
||||
CONFIG_SND_BCM2708_SOC_IQAUDIO_DAC=m
|
||||
|
@ -1,7 +1,7 @@
|
||||
From 839892fb323f851df87d53988607afedf3dd830b Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Sun, 12 May 2013 12:24:19 +0100
|
||||
Subject: [PATCH 01/71] Main bcm2708 linux port
|
||||
Subject: [PATCH 01/73] Main bcm2708 linux port
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
---
|
||||
@ -8679,7 +8679,7 @@ index 08abe99..544da76 100644
|
||||
From da440b37d0d7441018381f8444219096b7b0bb1b Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Tue, 7 May 2013 22:20:24 +0100
|
||||
Subject: [PATCH 02/71] Add quick config.
|
||||
Subject: [PATCH 02/73] Add quick config.
|
||||
|
||||
This is designed for quick compiling when developing.
|
||||
No modules are needed and it includes all Pi specific drivers
|
||||
@ -8898,7 +8898,7 @@ index 0000000..e5efe75
|
||||
From 902e25dd4eaa08f290dbe28741cfa19f135e9574 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 1 May 2013 19:46:17 +0100
|
||||
Subject: [PATCH 03/71] Add dwc_otg driver
|
||||
Subject: [PATCH 03/73] Add dwc_otg driver
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
---
|
||||
@ -65973,7 +65973,7 @@ index 0000000..cdc9963
|
||||
From 6b87ca694e19511ee495315977066f3df32cbadc Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 1 May 2013 19:54:32 +0100
|
||||
Subject: [PATCH 04/71] bcm2708 watchdog driver
|
||||
Subject: [PATCH 04/73] bcm2708 watchdog driver
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
---
|
||||
@ -66407,7 +66407,7 @@ index 0000000..8a27d68
|
||||
From 75f85908f5c7346bcfae244d2de54469e7a34b98 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 1 May 2013 19:55:09 +0100
|
||||
Subject: [PATCH 05/71] bcm2708 framebuffer driver
|
||||
Subject: [PATCH 05/73] bcm2708 framebuffer driver
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
---
|
||||
@ -69457,7 +69457,7 @@ index 3c14e43..7626beb 100644
|
||||
From 39f45149b0b1b89e9c6e87d79de37b754008c3d3 Mon Sep 17 00:00:00 2001
|
||||
From: Harm Hanemaaijer <fgenfb@yahoo.com>
|
||||
Date: Thu, 20 Jun 2013 20:21:39 +0200
|
||||
Subject: [PATCH 06/71] Speed up console framebuffer imageblit function
|
||||
Subject: [PATCH 06/73] Speed up console framebuffer imageblit function
|
||||
|
||||
Especially on platforms with a slower CPU but a relatively high
|
||||
framebuffer fill bandwidth, like current ARM devices, the existing
|
||||
@ -69672,7 +69672,7 @@ index a2bb276..436494f 100644
|
||||
From dab41a03d19951dcf0af36647b7bcfc716fa46ce Mon Sep 17 00:00:00 2001
|
||||
From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
|
||||
Date: Mon, 17 Jun 2013 13:32:11 +0300
|
||||
Subject: [PATCH 07/71] fbdev: add FBIOCOPYAREA ioctl
|
||||
Subject: [PATCH 07/73] fbdev: add FBIOCOPYAREA ioctl
|
||||
|
||||
Based on the patch authored by Ali Gholami Rudi at
|
||||
https://lkml.org/lkml/2009/7/13/153
|
||||
@ -69771,7 +69771,7 @@ index fb795c3..fa72af0 100644
|
||||
From 5ca156864b2ac966e3d20aa29a3eabab4b559295 Mon Sep 17 00:00:00 2001
|
||||
From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
|
||||
Date: Mon, 17 Jun 2013 16:00:25 +0300
|
||||
Subject: [PATCH 08/71] bcm2708_fb: DMA acceleration for fb_copyarea
|
||||
Subject: [PATCH 08/73] bcm2708_fb: DMA acceleration for fb_copyarea
|
||||
|
||||
Based on http://www.raspberrypi.org/phpBB3/viewtopic.php?p=62425#p62425
|
||||
Also used Simon's dmaer_master module as a reference for tweaking DMA
|
||||
@ -70261,7 +70261,7 @@ index 54cd760..b3b1e04 100644
|
||||
From 9e7cf5f765bfaf0412918f84f87f507404928531 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Tue, 2 Jul 2013 23:42:01 +0100
|
||||
Subject: [PATCH 09/71] bcm2708 vchiq driver
|
||||
Subject: [PATCH 09/73] bcm2708 vchiq driver
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
|
||||
@ -82816,7 +82816,7 @@ index 0000000..b6bfa21
|
||||
From 07e18ad78953ccfa168920bd0cfa95d20d853a0a Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Mon, 12 May 2014 15:12:02 +0100
|
||||
Subject: [PATCH 10/71] vchiq: Avoid high load when blocked and unkillable
|
||||
Subject: [PATCH 10/73] vchiq: Avoid high load when blocked and unkillable
|
||||
|
||||
vchiq: Include SIGSTOP and SIGCONT in list of signals not-masked by vchiq to allow gdb to work
|
||||
---
|
||||
@ -82984,7 +82984,7 @@ index c2eefef..05e7979 100644
|
||||
From c156c499b73a549d7bff0d3c991494d11108cd6f Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 3 Jul 2013 00:31:47 +0100
|
||||
Subject: [PATCH 11/71] cma: Add vc_cma driver to enable use of CMA
|
||||
Subject: [PATCH 11/73] cma: Add vc_cma driver to enable use of CMA
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
---
|
||||
@ -84279,7 +84279,7 @@ index 0000000..5325832
|
||||
From bcd05a294b17945c1992560a04e60d5a75ecd347 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Mon, 26 Mar 2012 22:15:50 +0100
|
||||
Subject: [PATCH 12/71] bcm2708: alsa sound driver
|
||||
Subject: [PATCH 12/73] bcm2708: alsa sound driver
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
|
||||
@ -87073,7 +87073,7 @@ index 0000000..af3e6eb
|
||||
From afcf0a46aa2ca83398e4be2a0b444dfe82915681 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 3 Jul 2013 00:51:55 +0100
|
||||
Subject: [PATCH 13/71] Add hwrng (hardware random number generator) driver
|
||||
Subject: [PATCH 13/73] Add hwrng (hardware random number generator) driver
|
||||
|
||||
---
|
||||
arch/arm/mach-bcm2708/include/mach/platform.h | 1 +
|
||||
@ -87258,7 +87258,7 @@ index 0000000..340f004
|
||||
From e331619637903fb87cf857a2eca13db59c3fb26e Mon Sep 17 00:00:00 2001
|
||||
From: Aron Szabo <aron@aron.ws>
|
||||
Date: Sat, 16 Jun 2012 12:15:55 +0200
|
||||
Subject: [PATCH 14/71] lirc: added support for RaspberryPi GPIO
|
||||
Subject: [PATCH 14/73] lirc: added support for RaspberryPi GPIO
|
||||
|
||||
lirc_rpi: Use read_current_timer to determine transmitter delay. Thanks to jjmz and others
|
||||
See: https://github.com/raspberrypi/linux/issues/525
|
||||
@ -88006,7 +88006,7 @@ index 0000000..57ffacf
|
||||
From 792da119ecc4c626a203766aaec1e52b2e3a7fab Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 3 Jul 2013 00:49:20 +0100
|
||||
Subject: [PATCH 15/71] Add cpufreq driver
|
||||
Subject: [PATCH 15/73] Add cpufreq driver
|
||||
|
||||
---
|
||||
arch/arm/Kconfig | 1 +
|
||||
@ -88311,7 +88311,7 @@ index 0000000..7bc55bd
|
||||
From 3e47e00f837107aeb880b4ea1712f1a08c27d970 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Tue, 26 Mar 2013 19:24:24 +0000
|
||||
Subject: [PATCH 16/71] Added hwmon/thermal driver for reporting core
|
||||
Subject: [PATCH 16/73] Added hwmon/thermal driver for reporting core
|
||||
temperature. Thanks Dorian
|
||||
|
||||
---
|
||||
@ -88839,7 +88839,7 @@ index 0000000..85fceb5
|
||||
From e611450aaf310a866b42c52a34fc5307d4231046 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Tue, 26 Mar 2013 17:26:38 +0000
|
||||
Subject: [PATCH 17/71] Allow mac address to be set in smsc95xx
|
||||
Subject: [PATCH 17/73] Allow mac address to be set in smsc95xx
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
---
|
||||
@ -88936,7 +88936,7 @@ index d07bf4c..5ae60ab 100644
|
||||
From cb77c7822b8734fb85c2e0d5fce466b47199969f Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Mon, 4 Nov 2013 18:56:10 +0000
|
||||
Subject: [PATCH 18/71] Add Chris Boot's i2c and spi drivers.
|
||||
Subject: [PATCH 18/73] Add Chris Boot's i2c and spi drivers.
|
||||
|
||||
i2c-bcm2708: fixed baudrate
|
||||
|
||||
@ -90323,7 +90323,7 @@ index 0000000..b04a57d
|
||||
From b48352e617873908e9eed7c7a0a0274c3154d443 Mon Sep 17 00:00:00 2001
|
||||
From: cbeytas <cbeytas@shaw.ca>
|
||||
Date: Mon, 24 Jun 2013 00:05:40 -0400
|
||||
Subject: [PATCH 19/71] Perform I2C combined transactions when possible
|
||||
Subject: [PATCH 19/73] Perform I2C combined transactions when possible
|
||||
|
||||
Perform I2C combined transactions whenever possible, within the
|
||||
restrictions of the Broadcomm Serial Controller.
|
||||
@ -90401,7 +90401,7 @@ index f266f10..8750634 100644
|
||||
From a8f2638feb6187f10fe57305790052d7eb5b8864 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 8 May 2013 11:46:50 +0100
|
||||
Subject: [PATCH 20/71] enabling the realtime clock 1-wire chip DS1307 and
|
||||
Subject: [PATCH 20/73] enabling the realtime clock 1-wire chip DS1307 and
|
||||
1-wire on GPIO4 (as a module)
|
||||
|
||||
1-wire: Add support for configuring pin for w1-gpio kernel module
|
||||
@ -90679,7 +90679,7 @@ index 2820924..fd0550f 100644
|
||||
From bd506122daf1d74245615448bc794c2f64fce271 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Fri, 12 Apr 2013 23:58:47 +0100
|
||||
Subject: [PATCH 24/71] config: add missing options from 3.6.y kernel
|
||||
Subject: [PATCH 24/73] config: add missing options from 3.6.y kernel
|
||||
|
||||
---
|
||||
arch/arm/configs/bcmrpi_defconfig | 757 ++++++++++++++++++++++++++++++++------
|
||||
@ -91734,7 +91734,7 @@ index 31f5afaa..5b69e83 100644
|
||||
From 81c9c12a18219e4047e0ce94c903a0d71781005d Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 18 Dec 2013 22:16:19 +0000
|
||||
Subject: [PATCH 25/71] config: Enable CONFIG_MEMCG, but leave it disabled (due
|
||||
Subject: [PATCH 25/73] config: Enable CONFIG_MEMCG, but leave it disabled (due
|
||||
to memory cost). Enable with cgroup_enable=memory.
|
||||
|
||||
---
|
||||
@ -91808,7 +91808,7 @@ index 1f14a43..403173e 100644
|
||||
From 4419c5e5a7d400cdd45bcb500a91a46853aaac51 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 3 Jul 2013 00:46:42 +0100
|
||||
Subject: [PATCH 26/71] Add FIQ patch to dwc_otg driver. Enable with
|
||||
Subject: [PATCH 26/73] Add FIQ patch to dwc_otg driver. Enable with
|
||||
dwc_otg.fiq_fix_enable=1. Should give about 10% more ARM performance. Thanks
|
||||
to Gordon and Costas
|
||||
|
||||
@ -95133,7 +95133,7 @@ index 1b1f83c..c8590b5 100644
|
||||
From 23139849a415b9f4048fbc2e8f9d9a610cfd6bb6 Mon Sep 17 00:00:00 2001
|
||||
From: P33M <P33M@github.com>
|
||||
Date: Wed, 19 Mar 2014 12:58:23 +0000
|
||||
Subject: [PATCH 27/71] dwc_otg: fiq_fsm: Base commit for driver rewrite
|
||||
Subject: [PATCH 27/73] dwc_otg: fiq_fsm: Base commit for driver rewrite
|
||||
|
||||
This commit removes the previous FIQ fixes entirely and adds fiq_fsm.
|
||||
|
||||
@ -100035,7 +100035,7 @@ index 5d310df..4b32941 100644
|
||||
From d4a83bcbcb9da2e2da12b9f6c699c4fbba695f94 Mon Sep 17 00:00:00 2001
|
||||
From: Vincent Sanders <vincent.sanders@collabora.co.uk>
|
||||
Date: Wed, 30 Jan 2013 12:45:18 +0000
|
||||
Subject: [PATCH 28/71] bcm2835: add v4l2 camera device
|
||||
Subject: [PATCH 28/73] bcm2835: add v4l2 camera device
|
||||
|
||||
- Supports raw YUV capture, preview, JPEG and H264.
|
||||
- Uses videobuf2 for data transfer, using dma_buf.
|
||||
@ -106026,7 +106026,7 @@ index 0000000..9d1d11e
|
||||
From ce9099c8d233407393fddc3aac73867919593acf Mon Sep 17 00:00:00 2001
|
||||
From: Dave Stevenson <dsteve@broadcom.com>
|
||||
Date: Mon, 9 Dec 2013 10:58:01 +0000
|
||||
Subject: [PATCH 29/71] V4L2: Fixes from 6by9
|
||||
Subject: [PATCH 29/73] V4L2: Fixes from 6by9
|
||||
|
||||
V4L2: Fix EV values. Add manual shutter speed control
|
||||
|
||||
@ -108404,7 +108404,7 @@ index a06fb44..76f249e 100644
|
||||
From c6bb89322561ea50e609a73ee792020429329472 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 22 Nov 2013 14:22:53 +0100
|
||||
Subject: [PATCH 30/71] dmaengine: Add support for BCM2708
|
||||
Subject: [PATCH 30/73] dmaengine: Add support for BCM2708
|
||||
|
||||
Add support for DMA controller of BCM2708 as used in the Raspberry Pi.
|
||||
Currently it only supports cyclic DMA.
|
||||
@ -109047,7 +109047,7 @@ index 0000000..b244293
|
||||
From 9f7b49b82309f6b788c08ffa9cb7bca2f850c375 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 22 Nov 2013 14:33:38 +0100
|
||||
Subject: [PATCH 31/71] ASoC: Add support for BCM2708
|
||||
Subject: [PATCH 31/73] ASoC: Add support for BCM2708
|
||||
|
||||
This driver adds support for digital audio (I2S)
|
||||
for the BCM2708 SoC that is used by the
|
||||
@ -110048,7 +110048,7 @@ index 0000000..ebaf3d6
|
||||
From f2d01e149898dfc5a6ccfd5007bc0ac07caa156f Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 22 Nov 2013 14:37:51 +0100
|
||||
Subject: [PATCH 32/71] BCM2708: Extend mach header
|
||||
Subject: [PATCH 32/73] BCM2708: Extend mach header
|
||||
|
||||
Extend the headers of the mach-bcm2708
|
||||
in order to support I2S and DMA engine.
|
||||
@ -110096,7 +110096,7 @@ index 992a630..2e7e1bb 100644
|
||||
From ba0fd48bfe41f4f12ac70dfbba058afa8f3100fd Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 22 Nov 2013 14:59:51 +0100
|
||||
Subject: [PATCH 33/71] ASoC: Add support for PCM5102A codec
|
||||
Subject: [PATCH 33/73] ASoC: Add support for PCM5102A codec
|
||||
|
||||
Some definitions to support the PCM5102A codec
|
||||
by Texas Instruments.
|
||||
@ -110227,7 +110227,7 @@ index 0000000..126f1e9
|
||||
From 5c220e69598ccc5a4331a4807685b2bee0e7531e Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 22 Nov 2013 19:04:54 +0100
|
||||
Subject: [PATCH 34/71] BCM2708: Add I2S support to board file
|
||||
Subject: [PATCH 34/73] BCM2708: Add I2S support to board file
|
||||
|
||||
Adds the required initializations for I2S
|
||||
to the board file of mach-bcm2708.
|
||||
@ -110288,7 +110288,7 @@ index a6eb08e..27e47d5 100644
|
||||
From 8c4010ef6f120f6f20c3d575600a5b595bbb0994 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 22 Nov 2013 19:19:08 +0100
|
||||
Subject: [PATCH 35/71] ASoC: Add support for HifiBerry DAC
|
||||
Subject: [PATCH 35/73] ASoC: Add support for HifiBerry DAC
|
||||
|
||||
This adds a machine driver for the HifiBerry DAC.
|
||||
It is a sound card that can
|
||||
@ -110443,7 +110443,7 @@ index 0000000..4b70b45
|
||||
From 64aa80c778a2bc0b03e1039f95960243f4201fd7 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 22 Nov 2013 19:21:34 +0100
|
||||
Subject: [PATCH 36/71] BCM2708: Add HifiBerry DAC to board file
|
||||
Subject: [PATCH 36/73] BCM2708: Add HifiBerry DAC to board file
|
||||
|
||||
This adds the initalization of the HifiBerry DAC
|
||||
to the mach-bcm2708 board file.
|
||||
@ -110497,7 +110497,7 @@ index 27e47d5..fafd8d0 100644
|
||||
From 15a789cf4a98f88eb75d553b6caea4f7d1c8de9c Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 6 Dec 2013 18:55:53 +0100
|
||||
Subject: [PATCH 37/71] ASoC: BCM2708: Add 24 bit support
|
||||
Subject: [PATCH 37/73] ASoC: BCM2708: Add 24 bit support
|
||||
|
||||
This adds 24 bit support to the I2S driver of the BCM2708.
|
||||
Besides enabling the 24 bit flags, it includes two bug fixes:
|
||||
@ -110575,7 +110575,7 @@ index ebaf3d6..a179216 100644
|
||||
From e0716a7fa7874757ff01fac80f62e8c99a56f33c Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Mon, 2 Dec 2013 20:28:22 +0100
|
||||
Subject: [PATCH 38/71] BCM2708: Add I2S and DMA support to default config
|
||||
Subject: [PATCH 38/73] BCM2708: Add I2S and DMA support to default config
|
||||
|
||||
This commit adds several modules that are needed for
|
||||
I2S support for the Raspberry Pi to the defconfig.
|
||||
@ -110621,7 +110621,7 @@ index 0c58172..38ccd22 100644
|
||||
From 0b2d13950ced9de365af93a96912f8e55271ecf0 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Fri, 6 Dec 2013 20:50:28 +0100
|
||||
Subject: [PATCH 39/71] ASoC: BCM2708: Add support for RPi-DAC
|
||||
Subject: [PATCH 39/73] ASoC: BCM2708: Add support for RPi-DAC
|
||||
|
||||
This adds a machine driver for the RPi-DAC.
|
||||
|
||||
@ -110938,7 +110938,7 @@ index 0000000..b4eaa44
|
||||
From 66f98a8406804e24ff9fa194ee21a9b961a53b98 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Matuschek <info@crazy-audio.com>
|
||||
Date: Wed, 15 Jan 2014 21:41:23 +0100
|
||||
Subject: [PATCH 40/71] ASoC: wm8804: Implement MCLK configuration options, add
|
||||
Subject: [PATCH 40/73] ASoC: wm8804: Implement MCLK configuration options, add
|
||||
32bit support WM8804 can run with PLL frequencies of 256xfs and 128xfs for
|
||||
most sample rates. At 192kHz only 128xfs is supported. The existing driver
|
||||
selects 128xfs automatically for some lower samples rates. By using an
|
||||
@ -110984,7 +110984,7 @@ index d96e5963..9a7a289 100644
|
||||
From 9903287696cc4f5c070587dd46b2554a3ea771f6 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Matuschek <info@crazy-audio.com>
|
||||
Date: Wed, 15 Jan 2014 21:42:08 +0100
|
||||
Subject: [PATCH 41/71] ASoC: BCM:Add support for HiFiBerry Digi. Driver is
|
||||
Subject: [PATCH 41/73] ASoC: BCM:Add support for HiFiBerry Digi. Driver is
|
||||
based on the patched WM8804 driver.
|
||||
|
||||
Signed-off-by: Daniel Matuschek <daniel@matuschek.net>
|
||||
@ -111193,7 +111193,7 @@ index 0000000..e4f769d
|
||||
From 9089eb1c8089f27f0d825594aca55203fe4c2b33 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Matuschek <info@crazy-audio.com>
|
||||
Date: Thu, 16 Jan 2014 07:26:08 +0100
|
||||
Subject: [PATCH 42/71] BCM2708: Added support for HiFiBerry Digi board Board
|
||||
Subject: [PATCH 42/73] BCM2708: Added support for HiFiBerry Digi board Board
|
||||
initalization by I2C
|
||||
|
||||
Signed-off-by: Daniel Matuschek <daniel@matuschek.net>
|
||||
@ -111246,7 +111246,7 @@ index 238f165..139045b 100644
|
||||
From 2ccbdf72d828bd288256a23e79fa2e660bea9599 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Matuschek <info@crazy-audio.com>
|
||||
Date: Thu, 16 Jan 2014 07:27:28 +0100
|
||||
Subject: [PATCH 43/71] BCM2708: Added HiFiBerry Digi configuration option It
|
||||
Subject: [PATCH 43/73] BCM2708: Added HiFiBerry Digi configuration option It
|
||||
will be compiled as a module by default. This also includes the WM8804
|
||||
driver.
|
||||
|
||||
@ -111277,7 +111277,7 @@ index 5e049f9..4f6bb90 100644
|
||||
From 8ca488553ca04a621fbee224210872ca64afc55f Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Matuschek <info@crazy-audio.com>
|
||||
Date: Thu, 16 Jan 2014 07:36:35 +0100
|
||||
Subject: [PATCH 44/71] ASoC: wm8804: Set idle_bias_off to false Idle bias has
|
||||
Subject: [PATCH 44/73] ASoC: wm8804: Set idle_bias_off to false Idle bias has
|
||||
been change to remove warning on driver startup
|
||||
|
||||
Signed-off-by: Daniel Matuschek <daniel@matuschek.net>
|
||||
@ -111305,7 +111305,7 @@ index 9a7a289..32e199a 100644
|
||||
From 658a1d669499b55d8e733ccb470a003e78149e99 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 12 Mar 2014 11:46:34 +0000
|
||||
Subject: [PATCH 45/71] ASoc: Don't report S24_LE support, it produces white
|
||||
Subject: [PATCH 45/73] ASoc: Don't report S24_LE support, it produces white
|
||||
noise with xbmc
|
||||
|
||||
---
|
||||
@ -111346,7 +111346,7 @@ index 126f1e9..7812d34 100644
|
||||
From 5917c8011a856aa57802508ec7df1ec093ae7553 Mon Sep 17 00:00:00 2001
|
||||
From: Gordon Garrity <gordon@iqaudio.com>
|
||||
Date: Sat, 8 Mar 2014 16:56:57 +0000
|
||||
Subject: [PATCH 46/71] Add IQaudIO Sound Card support for Raspberry Pi
|
||||
Subject: [PATCH 46/73] Add IQaudIO Sound Card support for Raspberry Pi
|
||||
|
||||
---
|
||||
arch/arm/configs/bcmrpi_defconfig | 1 +
|
||||
@ -111562,7 +111562,7 @@ index 0000000..8d0e2ae
|
||||
From 603b762a6a41f0549462638f4f10d6c82f11d3f1 Mon Sep 17 00:00:00 2001
|
||||
From: Howard Mitchell <hm@hmbedded.co.uk>
|
||||
Date: Wed, 30 Jul 2014 21:43:37 +0100
|
||||
Subject: [PATCH 47/71] soc-core: Fix volsw_range funcs so
|
||||
Subject: [PATCH 47/73] soc-core: Fix volsw_range funcs so
|
||||
SOC_DOUBLE_R_RANGE_TLV works.
|
||||
|
||||
This is so that the correct range of values as specified
|
||||
@ -111642,7 +111642,7 @@ index b87d7d8..1f3d03e 100644
|
||||
From 0b5178b68d7c9f41e0b7fa8eb5e2459d1ef80ebd Mon Sep 17 00:00:00 2001
|
||||
From: Howard Mitchell <hm@hmbedded.co.uk>
|
||||
Date: Fri, 28 Mar 2014 16:40:31 +0000
|
||||
Subject: [PATCH 48/71] pcm512x: Use a range macro for Volume and rename to
|
||||
Subject: [PATCH 48/73] pcm512x: Use a range macro for Volume and rename to
|
||||
PCM.
|
||||
|
||||
This allows limiting the output gain to avoid clipping in the
|
||||
@ -111673,7 +111673,7 @@ index 163ec38..1466955 100644
|
||||
From b37fad9a65a4e62657fdecb1d5b62b9dd510be90 Mon Sep 17 00:00:00 2001
|
||||
From: Gordon Hollingworth <gordon@holliweb.co.uk>
|
||||
Date: Fri, 2 May 2014 16:13:59 +0100
|
||||
Subject: [PATCH 49/71] Move GPIO setup to hw_params.
|
||||
Subject: [PATCH 49/73] Move GPIO setup to hw_params.
|
||||
|
||||
This is used to stop the I2S driver from breaking
|
||||
the GPIO setup for other uses of the PCM interface
|
||||
@ -111775,7 +111775,7 @@ index b25e158..9976571 100644
|
||||
From e5fb8a6be0d14cadcfb602bf22ea8719088c0053 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Wed, 18 Jun 2014 13:42:01 +0100
|
||||
Subject: [PATCH 50/71] vmstat: Workaround for issue where dirty page count
|
||||
Subject: [PATCH 50/73] vmstat: Workaround for issue where dirty page count
|
||||
goes negative
|
||||
|
||||
See:
|
||||
@ -111808,7 +111808,7 @@ index 82e7db7..f87d16d 100644
|
||||
From ab1b06e206515b2a67e2392aed9a3f87c447fd1a Mon Sep 17 00:00:00 2001
|
||||
From: P33M <P33M@github.com>
|
||||
Date: Fri, 20 Jun 2014 16:03:12 +0100
|
||||
Subject: [PATCH 51/71] dwc_otg: Fix various issues with root port and
|
||||
Subject: [PATCH 51/73] dwc_otg: Fix various issues with root port and
|
||||
transaction errors
|
||||
|
||||
Process the host port interrupts correctly (and don't trample them).
|
||||
@ -111884,7 +111884,7 @@ index d3e2035..6182d3e 100644
|
||||
From 8a3691d7d3bcefd262cdc2c176cf03c8bbcbf58e Mon Sep 17 00:00:00 2001
|
||||
From: P33M <P33M@github.com>
|
||||
Date: Fri, 20 Jun 2014 17:23:20 +0100
|
||||
Subject: [PATCH 52/71] fiq_fsm: Implement hack for Split Interrupt
|
||||
Subject: [PATCH 52/73] fiq_fsm: Implement hack for Split Interrupt
|
||||
transactions
|
||||
|
||||
Hubs aren't too picky about which endpoint we send Control type split
|
||||
@ -111976,7 +111976,7 @@ index daea770..35721e5 100644
|
||||
From a308c1b04aa2590538f3929459464751af4b1afe Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Sun, 6 Jul 2014 12:07:25 +0200
|
||||
Subject: [PATCH 53/71] spi-bcm2708: Prepare for Common Clock Framework
|
||||
Subject: [PATCH 53/73] spi-bcm2708: Prepare for Common Clock Framework
|
||||
migration
|
||||
|
||||
As part of migrating to use the Common Clock Framework, replace clk_enable()
|
||||
@ -112027,7 +112027,7 @@ index b04a57d..349d21f 100644
|
||||
From f55cc5f0ad7922b97e46bc594bdf420db2982b04 Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Sun, 6 Jul 2014 12:09:30 +0200
|
||||
Subject: [PATCH 54/71] BCM2708: Migrate to the Common Clock Framework
|
||||
Subject: [PATCH 54/73] BCM2708: Migrate to the Common Clock Framework
|
||||
|
||||
As part of moving towards using Device Tree, the Common Clock Framework
|
||||
has to be used instead of the BCM2708 clock implementation.
|
||||
@ -112303,7 +112303,7 @@ index 5f9d725..0000000
|
||||
From 79bacbe9b2bc3aa5742e5e636d8750c57bd4abf7 Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Wed, 9 Jul 2014 14:46:08 +0200
|
||||
Subject: [PATCH 55/71] BCM2708: Add core Device Tree support
|
||||
Subject: [PATCH 55/73] BCM2708: Add core Device Tree support
|
||||
|
||||
Add the bare minimum needed to boot BCM2708 from a Device Tree.
|
||||
|
||||
@ -112466,7 +112466,7 @@ index 674e5aa..83277d1f 100644
|
||||
From 504175cf2dab09ee2d3a38abda8cd14e946d9a8d Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Wed, 9 Jul 2014 14:47:48 +0200
|
||||
Subject: [PATCH 56/71] BCM2708: armctrl: Add IRQ Device Tree support
|
||||
Subject: [PATCH 56/73] BCM2708: armctrl: Add IRQ Device Tree support
|
||||
|
||||
Add Device Tree IRQ support for BCM2708.
|
||||
Usage is the same as for irq-bcm2835.
|
||||
@ -112636,7 +112636,7 @@ index d4c5333..42f5e1c 100644
|
||||
From 4440f7a92619e12940a7e27f080d11064dc5cc93 Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Thu, 10 Jul 2014 13:59:47 +0200
|
||||
Subject: [PATCH 57/71] pinctrl: add bcm2708 driver
|
||||
Subject: [PATCH 57/73] pinctrl: add bcm2708 driver
|
||||
|
||||
This driver is a verbatim copy of the pinctrl-bcm2835 driver, except for:
|
||||
* changed 2835 to 2708
|
||||
@ -113505,7 +113505,7 @@ index 0000000..40d9c86
|
||||
From bef9a66a1a4e952c7d07bf03aa143ed629510152 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Mon, 14 Jul 2014 22:02:09 +0100
|
||||
Subject: [PATCH 58/71] hid: Reduce default mouse polling interval to 60Hz
|
||||
Subject: [PATCH 58/73] hid: Reduce default mouse polling interval to 60Hz
|
||||
|
||||
Reduces overhead when using X
|
||||
---
|
||||
@ -113547,7 +113547,7 @@ index 7b88f4c..016a485 100644
|
||||
From 4a71b12cde3193dbe01492f2f9edff796f2af095 Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Fri, 18 Jul 2014 18:15:57 +0200
|
||||
Subject: [PATCH 59/71] BCM2708: DT: change 'axi' nodename to 'soc'
|
||||
Subject: [PATCH 59/73] BCM2708: DT: change 'axi' nodename to 'soc'
|
||||
|
||||
Change DT node named 'axi' to 'soc' so it matches ARCH_BCM2835.
|
||||
The VC4 bootloader fills in certain properties in the 'axi' subtree,
|
||||
@ -113578,7 +113578,7 @@ index 3f884b3..e02e67b 100644
|
||||
From e6c0c0c84ded234045eadb9405266010392b4124 Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Sun, 27 Jul 2014 20:12:58 +0200
|
||||
Subject: [PATCH 60/71] spi: bcm2708: add device tree support
|
||||
Subject: [PATCH 60/73] spi: bcm2708: add device tree support
|
||||
|
||||
Add DT support to driver and add to .dtsi file.
|
||||
Setup pins and spidev in .dts file.
|
||||
@ -113703,7 +113703,7 @@ index 349d21f..041b5e2 100644
|
||||
From bac8143ba837822fe0038a809e23a5c517533c57 Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Sun, 27 Jul 2014 20:13:44 +0200
|
||||
Subject: [PATCH 61/71] BCM2708: don't register SPI controller when using DT
|
||||
Subject: [PATCH 61/73] BCM2708: don't register SPI controller when using DT
|
||||
|
||||
The device for the SPI controller is in the Device Tree.
|
||||
Only register the device when not using DT.
|
||||
@ -113780,7 +113780,7 @@ index 83277d1f..a4286e9 100644
|
||||
From 9ed17623b1346dddcf60f50a5c11eccd77a1d907 Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Sun, 27 Jul 2014 20:14:05 +0200
|
||||
Subject: [PATCH 62/71] spi: bcm2835: make driver available on ARCH_BCM2708
|
||||
Subject: [PATCH 62/73] spi: bcm2835: make driver available on ARCH_BCM2708
|
||||
|
||||
Make this driver available on ARCH_BCM2708
|
||||
|
||||
@ -113809,7 +113809,7 @@ index cb20594..54aac0f 100644
|
||||
From 4436b5c4aaa78ab523807228efb9e69dcd13837b Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Tue, 29 Jul 2014 11:04:49 +0200
|
||||
Subject: [PATCH 63/71] i2c: bcm2708: add device tree support
|
||||
Subject: [PATCH 63/73] i2c: bcm2708: add device tree support
|
||||
|
||||
Add DT support to driver and add to .dtsi file.
|
||||
Setup pins in .dts file.
|
||||
@ -113980,7 +113980,7 @@ index 8750634..728cb69 100644
|
||||
From f32f8d0cc79649f78d6b0d60482af0c0cc7fe53e Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Tue, 29 Jul 2014 11:05:18 +0200
|
||||
Subject: [PATCH 64/71] bcm2708: don't register i2c controllers when using DT
|
||||
Subject: [PATCH 64/73] bcm2708: don't register i2c controllers when using DT
|
||||
|
||||
The devices for the i2c controllers are in the Device Tree.
|
||||
Only register devices when not using DT.
|
||||
@ -114028,7 +114028,7 @@ index a4286e9..a19f54d 100644
|
||||
From 79e54a26c2c8c34bdae2fe2e38670479643e008e Mon Sep 17 00:00:00 2001
|
||||
From: notro <notro@tronnes.org>
|
||||
Date: Tue, 29 Jul 2014 11:05:39 +0200
|
||||
Subject: [PATCH 65/71] i2c: bcm2835: make driver available on ARCH_BCM2708
|
||||
Subject: [PATCH 65/73] i2c: bcm2835: make driver available on ARCH_BCM2708
|
||||
|
||||
Make this driver available on ARCH_BCM2708
|
||||
|
||||
@ -114057,7 +114057,7 @@ index 6426811..73c9cfd 100644
|
||||
From b4b7637c58d49afd88e39a7a02b99d3b87fb0feb Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Matuschek <info@crazy-audio.com>
|
||||
Date: Fri, 25 Jul 2014 07:08:09 +0200
|
||||
Subject: [PATCH 66/71] Configure GPIOs for I2S based on revision/card settings
|
||||
Subject: [PATCH 66/73] Configure GPIOs for I2S based on revision/card settings
|
||||
|
||||
With RPi model B+, assignment of the I2S GPIO pins has changed.
|
||||
This patch uses the board revision to auto-detect the GPIOs used
|
||||
@ -114218,7 +114218,7 @@ index 0000000..94fed6a
|
||||
From ccc6d36d045acb40043635bd123924ec0a470920 Mon Sep 17 00:00:00 2001
|
||||
From: P33M <P33M@github.com>
|
||||
Date: Thu, 24 Jul 2014 21:24:03 +0100
|
||||
Subject: [PATCH 67/71] usb: core: make overcurrent messages more prominent
|
||||
Subject: [PATCH 67/73] usb: core: make overcurrent messages more prominent
|
||||
|
||||
Hub overcurrent messages are more serious than "debug". Increase loglevel.
|
||||
---
|
||||
@ -114245,7 +114245,7 @@ index 0e950ad..6b004cf 100644
|
||||
From ff963183dca11df32ba8ef1c1bfbb732f07a50a8 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Gover <tgover@broadcom.com>
|
||||
Date: Tue, 22 Jul 2014 15:41:04 +0100
|
||||
Subject: [PATCH 68/71] vcsm: VideoCore shared memory service for BCM2835
|
||||
Subject: [PATCH 68/73] vcsm: VideoCore shared memory service for BCM2835
|
||||
|
||||
Add experimental support for the VideoCore shared memory service.
|
||||
This allows user processes to allocate memory from VideoCore's
|
||||
@ -118584,7 +118584,7 @@ index 0000000..da1c523
|
||||
From 0765c9fb777f1b40097b74bbaf1944920ceae0d0 Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Thu, 7 Aug 2014 02:03:50 +0100
|
||||
Subject: [PATCH 69/71] Revert "ARM: dma: Use dma_pfn_offset for dma address
|
||||
Subject: [PATCH 69/73] Revert "ARM: dma: Use dma_pfn_offset for dma address
|
||||
translation"
|
||||
|
||||
This reverts commit 6ce0d20016925d031f1e24d64302e4c976d7cec6.
|
||||
@ -118642,7 +118642,7 @@ index c45b61a..0af6bd0 100644
|
||||
From e9e133a3ad8d0946a687a3fc0c10aa7648952486 Mon Sep 17 00:00:00 2001
|
||||
From: Phil Elwell <pelwell@broadcom.com>
|
||||
Date: Fri, 8 Aug 2014 16:22:59 +0100
|
||||
Subject: [PATCH 70/71] VCHIQ: Make service closure fully synchronous (drv)
|
||||
Subject: [PATCH 70/73] VCHIQ: Make service closure fully synchronous (drv)
|
||||
|
||||
This is one half of a two-part patch, the other half of which is to
|
||||
the vchiq_lib user library. With these patches, calls to
|
||||
@ -118997,7 +118997,7 @@ index e248037..6137ae9 100644
|
||||
From 33f49e8bf532404304798189d98393f6b2b055df Mon Sep 17 00:00:00 2001
|
||||
From: gellert <gellert@raspberrypi.org>
|
||||
Date: Fri, 15 Aug 2014 15:24:58 +0100
|
||||
Subject: [PATCH 71/71] Add new bcm2835_mmc (sdcard) driver and dma driver
|
||||
Subject: [PATCH 71/73] Add new bcm2835_mmc (sdcard) driver and dma driver
|
||||
|
||||
Enable with bcm2708.bcm2835_mmc=1
|
||||
---
|
||||
@ -121994,3 +121994,265 @@ index 6e777f4..b5f9f162 100644
|
||||
--
|
||||
2.0.3
|
||||
|
||||
|
||||
From fdf1865f73395539c4abdc6929ad34a3ba54d510 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Matuschek <info@crazy-audio.com>
|
||||
Date: Mon, 4 Aug 2014 10:06:56 +0200
|
||||
Subject: [PATCH 72/73] Added support for HiFiBerry DAC+
|
||||
|
||||
The driver is based on the HiFiBerry DAC driver. However HiFiBerry DAC+ uses
|
||||
a different codec chip (PCM5122), therefore a new driver is necessary.
|
||||
---
|
||||
arch/arm/configs/bcmrpi_defconfig | 1 +
|
||||
arch/arm/mach-bcm2708/bcm2708.c | 19 ++++++
|
||||
sound/soc/bcm/Kconfig | 7 +++
|
||||
sound/soc/bcm/Makefile | 2 +
|
||||
sound/soc/bcm/hifiberry_dacplus.c | 119 ++++++++++++++++++++++++++++++++++++++
|
||||
5 files changed, 148 insertions(+)
|
||||
create mode 100644 sound/soc/bcm/hifiberry_dacplus.c
|
||||
|
||||
diff --git a/arch/arm/configs/bcmrpi_defconfig b/arch/arm/configs/bcmrpi_defconfig
|
||||
index d0f0781..0bdf36f 100644
|
||||
--- a/arch/arm/configs/bcmrpi_defconfig
|
||||
+++ b/arch/arm/configs/bcmrpi_defconfig
|
||||
@@ -747,6 +747,7 @@ CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y
|
||||
CONFIG_SND_SOC_WM8804=m
|
||||
CONFIG_SND_BCM2708_SOC_I2S=m
|
||||
CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC=m
|
||||
+CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS=m
|
||||
CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI=m
|
||||
CONFIG_SND_BCM2708_SOC_RPI_DAC=m
|
||||
CONFIG_SND_SOC_I2C_AND_SPI=m
|
||||
diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c
|
||||
index a730d5d..a90c7f0 100644
|
||||
--- a/arch/arm/mach-bcm2708/bcm2708.c
|
||||
+++ b/arch/arm/mach-bcm2708/bcm2708.c
|
||||
@@ -674,6 +674,20 @@ static struct platform_device snd_pcm5102a_codec_device = {
|
||||
};
|
||||
#endif
|
||||
|
||||
+#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS_MODULE)
|
||||
+static struct platform_device snd_rpi_hifiberry_dacplus_device = {
|
||||
+ .name = "snd-rpi-hifiberry-dacplus",
|
||||
+ .id = 0,
|
||||
+ .num_resources = 0,
|
||||
+};
|
||||
+
|
||||
+static struct i2c_board_info __initdata snd_pcm512x_hbdacplus_i2c_devices[] = {
|
||||
+ {
|
||||
+ I2C_BOARD_INFO("pcm5122", 0x4d)
|
||||
+ },
|
||||
+};
|
||||
+#endif
|
||||
+
|
||||
#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI_MODULE)
|
||||
static struct platform_device snd_hifiberry_digi_device = {
|
||||
.name = "snd-hifiberry-digi",
|
||||
@@ -877,6 +891,11 @@ void __init bcm2708_init(void)
|
||||
bcm_register_device(&snd_pcm5102a_codec_device);
|
||||
#endif
|
||||
|
||||
+#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS_MODULE)
|
||||
+ bcm_register_device(&snd_rpi_hifiberry_dacplus_device);
|
||||
+ i2c_register_board_info(1, snd_pcm512x_hbdacplus_i2c_devices, ARRAY_SIZE(snd_pcm512x_hbdacplus_i2c_devices));
|
||||
+#endif
|
||||
+
|
||||
#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI_MODULE)
|
||||
bcm_register_device(&snd_hifiberry_digi_device);
|
||||
i2c_register_board_info(1, snd_wm8804_i2c_devices, ARRAY_SIZE(snd_wm8804_i2c_devices));
|
||||
diff --git a/sound/soc/bcm/Kconfig b/sound/soc/bcm/Kconfig
|
||||
index c621a5e..926a82b 100644
|
||||
--- a/sound/soc/bcm/Kconfig
|
||||
+++ b/sound/soc/bcm/Kconfig
|
||||
@@ -26,6 +26,13 @@ config SND_BCM2708_SOC_HIFIBERRY_DAC
|
||||
help
|
||||
Say Y or M if you want to add support for HifiBerry DAC.
|
||||
|
||||
+config SND_BCM2708_SOC_HIFIBERRY_DACPLUS
|
||||
+ tristate "Support for HifiBerry DAC+"
|
||||
+ depends on SND_BCM2708_SOC_I2S
|
||||
+ select SND_SOC_PCM512x
|
||||
+ help
|
||||
+ Say Y or M if you want to add support for HifiBerry DAC+.
|
||||
+
|
||||
config SND_BCM2708_SOC_HIFIBERRY_DIGI
|
||||
tristate "Support for HifiBerry Digi"
|
||||
depends on SND_BCM2708_SOC_I2S
|
||||
diff --git a/sound/soc/bcm/Makefile b/sound/soc/bcm/Makefile
|
||||
index d597fb0..c02e3a2 100644
|
||||
--- a/sound/soc/bcm/Makefile
|
||||
+++ b/sound/soc/bcm/Makefile
|
||||
@@ -10,11 +10,13 @@ obj-$(CONFIG_SND_BCM2708_SOC_I2S) += snd-soc-bcm2708-i2s.o
|
||||
|
||||
# BCM2708 Machine Support
|
||||
snd-soc-hifiberry-dac-objs := hifiberry_dac.o
|
||||
+snd-soc-hifiberry-dacplus-objs := hifiberry_dacplus.o
|
||||
snd-soc-hifiberry-digi-objs := hifiberry_digi.o
|
||||
snd-soc-rpi-dac-objs := rpi-dac.o
|
||||
snd-soc-iqaudio-dac-objs := iqaudio-dac.o
|
||||
|
||||
obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC) += snd-soc-hifiberry-dac.o
|
||||
+obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS) += snd-soc-hifiberry-dacplus.o
|
||||
obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI) += snd-soc-hifiberry-digi.o
|
||||
obj-$(CONFIG_SND_BCM2708_SOC_RPI_DAC) += snd-soc-rpi-dac.o
|
||||
obj-$(CONFIG_SND_BCM2708_SOC_IQAUDIO_DAC) += snd-soc-iqaudio-dac.o
|
||||
diff --git a/sound/soc/bcm/hifiberry_dacplus.c b/sound/soc/bcm/hifiberry_dacplus.c
|
||||
new file mode 100644
|
||||
index 0000000..c63387b
|
||||
--- /dev/null
|
||||
+++ b/sound/soc/bcm/hifiberry_dacplus.c
|
||||
@@ -0,0 +1,119 @@
|
||||
+/*
|
||||
+ * ASoC Driver for HiFiBerry DAC+
|
||||
+ *
|
||||
+ * Author: Daniel Matuschek
|
||||
+ * Copyright 2014
|
||||
+ * based on code by Florian Meier <florian.meier@koalo.de>
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or
|
||||
+ * modify it under the terms of the GNU General Public License
|
||||
+ * version 2 as published by the Free Software Foundation.
|
||||
+ *
|
||||
+ * This program is distributed in the hope that it will be useful, but
|
||||
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ * General Public License for more details.
|
||||
+ */
|
||||
+
|
||||
+#include <linux/module.h>
|
||||
+#include <linux/platform_device.h>
|
||||
+
|
||||
+#include <sound/core.h>
|
||||
+#include <sound/pcm.h>
|
||||
+#include <sound/pcm_params.h>
|
||||
+#include <sound/soc.h>
|
||||
+#include <sound/jack.h>
|
||||
+
|
||||
+#include "../codecs/pcm512x.h"
|
||||
+
|
||||
+static int snd_rpi_hifiberry_dacplus_init(struct snd_soc_pcm_runtime *rtd)
|
||||
+{
|
||||
+ struct snd_soc_codec *codec = rtd->codec;
|
||||
+ snd_soc_update_bits(codec, PCM512x_GPIO_EN, 0x08, 0x08);
|
||||
+ snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_4, 0xf, 0x02);
|
||||
+ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x08);
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static int snd_rpi_hifiberry_dacplus_hw_params(struct snd_pcm_substream *substream,
|
||||
+ struct snd_pcm_hw_params *params)
|
||||
+{
|
||||
+ struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
||||
+ struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
|
||||
+ return snd_soc_dai_set_bclk_ratio(cpu_dai, 64);
|
||||
+}
|
||||
+
|
||||
+static int snd_rpi_hifiberry_dacplus_startup(struct snd_pcm_substream *substream) {
|
||||
+ struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
||||
+ struct snd_soc_codec *codec = rtd->codec;
|
||||
+ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x08);
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static void snd_rpi_hifiberry_dacplus_shutdown(struct snd_pcm_substream *substream) {
|
||||
+ struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
||||
+ struct snd_soc_codec *codec = rtd->codec;
|
||||
+ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x00);
|
||||
+}
|
||||
+
|
||||
+/* machine stream operations */
|
||||
+static struct snd_soc_ops snd_rpi_hifiberry_dacplus_ops = {
|
||||
+ .hw_params = snd_rpi_hifiberry_dacplus_hw_params,
|
||||
+ .startup = snd_rpi_hifiberry_dacplus_startup,
|
||||
+ .shutdown = snd_rpi_hifiberry_dacplus_shutdown,
|
||||
+};
|
||||
+
|
||||
+static struct snd_soc_dai_link snd_rpi_hifiberry_dacplus_dai[] = {
|
||||
+{
|
||||
+ .name = "HiFiBerry DAC+",
|
||||
+ .stream_name = "HiFiBerry DAC+ HiFi",
|
||||
+ .cpu_dai_name = "bcm2708-i2s.0",
|
||||
+ .codec_dai_name = "pcm512x-hifi",
|
||||
+ .platform_name = "bcm2708-i2s.0",
|
||||
+ .codec_name = "pcm512x.1-004d",
|
||||
+ .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
|
||||
+ SND_SOC_DAIFMT_CBS_CFS,
|
||||
+ .ops = &snd_rpi_hifiberry_dacplus_ops,
|
||||
+ .init = snd_rpi_hifiberry_dacplus_init,
|
||||
+},
|
||||
+};
|
||||
+
|
||||
+/* audio machine driver */
|
||||
+static struct snd_soc_card snd_rpi_hifiberry_dacplus = {
|
||||
+ .name = "snd_rpi_hifiberry_dacplus",
|
||||
+ .dai_link = snd_rpi_hifiberry_dacplus_dai,
|
||||
+ .num_links = ARRAY_SIZE(snd_rpi_hifiberry_dacplus_dai),
|
||||
+};
|
||||
+
|
||||
+static int snd_rpi_hifiberry_dacplus_probe(struct platform_device *pdev)
|
||||
+{
|
||||
+ int ret = 0;
|
||||
+
|
||||
+ snd_rpi_hifiberry_dacplus.dev = &pdev->dev;
|
||||
+ ret = snd_soc_register_card(&snd_rpi_hifiberry_dacplus);
|
||||
+ if (ret)
|
||||
+ dev_err(&pdev->dev,
|
||||
+ "snd_soc_register_card() failed: %d\n", ret);
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
+static int snd_rpi_hifiberry_dacplus_remove(struct platform_device *pdev)
|
||||
+{
|
||||
+ return snd_soc_unregister_card(&snd_rpi_hifiberry_dacplus);
|
||||
+}
|
||||
+
|
||||
+static struct platform_driver snd_rpi_hifiberry_dacplus_driver = {
|
||||
+ .driver = {
|
||||
+ .name = "snd-rpi-hifiberry-dacplus",
|
||||
+ .owner = THIS_MODULE,
|
||||
+ },
|
||||
+ .probe = snd_rpi_hifiberry_dacplus_probe,
|
||||
+ .remove = snd_rpi_hifiberry_dacplus_remove,
|
||||
+};
|
||||
+
|
||||
+module_platform_driver(snd_rpi_hifiberry_dacplus_driver);
|
||||
+
|
||||
+MODULE_AUTHOR("Daniel Matuschek <daniel@hifiberry.com>");
|
||||
+MODULE_DESCRIPTION("ASoC Driver for HiFiBerry DAC+");
|
||||
+MODULE_LICENSE("GPL v2");
|
||||
--
|
||||
2.0.3
|
||||
|
||||
|
||||
From 82692a293288c334f3da11895e63ea7d066db4f6 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Meier <florian.meier@koalo.de>
|
||||
Date: Mon, 4 Aug 2014 16:47:36 +0200
|
||||
Subject: [PATCH 73/73] ASoC: BCM: Typo in RPi-DAC driver
|
||||
|
||||
This patch corrects a typo that originated from
|
||||
inattentive copy and paste.
|
||||
|
||||
Signed-off-by: Florian Meier <florian.meier@koalo.de>
|
||||
---
|
||||
sound/soc/bcm/rpi-dac.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/sound/soc/bcm/rpi-dac.c b/sound/soc/bcm/rpi-dac.c
|
||||
index ef3cd93..6d6e0ba 100644
|
||||
--- a/sound/soc/bcm/rpi-dac.c
|
||||
+++ b/sound/soc/bcm/rpi-dac.c
|
||||
@@ -44,8 +44,8 @@ static struct snd_soc_ops snd_rpi_rpi_dac_ops = {
|
||||
|
||||
static struct snd_soc_dai_link snd_rpi_rpi_dac_dai[] = {
|
||||
{
|
||||
- .name = "HifiBerry Mini",
|
||||
- .stream_name = "HifiBerry Mini HiFi",
|
||||
+ .name = "RPi-DAC",
|
||||
+ .stream_name = "RPi-DAC HiFi",
|
||||
.cpu_dai_name = "bcm2708-i2s.0",
|
||||
.codec_dai_name = "pcm1794a-hifi",
|
||||
.platform_name = "bcm2708-i2s.0",
|
||||
--
|
||||
2.0.3
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user