Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
442798a
soundwire: renames to prepare support for master drivers/devices
plbossart Sep 10, 2019
91b053c
soundwire: rename dev_to_sdw_dev macro
plbossart Sep 11, 2019
f80f064
soundwire: rename drv_to_sdw_slave_driver macro
plbossart Sep 11, 2019
1056a21
soundwire: bus_type: rename sdw_drv_ to sdw_slave_drv
plbossart Sep 11, 2019
cc2eec2
soundwire: intel: rename res field as link_res
plbossart Sep 11, 2019
19c93d9
soundwire: add support for sdw_slave_type
plbossart Sep 11, 2019
7c6b27d
soundwire: slave: move uevent handling to slave device level
plbossart Nov 14, 2019
534ef01
soundwire: add initial definitions for sdw_master_device
plbossart Sep 11, 2019
7c8e259
soundwire: intel: remove platform devices and use 'Master Devices' in…
plbossart Oct 23, 2019
09cc602
soundwire: register master device driver
bardliao Sep 12, 2019
1aa5c2b
soundwire: intel: add prepare support in sdw dai driver
RanderWang Aug 19, 2019
d37ea6f
soundwire: intel: add trigger support in sdw dai driver
RanderWang Aug 19, 2019
0120269
soundwire: intel: add sdw_stream_setup helper for .startup callback
RanderWang Aug 19, 2019
ca67db5
soundwire: intel: free all resources on hw_free()
plbossart Oct 23, 2019
11f8c28
soundwire: intel_init: add implementation of sdw_intel_enable_irq()
plbossart Oct 23, 2019
3379a2b
soundwire: intel_init: use EXPORT_SYMBOL_NS
plbossart Dec 16, 2019
8bf05ed
soundwire: intel: use EXPORT_SYMBOL_NS
plbossart Dec 16, 2019
dfebef9
soundwire: intel/cadence: merge Soundwire interrupt handlers/threads
bardliao Sep 24, 2019
9106c05
soundwire: bus: fix race condition with probe_complete signaling
plbossart Aug 2, 2019
8f6ee9c
soundwire: bus: add PM/no-PM versions of read/write functions
plbossart Jun 11, 2019
3aa6ed1
soundwire: bus: write Slave Device Number without runtime_pm
plbossart Sep 26, 2019
f872469
soundwire: intel: add helpers for link power down and shim wake
plbossart Sep 20, 2019
9f3aa31
soundwire: intel: Add basic power management support
plbossart Sep 20, 2019
b0459b4
soundwire: intel: add pm_runtime support
plbossart Sep 20, 2019
787b2fb
soundwire: intel: reset pm_runtime status during system resume
plbossart Oct 11, 2019
b0c1081
soundwire: intel: fix race condition on system resume
plbossart Nov 26, 2019
86dea11
soundwire: bus: add helper to reset Slave status to UNATTACHED
plbossart Sep 26, 2019
930654c
soundwire: intel: call helper to reset Slave states on resume
plbossart Sep 26, 2019
fe86556
soundwire: bus: check first if Slaves become UNATTACHED
plbossart Sep 26, 2019
2a673af
soundwire: bus: fix race condition with enumeration_complete signaling
plbossart Sep 26, 2019
89c2a10
soundwire: bus: fix race condition with initialization_complete signa…
plbossart Nov 4, 2019
fcc8349
soundwire: bus: fix race condition by tracking UNATTACHED transition
plbossart Nov 8, 2019
83ff855
soundwire: intel: disable pm_runtime when removing a master
plbossart Oct 9, 2019
70cd305
soundwire: bus: disable pm_runtime in sdw_slave_delete
plbossart Oct 9, 2019
01f4ebf
soundwire: stream: remove redundant pr_err traces
plbossart Nov 14, 2019
688b831
soundwire: stream: update state machine and add state checks
plbossart Oct 12, 2019
bcf004f
soundwire: stream: only prepare stream when it is configured.
bardliao Sep 20, 2019
917dfb9
soundwire: stream: do not update parameters during DISABLED-PREPARED …
plbossart Oct 15, 2019
f39c514
soundwire: intel: reinitialize IP+DSP in .prepare(), but only when re…
bardliao Oct 14, 2019
f60d3e1
soundwire: intel: pm_runtime idle scheduling
plbossart Oct 24, 2019
a57921c
[HACK] add traces to debug aplay suspend/resume issue
plbossart Oct 12, 2019
329520d
pm: add more traces
plbossart Nov 21, 2019
617cbf4
soundwire: cadence_master: remove config update for interrupt setting
RanderWang Dec 2, 2019
24b6f3b
soundwire: intel: add mutex to prevent concurrent access to SHIM regi…
plbossart Dec 2, 2019
81ff8b0
soundwire: intel: add CLK_STOP_TEARDOWN for pm_runtime suspend
plbossart Dec 3, 2019
c38822b
soundwire: bus: add clock stop helpers
RanderWang Nov 8, 2019
b10cfa1
soundwire: cadence_master: simplifiy cdns_init()
RanderWang Dec 5, 2019
20d3674
soundwire: cadence_master: add clock_stop/restart routines
RanderWang Dec 5, 2019
648accd
soundwire: intel: add CLK_STOP_BUS_RESET support
RanderWang Dec 5, 2019
426a441
soundwire: intel: add CLK_STOP_NOT_ALLOWED support
plbossart Dec 5, 2019
1e48fde
soundwire: intel: add interface to process wake events
plbossart Dec 16, 2019
76492d7
soundwire: intel: add wake interrupt support
RanderWang Dec 6, 2019
4aeb16f
soundwire: intel_init: handle power rail dependencies for clock stop …
plbossart Dec 5, 2019
368838c
soundwire: intel: support clock_stop mode without quirks
plbossart Dec 5, 2019
de9bf0c
soundwire: cadence_master: add interface to check clock status
RanderWang Dec 6, 2019
98ace3a
soundwire: intel: Fix a io timeout issue if SDW_INTEL_CLK_STOP_BUS_RESET
RanderWang Dec 6, 2019
d5c6208
soundwire: bus: treat CMD_IGNORED as success on ClockStop
plbossart Dec 9, 2019
a55b75d
soundwire: cadence_master: fix usage of CMD_ACCEPT
plbossart Dec 9, 2019
2a4f474
soundwire: cadence_master: log more useful information during timeouts
plbossart Dec 9, 2019
6885434
soundwire: intel_init: add support for clock_stop quirks
plbossart Dec 3, 2019
6da09af
soundwire: cadence_master: enter clock stop if there are no Slaves pr…
plbossart Dec 9, 2019
e95d996
Soundwire: bus: return in the while loop rather than break and return
bardliao Dec 13, 2019
6fd5fad
Soundwire: set is_slave only if the slave is attached
bardliao Dec 13, 2019
cea8141
soundwire: test is_slave before list_for_each_entry(slave, &bus->slav…
bardliao Dec 13, 2019
a47fafe
soundwire: intel: refine runtime pm for SDW_INTEL_CLK_STOP_BUS_RESET
RanderWang Dec 11, 2019
a2b72e7
soundwire: stream: fix support for multiple Slaves on the same link
RanderWang Dec 25, 2019
ebbb5ef
ASoC: SOF: Intel: add SoundWire configuration interface
plbossart Sep 11, 2019
f9c8bfc
ASoC: SOF: IPC: dai-intel: move ALH declarations in header file
plbossart Aug 16, 2019
1dea855
ASoC: SOF: Intel: hda: add SoundWire stream config/free callbacks
plbossart Jun 26, 2019
20a05e4
ASoC: SOF: Intel: hda: initial SoundWire machine driver autodetect
plbossart Sep 12, 2019
a85abbd
ASoC: SOF: Intel: hda: disable SoundWire interrupts on suspend
plbossart Sep 24, 2019
d2177aa
ASoC: SOF: Intel: add build support for SoundWire
plbossart Sep 4, 2019
4233154
ASoC: SOF: Intel: hda-ctrl: add reset cycle before parsing capabilities
plbossart Oct 21, 2019
ffd865e
ASoC: SOF: Intel: hda: merge IPC, stream and SoundWire interrupt hand…
bardliao Nov 22, 2019
a5bc2b8
ASoC: SOF: Intel: hda: specify behavior for clock stop
plbossart Dec 3, 2019
61568d5
ASoC: SOF: Intel: hda: add WAKEEN interrupt support for SoundWire
RanderWang Dec 5, 2019
7e4e845
ASoC: SOF: Intel: hda: add parameter to control SoundWire clock stop …
plbossart Dec 5, 2019
4582142
Asoc: SOF: Intel: hda: check SoundWire wakeen interrupt in irq thread
RanderWang Dec 6, 2019
4357838
ASoC: SOF: Intel: hda: import SOUNDWIRE_INIT namespace
plbossart Dec 16, 2019
97ad00f
ASoC: codecs: rt700: add Soundwire support
shumingfan Apr 18, 2018
50867f5
ASoC: codecs: rt1308: add SoundWire support
shumingfan Aug 2, 2019
5baeac8
ASoC: codecs: rt711: add SoundWire support
shumingfan Aug 15, 2019
39bca07
ASoC: codecs: rt715: add SoundWire support
Aug 21, 2019
1b23cf3
ASoC: codecs: Add DEBUG to Makefile
plbossart Apr 18, 2019
705af96
ASoC: codecs: rt715: rt715_sdw_regmap can be static
intel-lab-lkp Oct 18, 2019
836ffea
ASoC: rt711: changes 32bits address mapping of index defined register…
shumingfan Oct 23, 2019
a37c44a
ASoC: rt700: changes 32bits address mapping of index defined register…
shumingfan Oct 23, 2019
af97914
ASoC: rt1308-sdw: fix some coding style
shumingfan Oct 23, 2019
62b9eda
Resume correct register setting for dmic recording after suspend.
Oct 24, 2019
d42f2e0
ASoC: rt711: add JD2 configuration
shumingfan Oct 24, 2019
bfca7ec
ASoC: codec:rt715-sdw:Modify register mapping of index from 32bits to…
Oct 25, 2019
62ebe8d
ASoC: rt700: fix pop noise while stopping playback
shumingfan Oct 28, 2019
a615a12
ASoC: rt711: fix pop noise while stopping playback
shumingfan Oct 28, 2019
878f586
ASoC: rt1308-sdw: fix DC offset loading from EFUSE and increase DAC v…
shumingfan Oct 28, 2019
c0a534a
ASoC: codec:rt715-sdw: Modify some ret values regarding to warning an…
Oct 29, 2019
93383d2
ASoC: rt1308-sdw: output gain enhancement
shumingfan Oct 30, 2019
5375d7e
ASoC: rt711: move rt711_parse_dt to rt711_probe
bardliao Nov 4, 2019
1c6289d
ASoC: codecs: rt1308-sdw.c: wait for initialization_complete
plbossart Nov 4, 2019
c009d3c
ASoC: codecs: rt700-sdw.c: wait for initialization_complete
plbossart Nov 4, 2019
9ec56d8
ASoC: codecs: rt711-sdw.c: wait for initialization_complete
plbossart Nov 4, 2019
d0e8e04
ASoC: codecs: rt715-sdw.c: wait for initialization_complete
plbossart Nov 4, 2019
a72cbaa
ASoC: rt700: enable wake_capable
shumingfan Nov 7, 2019
f17134b
ASoC: rt711: enable wake_capable
shumingfan Nov 7, 2019
04eda04
ASoC: rt715: enable wake_capable
shumingfan Nov 7, 2019
ce38a9d
ASoC: rt700: re-do io_init in cache_bypass mode when system resume
shumingfan Nov 7, 2019
cbe4765
ASoC: rt711: re-do io_init in cache_bypass mode when system resume
shumingfan Nov 7, 2019
63e64a0
ASoC: rt1308-sdw: re-do io_init in cache_bypass mode when system resume
shumingfan Nov 7, 2019
35e0a55
ASoC: codec: rt715: Remove unused rt715_index_read function.
Nov 11, 2019
45ac573
ASoC: codecs: rt1308-sdw: check unattach request before wait_for_comp…
plbossart Nov 8, 2019
eaef7d5
ASoC: codecs: rt700-sdw: check unattach request before wait_for_compl…
plbossart Nov 8, 2019
3c75fd7
ASoC: codecs: rt711-sdw: check unattach request before wait_for_compl…
plbossart Nov 8, 2019
c24b2be
ASoC: codecs: rt715-sdw: check unattach request before wait_for_compl…
plbossart Nov 8, 2019
54b4d87
ASoC: rt711: fix no sound output after waking up from deep s3
shumingfan Nov 13, 2019
3864747
Correct some sdw default registers and add missing registers in rt715…
Nov 22, 2019
490cd83
ASoC: rt5682: Add the field "is_sdw" of private data
oder-chiou Nov 22, 2019
3c1e4d7
ASoC: rt5682: Add the soundwire support
oder-chiou Nov 26, 2019
612d0ad
Add missing rt715_reg_defaults values.
Dec 2, 2019
c9beb58
ASoC: rt5682: Fix the merging conflict
oder-chiou Dec 4, 2019
6d7e6f2
ASoC: rt700: mark cache_dirty if redo the io_init funciton
shumingfan Dec 5, 2019
7c90545
ASoC: rt711: mark cache_dirty if redo the io_init funciton
shumingfan Dec 5, 2019
5f71283
ASoC: rt715: mark cache_dirty if redo the io_init funciton
shumingfan Dec 5, 2019
fcf1cf8
ASoC: rt1308-sdw: mark cache_dirty if redo the io_init funciton
shumingfan Dec 5, 2019
60f3a61
ASoC: rt700: Add pin sense check during jack type detection
shumingfan Dec 9, 2019
5cf171e
ASoC: rt711: Add pin sense check during jack type detection
shumingfan Dec 9, 2019
69efc29
ASoC: codecs: rt711-sdw: add traces for suspend-resume
plbossart Dec 6, 2019
105e892
ASoC: Intel: common: soc-acpi: declare new tables for SoundWire
plbossart Aug 24, 2019
1e8f6e5
ASoC: Intel: common: add match tables for ICL w/ SoundWire
bardliao Jun 20, 2019
12f3d88
ASoC: Intel: common: add match tables for CNL/CFL/CML w/ SoundWire
RanderWang Jul 22, 2019
f10e759
ASoC: Intel: common: add match tables for TGL w/ SoundWire
plbossart Sep 4, 2019
1df597a
ASoC: SOF: Intel: reference SoundWire machine lists
plbossart Sep 4, 2019
497bfc9
ASoC: Intel: boards: add sdw_rt700 machine driver
plbossart Apr 11, 2019
8b339b3
ASoC: Intel: boards: add sdw_rt711_rt1308_rt715 3-in-1 config support
plbossart Aug 26, 2019
d07be8d
ASoC: Intel: boards: sdw_rt711: add machine driver
plbossart Sep 17, 2019
ab0e339
ASoC: Intel: boards: SoundWire rt711 + I2S RT1308 configuration
plbossart Sep 25, 2019
c3b747d
NOT FOR UPSTREAM: Add debug for boards
plbossart Jun 24, 2019
51b7ef5
ASoC: intel: sdw_rt711_rt1308_rt715: remove ENABLE_RT1308_SDW2 flag
bardliao Nov 5, 2019
fdb4618
ASoC: intel: sdw_rt711_rt1308_rt715: Use a fixed number of num_links and
bardliao Nov 7, 2019
dd7a15a
ASoC: intel:sdw_rt711_i2s_rt1308: add quirk for rt711
RanderWang Nov 12, 2019
358d4f0
ASoC: intel: refine sdw_rt711_rt1308_rt715
RanderWang Nov 12, 2019
bda8d93
ASoC: Intel: sdw_rt711_rt1308_rt715: get more specific DMI info
bardliao Nov 21, 2019
25a386e
ASoC: Intel: sdw_rt711_rt1308_rt715: add Dell XPS to DMI table
bardliao Nov 29, 2019
dbcbaad
ALSA: HDA: intel-dsp-config: add DMI info for Dell laptop
bardliao Nov 5, 2019
b40f838
soundwire: cadence_master: handle multiple status reports per Slave
plbossart Jun 11, 2019
ce9bcf2
soundwire: Add generic bandwidth allocation algorithm
plbossart Apr 24, 2018
1d3e3ba
soundwire: dynamic_allocation: set grp_ctrl_valid false
bardliao Aug 2, 2019
872ac57
soundwire: bus: fix device number leak on errors
plbossart Jul 30, 2019
9907107
soundwire: intel: modify DMAT field for ALH
bardliao Aug 19, 2019
db5019a
soundwire: intel: fix factor of two in MCLK handling
bardliao Aug 19, 2019
3c08149
soundwire: cadence_master: log register write info
plbossart Jun 26, 2019
4851309
add more traces to bus code
plbossart Jun 11, 2019
0859b75
add traces for bus
plbossart Aug 1, 2019
9a3d44d
[HACK] soundwire: add dynamic DEBUG in makefile
plbossart Sep 12, 2019
738283f
ALSA: HDA: intel-dsp-config: add DMI info for Dell laptop
bardliao Nov 20, 2019
08bb119
Soundwire: generic_bandwidth_allocation: don't free params if it is null
bardliao Dec 2, 2019
b856c0c
soundwire: cadence_master: remove useless variable incrementation
plbossart Dec 6, 2019
c37cb0f
soundwire: cadence_master: fix a io timeout issue in S3 test
RanderWang Dec 11, 2019
a123d0f
soundwire: bus: fix io error when processing alert event
RanderWang Dec 4, 2019
cb5212f
soundwire: cadence_master: debug error on Olympic device in clock_stop
plbossart Dec 5, 2019
f9f9a9d
soundwire: bus: add traces for slave alerts
plbossart Dec 5, 2019
b8d0df2
soundwire: cadence_master: add traces for Slave state change
plbossart Dec 6, 2019
0ac77a9
soundwire: bus: add traces for Slave state changes
plbossart Dec 6, 2019
15b4888
soundwire: cadence_master: add traces for clock_restart
plbossart Dec 9, 2019
255682d
soundwire: intel: refine function for wakeen event processing
RanderWang Dec 11, 2019
93672db
soundwire: stream: add traces to debug "transport params" error
plbossart Dec 19, 2019
1e4871c
ASoC: Intel: sdw-rt711-rt1308-rt715: move to new CODEC_CONF represent…
plbossart Jan 7, 2020
57b7e7d
Merge remote-tracking branch 'sof/integration/soundwire-intel' into i…
plbossart Jan 7, 2020
0fb92b7
Merge remote-tracking branch 'sof/integration/soundwire-sof' into int…
plbossart Jan 7, 2020
6f95e7a
Merge remote-tracking branch 'sof/integration/realtek-sdw-codecs' int…
plbossart Jan 7, 2020
de2372e
Merge remote-tracking branch 'sof/integration/soundwire-machine-drive…
plbossart Jan 7, 2020
63cf784
Merge remote-tracking branch 'sof/integration/soundwire-debug-fixes' …
plbossart Jan 7, 2020
674830a
soundwire: cadence_master: filter out bad interrupts
plbossart Dec 19, 2019
a200933
soundwire: cadence: disable exit_clock_stop when doing a bus_reset
plbossart Dec 20, 2019
cfb1579
soundwire: intel: don't program Sync registers in clock stop mode
plbossart Dec 20, 2019
688a947
soundwire: intel: add traces to track clock restart mode
plbossart Dec 20, 2019
0971aff
soundwire: stream: don't program ports when a stream that has not bee…
RanderWang Jan 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 45 additions & 18 deletions Documentation/driver-api/soundwire/stream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,22 +156,27 @@ Below shows the SoundWire stream states and state transition diagram. ::
+-----------+ +------------+ +----------+ +----------+
| ALLOCATED +---->| CONFIGURED +---->| PREPARED +---->| ENABLED |
| STATE | | STATE | | STATE | | STATE |
+-----------+ +------------+ +----------+ +----+-----+
^
|
|
v
+----------+ +------------+ +----+-----+
+-----------+ +------------+ +---+--+---+ +----+-----+
^ ^ ^
| | |
__| |___________ |
| | |
v | v
+----------+ +-----+------+ +-+--+-----+
| RELEASED |<----------+ DEPREPARED |<-------+ DISABLED |
| STATE | | STATE | | STATE |
+----------+ +------------+ +----------+

NOTE: State transition between prepare and deprepare is supported in Spec
but not in the software (subsystem)
NOTE: State transitions between ``SDW_STREAM_ENABLED`` and
``SDW_STREAM_DISABLED`` are only relevant when then INFO_PAUSE flag is
supported at the ALSA/ASoC level. Likewise the transition between
``SDW_DISABLED_STATE`` and ``SDW_PREPARED_STATE`` depends on the
INFO_RESUME flag.

NOTE2: Stream state transition checks need to be handled by caller
framework, for example ALSA/ASoC. No checks for stream transition exist in
SoundWire subsystem.
NOTE2: The framework implements basic state transition checks, but
does not e.g. check if a transition from DISABLED to ENABLED is valid
on a specific platform. Such tests need to be added at the ALSA/ASoC
level.

Stream State Operations
-----------------------
Expand Down Expand Up @@ -246,6 +251,9 @@ SDW_STREAM_PREPARED

Prepare state of stream. Operations performed before entering in this state:

(0) Steps 1 and 2 are omitted in the case of a resume operation,
where the bus bandwidth is known.

(1) Bus parameters such as bandwidth, frame shape, clock frequency,
are computed based on current stream as well as already active
stream(s) on Bus. Re-computation is required to accommodate current
Expand All @@ -270,13 +278,15 @@ Prepare state of stream. Operations performed before entering in this state:
After all above operations are successful, stream state is set to
``SDW_STREAM_PREPARED``.

Bus implements below API for PREPARE state which needs to be called once per
stream. From ASoC DPCM framework, this stream state is linked to
.prepare() operation.
Bus implements below API for PREPARE state which needs to be called
once per stream. From ASoC DPCM framework, this stream state is linked
to .prepare() operation. Since the .trigger() operations may not
follow the .prepare(), a direct transitions from
``SDW_STREAM_PREPARED`` to ``SDW_STREAM_DEPREPARED`` is allowed.

.. code-block:: c

int sdw_prepare_stream(struct sdw_stream_runtime * stream);
int sdw_prepare_stream(struct sdw_stream_runtime * stream, bool resume);


SDW_STREAM_ENABLED
Expand Down Expand Up @@ -332,6 +342,14 @@ Bus implements below API for DISABLED state which needs to be called once
per stream. From ASoC DPCM framework, this stream state is linked to
.trigger() stop operation.

When the INFO_PAUSE flag is supported, a direct transition to
``SDW_STREAM_ENABLED`` is allowed.

For resume operations where ASoC will use the .prepare() callback, the
stream can transition from ``SDW_STREAM_DISABLED`` to
``SDW_STREAM_PREPARED``, with all required settings restored but
without updating the bandwidth and bit allocation.

.. code-block:: c

int sdw_disable_stream(struct sdw_stream_runtime * stream);
Expand All @@ -353,9 +371,18 @@ state:
After all above operations are successful, stream state is set to
``SDW_STREAM_DEPREPARED``.

Bus implements below API for DEPREPARED state which needs to be called once
per stream. From ASoC DPCM framework, this stream state is linked to
.trigger() stop operation.
Bus implements below API for DEPREPARED state which needs to be called
once per stream. ALSA/ASoC do not have a concept of 'deprepare', and
the mapping from this stream state to ALSA/ASoC operation may be
implementation specific.

When the INFO_PAUSE flag is supported, the stream state is linked to
the .hw_free() operation - the stream is not deprepared on a
TRIGGER_STOP.

Other implementations may transition to the ``SDW_STREAM_DEPREPARED``
state on TRIGGER_STOP, should they require a transition through the
``SDW_STREAM_PREPARED`` state.

.. code-block:: c

Expand Down
4 changes: 2 additions & 2 deletions drivers/base/regmap/regmap-sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
static int regmap_sdw_write(void *context, unsigned int reg, unsigned int val)
{
struct device *dev = context;
struct sdw_slave *slave = dev_to_sdw_dev(dev);
struct sdw_slave *slave = to_sdw_slave_device(dev);

return sdw_write(slave, reg, val);
}

static int regmap_sdw_read(void *context, unsigned int reg, unsigned int *val)
{
struct device *dev = context;
struct sdw_slave *slave = dev_to_sdw_dev(dev);
struct sdw_slave *slave = to_sdw_slave_device(dev);
int read;

read = sdw_read(slave, reg);
Expand Down
4 changes: 4 additions & 0 deletions drivers/soundwire/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ config SOUNDWIRE_CADENCE
config SOUNDWIRE_INTEL
tristate "Intel SoundWire Master driver"
select SOUNDWIRE_CADENCE
select SOUNDWIRE_GENERIC_ALLOCATION
depends on ACPI && SND_SOC
help
SoundWire Intel Master driver.
If you have an Intel platform which has a SoundWire Master then
enable this config option to get the SoundWire support for that
device.

config SOUNDWIRE_GENERIC_ALLOCATION
tristate

endif
6 changes: 5 additions & 1 deletion drivers/soundwire/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
#
# Makefile for soundwire core
#
ccflags-y += -DDEBUG

#Bus Objs
soundwire-bus-objs := bus_type.o bus.o slave.o mipi_disco.o stream.o
soundwire-bus-objs := bus_type.o bus.o master.o slave.o mipi_disco.o stream.o
obj-$(CONFIG_SOUNDWIRE) += soundwire-bus.o

soundwire-generic-allocation-objs := generic_bandwidth_allocation.o
obj-$(CONFIG_SOUNDWIRE_GENERIC_ALLOCATION) += soundwire-generic-allocation.o

ifdef CONFIG_DEBUG_FS
soundwire-bus-objs += debugfs.o
endif
Expand Down
Loading