Commit Graph

416705 Commits

Author SHA1 Message Date
Mauro Ribeiro
1dc0fc76e1 Merge pull request #56 from hsnaves/odroid-3.13.y
Odroid 3.13.y
2014-07-15 10:07:16 -03:00
Humberto Silva Naves
3c519d4973 exynos5410: added the sound driver to the default configuration. 2014-07-14 07:05:35 +02:00
Humberto Silva Naves
866e9c118b clk: added extra features to DebugFS representation of the clock tree. 2014-07-14 07:04:03 +02:00
Humberto Silva Naves
f948165438 ASoC: HDMI audio is now working. 2014-07-14 06:50:58 +02:00
Humberto Silva Naves
77dbfdf956 clk: exynos5410: Removed SCLK_PWM 2014-07-14 02:27:55 +02:00
Humberto Silva Naves
d6ce42a4e9 clk: exynos5410: Major cleaning up of the file 2014-07-14 01:42:44 +02:00
Humberto Silva Naves
0d9df4b889 ASoC: We don't need these three clocks anymore. 2014-07-13 20:52:41 +02:00
Humberto Silva Naves
c2ef16746a clk: exynos5410: added the problematic GATE clocks back, but now with CLK_IGNORE_UNUSED. 2014-07-13 18:12:04 +02:00
Humberto Silva Naves
631d5d84b8 ASoC: exynos: audio seems to be working perfectly for the frequency 48000Hz.
But the max98090 codec complains for other frequencies.
2014-07-13 17:42:17 +02:00
Humberto Silva Naves
42241fb23e clk: exynos5410: EPLL still had a problem, which is now fixed. 2014-07-13 17:37:06 +02:00
Humberto Silva Naves
009c670ce7 clk: exynos5410: added the last (empty) entry to each PLL clock table. 2014-07-13 16:40:31 +02:00
Humberto Silva Naves
aaeed74a8c clk: exynos5410: with more clocks 2014-07-13 07:33:46 +02:00
Humberto Silva Naves
49f7787f0c clk: exynos5410: the system freezes after we add the new gate clocks. 2014-07-13 06:43:10 +02:00
Humberto Silva Naves
42fd6c5d5a clk: exynos5410: Renamed some more clocks. 2014-07-13 06:00:43 +02:00
Humberto Silva Naves
d9524dcb05 clk: exynos5410: Renamed more clocks from sclk_* to mout_* 2014-07-13 05:39:30 +02:00
Humberto Silva Naves
86a98ba7ff clk: exynos5410: added PLL register to PM suspend/resume. 2014-07-13 05:27:07 +02:00
Humberto Silva Naves
7b4f014544 clk: exynos5410: reorganizing the registers 2014-07-13 05:23:41 +02:00
Humberto Silva Naves
da37cef0e2 clk: exynos5410: removed unused aliases in the clock definitions. 2014-07-13 05:17:49 +02:00
Humberto Silva Naves
1ee20c96f1 exynos5410: Changed the way to initialize clocks (using __clk_lookup instead). 2014-07-13 05:11:36 +02:00
Humberto Silva Naves
c127918db2 ASoC: exynos: Issues with the EPLL clock in daisy_max98095. 2014-07-13 04:59:26 +02:00
Humberto Silva Naves
6a27266d18 exynos5410: added hdmi audio plugin to the DTS file, and renamed some clocks. 2014-07-13 04:58:12 +02:00
Humberto Silva Naves
d032f3c686 clk: samsung: added wait_locktime for PLL clocks. 2014-07-13 03:56:15 +02:00
Humberto Silva Naves
3c28215ce8 clk: samsung: adapted the code for the newly introduced PM callbacks.
There is only clk-exynos5410 left to change.
2014-07-13 03:51:01 +02:00
Humberto Silva Naves
9c31693b18 clk: samsung: added callbacks for PM suspend and resume. 2014-07-13 03:48:47 +02:00
Humberto Silva Naves
e4a62f816e ASoC: hdmi audio plugin is capable of using up to 8 channels. 2014-07-13 03:44:46 +02:00
Humberto Silva Naves
8baf5926b7 drm: remove the default DVI=true, and set hdmi audio plugin
to start when exynos5410 is configured
2014-07-13 03:40:54 +02:00
Rahul Sharma
f524dad419 CHROMIUM: drm/exynos: add support for hdmi audio through alsa soc
This patch adds provision for register hdmi-audio as a alsa component
and controlled bu ALSA core.

