Skip to content

Commit b5c21c8

Browse files
committed
Merge branch 'for-linus' into for-next
This back-merge is necessary for adjusting the latest FireWire fix with the recent refactoring in 5.3 development branch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 parents 7c2b362 + 7fbd175 commit b5c21c8

51 files changed

Lines changed: 475 additions & 261 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎include/sound/sof/dai.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ enum sof_ipc_dai_type {
4949
SOF_DAI_INTEL_SSP, /**< Intel SSP */
5050
SOF_DAI_INTEL_DMIC, /**< Intel DMIC */
5151
SOF_DAI_INTEL_HDA, /**< Intel HD/A */
52+
SOF_DAI_INTEL_SOUNDWIRE, /**< Intel SoundWire */
5253
};
5354

5455
/* general purpose DAI configuration */

‎include/sound/sof/header.h‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#define SOF_IPC_FW_READY SOF_GLB_TYPE(0x7U)
4949
#define SOF_IPC_GLB_DAI_MSG SOF_GLB_TYPE(0x8U)
5050
#define SOF_IPC_GLB_TRACE_MSG SOF_GLB_TYPE(0x9U)
51+
#define SOF_IPC_GLB_GDB_DEBUG SOF_GLB_TYPE(0xAU)
5152

5253
/*
5354
* DSP Command Message Types
@@ -78,6 +79,7 @@
7879
#define SOF_IPC_COMP_GET_VALUE SOF_CMD_TYPE(0x002)
7980
#define SOF_IPC_COMP_SET_DATA SOF_CMD_TYPE(0x003)
8081
#define SOF_IPC_COMP_GET_DATA SOF_CMD_TYPE(0x004)
82+
#define SOF_IPC_COMP_NOTIFICATION SOF_CMD_TYPE(0x005)
8183

8284
/* DAI messages */
8385
#define SOF_IPC_DAI_CONFIG SOF_CMD_TYPE(0x001)
@@ -153,6 +155,27 @@ struct sof_ipc_compound_hdr {
153155
uint32_t count; /**< count of 0 means end of compound sequence */
154156
} __packed;
155157

158+
/**
159+
* OOPS header architecture specific data.
160+
*/
161+
struct sof_ipc_dsp_oops_arch_hdr {
162+
uint32_t arch; /* Identifier of architecture */
163+
uint32_t totalsize; /* Total size of oops message */
164+
} __packed;
165+
166+
/**
167+
* OOPS header platform specific data.
168+
*/
169+
struct sof_ipc_dsp_oops_plat_hdr {
170+
uint32_t configidhi; /* ConfigID hi 32bits */
171+
uint32_t configidlo; /* ConfigID lo 32bits */
172+
uint32_t numaregs; /* Special regs num */
173+
uint32_t stackoffset; /* Offset to stack pointer from beginning of
174+
* oops message
175+
*/
176+
uint32_t stackptr; /* Stack ptr */
177+
} __packed;
178+
156179
/** @}*/
157180

158181
#endif

‎include/sound/sof/info.h‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818

1919
#define SOF_IPC_MAX_ELEMS 16
2020

