Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
7fc8e7c1
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
7fc8e7c1
编写于
6月 20, 2017
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-linus' into for-next
上级
8cad7a3d
c7ecb906
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
17 addition
and
8 deletion
+17
-8
sound/core/pcm_lib.c
sound/core/pcm_lib.c
+2
-2
sound/firewire/amdtp-stream.c
sound/firewire/amdtp-stream.c
+6
-2
sound/firewire/amdtp-stream.h
sound/firewire/amdtp-stream.h
+1
-1
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_intel.c
+8
-3
未找到文件。
sound/core/pcm_lib.c
浏览文件 @
7fc8e7c1
...
...
@@ -2329,7 +2329,7 @@ static int pcm_chmap_ctl_get(struct snd_kcontrol *kcontrol,
struct
snd_pcm_substream
*
substream
;
const
struct
snd_pcm_chmap_elem
*
map
;
if
(
snd_BUG_ON
(
!
info
->
chmap
)
)
if
(
!
info
->
chmap
)
return
-
EINVAL
;
substream
=
snd_pcm_chmap_substream
(
info
,
idx
);
if
(
!
substream
)
...
...
@@ -2361,7 +2361,7 @@ static int pcm_chmap_ctl_tlv(struct snd_kcontrol *kcontrol, int op_flag,
unsigned
int
__user
*
dst
;
int
c
,
count
=
0
;
if
(
snd_BUG_ON
(
!
info
->
chmap
)
)
if
(
!
info
->
chmap
)
return
-
EINVAL
;
if
(
size
<
8
)
return
-
ENOMEM
;
...
...
sound/firewire/amdtp-stream.c
浏览文件 @
7fc8e7c1
...
...
@@ -701,7 +701,9 @@ static void out_stream_callback(struct fw_iso_context *context, u32 tstamp,
cycle
=
increment_cycle_count
(
cycle
,
1
);
if
(
s
->
handle_packet
(
s
,
0
,
cycle
,
i
)
<
0
)
{
s
->
packet_index
=
-
1
;
if
(
in_interrupt
())
amdtp_stream_pcm_abort
(
s
);
WRITE_ONCE
(
s
->
pcm_buffer_pointer
,
SNDRV_PCM_POS_XRUN
);
return
;
}
}
...
...
@@ -753,7 +755,9 @@ static void in_stream_callback(struct fw_iso_context *context, u32 tstamp,
/* Queueing error or detecting invalid payload. */
if
(
i
<
packets
)
{
s
->
packet_index
=
-
1
;
if
(
in_interrupt
())
amdtp_stream_pcm_abort
(
s
);
WRITE_ONCE
(
s
->
pcm_buffer_pointer
,
SNDRV_PCM_POS_XRUN
);
return
;
}
...
...
sound/firewire/amdtp-stream.h
浏览文件 @
7fc8e7c1
...
...
@@ -135,7 +135,7 @@ struct amdtp_stream {
/* For a PCM substream processing. */
struct
snd_pcm_substream
*
pcm
;
struct
tasklet_struct
period_tasklet
;
unsigned
in
t
pcm_buffer_pointer
;
snd_pcm_uframes_
t
pcm_buffer_pointer
;
unsigned
int
pcm_period_pointer
;
/* To wait for first packet. */
...
...
sound/pci/hda/hda_intel.c
浏览文件 @
7fc8e7c1
...
...
@@ -370,10 +370,12 @@ enum {
#define IS_KBL_LP(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9d71)
#define IS_KBL_H(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa2f0)
#define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98)
#define IS_BXT_T(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x1a98)
#define IS_GLK(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x3198)
#define IS_SKL_PLUS(pci) (IS_SKL(pci) || IS_SKL_LP(pci) || IS_BXT(pci)) || \
IS_KBL(pci) || IS_KBL_LP(pci) || IS_KBL_H(pci) || \
IS_GLK(pci)
#define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348)
#define IS_SKL_PLUS(pci) (IS_SKL(pci) || IS_SKL_LP(pci) || IS_BXT(pci) || \
IS_BXT_T(pci) || IS_KBL(pci) || IS_KBL_LP(pci) || \
IS_KBL_H(pci) || IS_GLK(pci) || IS_CFL(pci))
static
char
*
driver_short_names
[]
=
{
[
AZX_DRIVER_ICH
]
=
"HDA Intel"
,
...
...
@@ -2378,6 +2380,9 @@ static const struct pci_device_id azx_ids[] = {
/* Kabylake-H */
{
PCI_DEVICE
(
0x8086
,
0xa2f0
),
.
driver_data
=
AZX_DRIVER_PCH
|
AZX_DCAPS_INTEL_SKYLAKE
},
/* Coffelake */
{
PCI_DEVICE
(
0x8086
,
0xa348
),
.
driver_data
=
AZX_DRIVER_PCH
|
AZX_DCAPS_INTEL_SKYLAKE
},
/* Broxton-P(Apollolake) */
{
PCI_DEVICE
(
0x8086
,
0x5a98
),
.
driver_data
=
AZX_DRIVER_PCH
|
AZX_DCAPS_INTEL_BROXTON
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录