Change-Id: Ic69a718c281f2dfdf00df273f8687cc7e0cd5428
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
(cherry picked from commit a8a603438f915ca808cd4efe40a6623dffa87e37)

Conflicts:
	drivers/gpu/drm/exynos/exynos_hdmi.c
2014-07-07 19:01:36 +02:00
Mauro Ribeiro
77a7854530 Merge pull request #54 from hsnaves/odroid-3.13.y
Odroid 3.13.y
2014-07-06 20:10:04 -03:00
Humberto Silva Naves
6c08d00fe9 exynos5410: added the daisy-max98095 sound card to default configuration. 2014-07-06 23:05:26 +02:00
Humberto Silva Naves
1a8bffc27c exynos5410: fixed the "asynchronous external abort" failure due
to inexistent DMA.
2014-07-05 23:05:50 +02:00
Andrew Bresticker
8427df2038 clk: exynos-audss: add support for Exynos 5420
The AudioSS block on Exynos 5420 has an additional clock gate for the
ADMA bus clock.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
(cherry picked from commit 3538a2cf0e)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-05 22:54:10 +02:00
Andrew Bresticker
f514b3d3a3 clk: exynos-audss: allow input clocks to be specified in device tree
This allows the input clocks to the Exynos AudioSS block to be
specified via device-tree bindings.  Default names will be used
when an input clock is not given.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
(cherry picked from commit 547f33509c)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-05 22:53:47 +02:00
Andrew Bresticker
d647dd4742 clk: exynos-audss: convert to platform device
The Exynos AudioSS clock controller will later be modified to allow
input clocks to be specified via device-tree in order to support
multiple Exynos SoCs.  This will introduce a dependency on the core
SoC clock controller being initialized first so that the AudioSS driver
can look up its input clocks, but the order in which clock providers
are probed in of_clk_init() is not guaranteed.  Since deferred probing
is not supported in of_clk_init() and the AudioSS block is not the core
controller, we can initialize it later as a platform device.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
(cherry picked from commit b37a422410)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-05 22:53:29 +02:00
Humberto Silva Naves
bd4cbbc997 power: asv: fixed bug with the chipid clock.
(cherry picked from commit 95763380e76f2428626edc648f8fdd88b4c3188a)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-05 14:42:31 +02:00
Humberto Silva Naves
ccf7aa6ee3 usb: dwc3: exynos5410: problem with the configuration.
(cherry picked from commit 012040b56426a16a23dd37fbf6c4339e3896d039)

Conflicts:
	arch/arm/boot/dts/exynos5410.dtsi
2014-07-05 14:42:07 +02:00
Humberto Silva Naves
2bfc603cdc power: asv: exynos5410: added "chipid" clock to the ASV.
(cherry picked from commit 04de36349d4cc8e676bcb45ba9bd6374e041fdb5)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-05 14:39:11 +02:00
Humberto Silva Naves
9f9970822f usb-dwc3: exynos5410: order of the usb-phy was wrong.
(cherry picked from commit ff388bcec02288e33234e50ac253fc487e56af80)

Conflicts:
	arch/arm/boot/dts/exynos5410.dtsi