21+
/*
22+
* Firmware boot info flag bits (64-bit)
23+
*/
24+
#define SOF_IPC_INFO_BUILD BIT(0)
25+
#define SOF_IPC_INFO_LOCKS BIT(1)
26+
#define SOF_IPC_INFO_LOCKSV BIT(2)
27+
#define SOF_IPC_INFO_GDB BIT(3)
28+
2129
/* extended data types that can be appended onto end of sof_ipc_fw_ready */
2230
enum sof_ipc_ext_data {
2331
SOF_IPC_EXT_DMA_BUFFER = 0,
@@ -49,16 +57,8 @@ struct sof_ipc_fw_ready {
4957
uint32_t hostbox_size;
5058
struct sof_ipc_fw_version version;
5159

52-
/* Miscellaneous debug flags showing build/debug features enabled */
53-
union {
54-
uint64_t reserved;
55-
struct {
56-
uint64_t build:1;
57-
uint64_t locks:1;
58-
uint64_t locks_verbose:1;
59-
uint64_t gdb:1;
60-
} bits;
61-
} debug;
60+
/* Miscellaneous flags */
61+
uint64_t flags;
6262

6363
/* reserved for future use */
6464
uint32_t reserved[4];

‎include/sound/sof/xtensa.h‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
/* Xtensa Firmware Oops data */
1919
struct sof_ipc_dsp_oops_xtensa {
20-
struct sof_ipc_hdr hdr;
20+
struct sof_ipc_dsp_oops_arch_hdr arch_hdr;
21+
struct sof_ipc_dsp_oops_plat_hdr plat_hdr;
2122
uint32_t exccause;
2223
uint32_t excvaddr;
2324
uint32_t ps;
@@ -38,7 +39,11 @@ struct sof_ipc_dsp_oops_xtensa {
3839
uint32_t intenable;
3940
uint32_t interrupt;
4041
uint32_t sar;
41-
uint32_t stack;
42+
uint32_t debugcause;
43+
uint32_t windowbase;
44+
uint32_t windowstart;
45+
uint32_t excsave1;
46+
uint32_t ar[];
4247
} __packed;
4348

4449
#endif

‎include/uapi/sound/sof/abi.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/* SOF ABI version major, minor and patch numbers */
2828
#define SOF_ABI_MAJOR 3
29-
#define SOF_ABI_MINOR 4
29+
#define SOF_ABI_MINOR 6
3030
#define SOF_ABI_PATCH 0
3131

3232
/* SOF ABI version number. Format within 32bit word is MMmmmppp */

‎sound/core/seq/oss/seq_oss_ioctl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int snd_seq_oss_oob_user(struct seq_oss_devinfo *dp, void __user *arg)
6262
if (copy_from_user(ev, arg, 8))
6363
return -EFAULT;
6464
memset(&tmpev, 0, sizeof(tmpev));
65-
snd_seq_oss_fill_addr(dp, &tmpev, dp->addr.port, dp->addr.client);
65+
snd_seq_oss_fill_addr(dp, &tmpev, dp->addr.client, dp->addr.port);
6666
tmpev.time.tick = 0;
6767
if (! snd_seq_oss_process_event(dp, (union evrec *)ev, &tmpev)) {
6868
snd_seq_oss_dispatch(dp, &tmpev, 0, 0);

‎sound/core/seq/oss/seq_oss_rw.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt)
174174
memset(&event, 0, sizeof(event));
175175
/* set dummy -- to be sure */
176176
event.type = SNDRV_SEQ_EVENT_NOTEOFF;
177-
snd_seq_oss_fill_addr(dp, &event, dp->addr.port, dp->addr.client);
177+
snd_seq_oss_fill_addr(dp, &event, dp->addr.client, dp->addr.port);
178178

179179
if (snd_seq_oss_process_event(dp, rec, &event))
180180
return 0; /* invalid event - no need to insert queue */

‎sound/firewire/amdtp-am824.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static void read_midi_messages(struct amdtp_stream *s,
321321
u8 *b;
322322

323323
for (f = 0; f < frames; f++) {
324-
port = (s->data_block_counter + f) % 8;
324+
port = (8 - s->ctx_data.tx.first_dbc + s->data_block_counter + f) % 8;
325325
b = (u8 *)&buffer[p->midi_position];
326326

327327
len = b[0] - 0x80;

‎sound/firewire/fireface/ff-protocol-latter.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
#include "ff.h"
1111

12-
#define LATTER_STF 0xffff00000004
13-
#define LATTER_ISOC_CHANNELS 0xffff00000008
14-
#define LATTER_ISOC_START 0xffff0000000c
15-
#define LATTER_FETCH_MODE 0xffff00000010
16-
#define LATTER_SYNC_STATUS 0x0000801c0000
12+
#define LATTER_STF 0xffff00000004ULL
13+
#define LATTER_ISOC_CHANNELS 0xffff00000008ULL
14+
#define LATTER_ISOC_START 0xffff0000000cULL
15+
#define LATTER_FETCH_MODE 0xffff00000010ULL
16+
#define LATTER_SYNC_STATUS 0x0000801c0000ULL
1717

1818
static int parse_clock_bits(u32 data, unsigned int *rate,
1919
enum snd_ff_clock_src *src)

‎sound/firewire/motu/motu-stream.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static void destroy_stream(struct snd_motu *motu,
343343
}
344344

345345
amdtp_stream_destroy(stream);
346-
fw_iso_resources_free(resources);
346+
fw_iso_resources_destroy(resources);
347347
}
348348

349349
int snd_motu_stream_init_duplex(struct snd_motu *motu)

0 commit comments

Comments
 (0)