2014-07-05 14:38:47 +02:00
Humberto Silva Naves
5f11b28611 clk: uart3: fixed the issue with the orphan div_uart3 clock
(cherry picked from commit e57f95e30beaf8f61dbb47306152e48bb1605583)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-05 12:55:28 +02:00
Humberto Silva Naves
9fed435a01 [PATCH] ARM: EXYNOS: Update secondary boot addr for secure mode
(adapted from Sachin Kamat's patch)

Almost all Exynos-series of SoCs that run in secure mode don't need
additional offset for every CPU, with Exynos4412 being the only
exception.
(cherry picked from commit 10ba1ec8b021fda08d0342e19d86c1f319b0366d)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-05 12:54:44 +02:00
Humberto Silva Naves
2b65e59734 clk: exynos5410: changed the fixed clock fin_pll.
(cherry picked from commit 63b4cdc4c2f63ea72a5f4511c49abe0b9e25597d)

Conflicts:
	arch/arm/boot/dts/exynos5410.dtsi
2014-07-05 12:53:42 +02:00
Humberto Silva Naves
aeedf43d3e clk: exynos5410: added the I2S1 and I2S2 clocks.
ODROID-XU: added the soundcard to the odroidxu DTS file.
(cherry picked from commit 986a107a2757e86b475d0a20d7c72cca3a627a5e)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-03 20:21:12 +02:00
Humberto Silva Naves
c4568b6032 clk: exynos5410: Adding clocks for the DMA
(cherry picked from commit c8125701eeada7773ad83cdbcc3aec635df31f25)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-03 20:20:05 +02:00
Humberto Silva Naves
0b3d28fd16 clk: exynos5410: adding the clocks for the sound subsystem.
(cherry picked from commit b62bf68a1b69b8465256e50dc1c2d1dc45ed6392)

Conflicts:
	drivers/clk/samsung/clk-exynos5410.c
2014-07-03 20:19:42 +02:00
Dylan Reid
80016c50a4 CHROMIUM: ALSA: ASoC: soc-jack - export gpio detect.
Export the snd_soc_jack_gpio_detect function.  Allow it to be called to
poll a gpio jack during resume, checking for state changes that may have
been missed while sleeping.

BUG=chrome-os-partner:14417
TEST=Plug headphones, play audio, suspend, unplug, resume, check audio
comes from speakers.

Change-Id: I3c2abf1c69abca6178bde1391b323efa0a6c507d
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34047
Reviewed-by: Olof Johansson <olofj@chromium.org>

Conflicts:
	include/sound/soc.h
2014-07-03 20:01:08 +02:00
Dominik Behr
b7eeaf9f23 CHROMIUM: alsa/soc: do not set AUI transmit when setting up infoframe
hdmi_reg_infoframe called from hdmi_conf_init unconditionally enables
sending AUI infoframe on every vsync. This register is also controlled
from hdmi_audio_control which is supposed to control HDMI audio.
Setting it from hdmi_reg_infoframe overrides hdmi_audio_control causing
HDMI audio to be always enabled, even on DVI monitors, which causes some
of them to blank when audio is playing in Chrome OS. This change removes
the unconditional setting of HDMI AUI transmit from hdmi_reg_infoframe
so hdmi_audio_control is really in control.
As a bonus, it also adds use of defines instead of literals for HDMI AUI
enable/disable in hdmi_audio_control.

BUG=chromium:331938
TEST=connect DVI monitor and play sound, it should not blank
Signed-off-by: Dominik Behr <dbehr@chromium.org>

Change-Id: Ibb299597e57b294beb57299bc132786f7f9af7a7
Reviewed-on: https://chromium-review.googlesource.com/181967
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Queue: Dominik Behr <dbehr@chromium.org>
Tested-by: Dominik Behr <dbehr@chromium.org>
Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
(cherry picked from commit 1a61b17edc591945b847e925e74834e428235035)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-03 19:53:22 +02:00
Rahul Sharma
715f5bb0c7 alsa/soc: add pm callbacks to hdmi audio driver
HDMI audio driver does not provide PM callbacks to
handle S2R scenarios. Due to this audio doesn't
resume after S2R as hdmi-audio related registers get
reset.

While suspending, hdmi hotplug variable is set to
unplugged state to ensure that no dapm callback
access the registers. Resume callback checks the status
of the HPD gpio line and trigger the hotplug handler.
This ensures that registers are back to the pre-S2R state.
This is equivalent to call hdmi_commit for drm hdmi
driver in resume callback.

BUG=chrome-os-partner:24068
TEST=System works fine on Peach board. Tested S2R when hdmi
is connected along with audio playback.

Change-Id: I79fdaf2565b6074ca922d56ef081cfa4d74c9d77
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/178483
Reviewed-by: shirish s <s.shirish@samsung.com>
Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
(cherry picked from commit 1981a3eb137d33ed33b3bbecffebf10b3fd0b872)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-03 19:53:04 +02:00
Yuly Novikov
b9364a3bae CHROMIUM: ALSA: ASoC: exynos hdmi - disable audio in DVI mode
exynos-hdmi-audio used to configure HDMI to send ACR and AUI infoframes
even when DVI sink was plugged using HDMI-DVI cable.
This would cause monitor to go to sleep.

So, don't configure audio if HDMI is in DVI mode,
assuming the graphics driver already disabled it.

Also, if HDMI audio jack hotplugging was previously reported,
report that it was unplugged when DVI mode is detected.

BUG=chromium:222145,chromium:239641
TEST=Various HDMI/DVI plug/unplug scenarios, the most complex being:
play music, plug HDMI, suspend, unplug HDMI, plug DVI, resume,
listen to sound on internal speakers.

Signed-off-by: Yuly Novikov <ynovikov@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50726
Reviewed-by: Dylan Reid <dgreid@chromium.org>
(cherry picked from commit 1819d3da10dd1ee0c398a98e36d5ea0625855d3b)
(cherry picked from commit c17dd45a794c63db0b66faa2e3eddff3104cd6d0)
Change-Id: I7ff4f4c5c55de9dbed58a46dd103007762314d24
Reviewed-on: https://chromium-review.googlesource.com/174263
Commit-Queue: Chih-Chung Chang <chihchung@chromium.org>
Tested-by: Chih-Chung Chang <chihchung@chromium.org>

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
(cherry picked from commit b44fc97317e093c4a43746847884b31bb1ea9d88)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-03 19:52:47 +02:00
Chih-Chung Chang
1cf6d0def5 CHROMIUM: ASoC: samsung - make hdmi_audio ignore non-playback requests.
The hdmi_audio plugin callbacks change the HDMI audio state even if
those requests are not for playback (like recording). This inadvertently
makes stopping recording turn off HDMI audio playback. Now we ignore
those requests.

BUG=chrome-os-partner:22492
TEST=On daisy, while playing a wav file, start and stop recording. The
playback should not be affected.

Change-Id: I879732206b2c1e67730694d65fd77e5062d2af5b
Signed-off-by: Chih-Chung Chang <chihchung@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/169515
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
(cherry picked from commit 25716b457ad56f5369cc4b0ec2fb906ab63e54fa)
Reviewed-on: https://chromium-review.googlesource.com/173363

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
(cherry picked from commit 66ecdbf0ee143a7fd6f7d6c733795ebf73baf446)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-03 19:52:32 +02:00
Rahul Sharma
fcb3d5ffec CHROMIUM: alsa/soc: check phy status before configuring audio registers
HDMI audio driver needs to configure the hdmi registers only after
phy is in stable state. Previously, register configuration is delayed
until HDMI driver has resumed from suspended state. But now HDMI
driver is not registering Runtime PM callbacks. Secondly due to
de-bounce logic added in hdmi driver for hotplug, it takes more time
for Phy to get stable.

This patch replaces the condition with a check for PHY stable state
before setting the audio configuration.

BUG=chrome-os-partner:22200
TEST=System works fine on Peach board along with S2R. Played audio and
then plugged hdmi cable. Audio is heard from hdmi display.

Change-Id: I7aecc841207dc3bf42c4968c0d7df7e073bedae2
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/169743
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
(cherry picked from commit e0776057d4979f5ce8260aaad091cc852fb49405)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-03 19:52:14 +02:00
Rahul Sharma
2f3b15653e CHROMIUM: alsa/soc: skip checking hdmi power status on unplug
While hdmi cable is upplugged, stop checking the runtime power
state of hdmi ip. During unplug, hdmi-audio driver doesn't access
the registers.

It is only meaningful when cable is plugged and hdmi audio registers
need to be updated with playing audio parameters.

BUG=chrome-os-partner:20249
TEST=basic hdmi works fine on Snow, Peach board.

Change-Id: I0d9920523f4cb096c1a72e64f3b904f0ac8d1209
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/58870
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
(cherry picked from commit 0e3c8fcf59126f7dd9709cdd023edefba06f0aa7)

Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
2014-07-03 19:51:57 +02:00