Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3383c5c3
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3383c5c3
编写于
9月 29, 2016
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-linus' into for-next
上级
8da08ca0
0eec8809
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
32 addition
and
6 deletion
+32
-6
sound/pci/ali5451/ali5451.c
sound/pci/ali5451/ali5451.c
+2
-0
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_conexant.c
+10
-0
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+4
-0
sound/usb/mixer_quirks.c
sound/usb/mixer_quirks.c
+16
-6
未找到文件。
sound/pci/ali5451/ali5451.c
浏览文件 @
3383c5c3
...
...
@@ -1408,6 +1408,7 @@ snd_ali_playback_pointer(struct snd_pcm_substream *substream)
spin_unlock
(
&
codec
->
reg_lock
);
dev_dbg
(
codec
->
card
->
dev
,
"playback pointer returned cso=%xh.
\n
"
,
cso
);
cso
%=
runtime
->
buffer_size
;
return
cso
;
}
...
...
@@ -1428,6 +1429,7 @@ static snd_pcm_uframes_t snd_ali_pointer(struct snd_pcm_substream *substream)
cso
=
inw
(
ALI_REG
(
codec
,
ALI_CSO_ALPHA_FMS
+
2
));
spin_unlock
(
&
codec
->
reg_lock
);
cso
%=
runtime
->
buffer_size
;
return
cso
;
}
...
...
sound/pci/hda/patch_conexant.c
浏览文件 @
3383c5c3
...
...
@@ -261,6 +261,7 @@ enum {
CXT_FIXUP_HP_530
,
CXT_FIXUP_CAP_MIX_AMP_5047
,
CXT_FIXUP_MUTE_LED_EAPD
,
CXT_FIXUP_HP_SPECTRE
,
};
/* for hda_fixup_thinkpad_acpi() */
...
...
@@ -765,6 +766,14 @@ static const struct hda_fixup cxt_fixups[] = {
.
type
=
HDA_FIXUP_FUNC
,
.
v
.
func
=
cxt_fixup_mute_led_eapd
,
},
[
CXT_FIXUP_HP_SPECTRE
]
=
{
.
type
=
HDA_FIXUP_PINS
,
.
v
.
pins
=
(
const
struct
hda_pintbl
[])
{
/* enable NID 0x1d for the speaker on top */
{
0x1d
,
0x91170111
},
{
}
}
},
};
static
const
struct
snd_pci_quirk
cxt5045_fixups
[]
=
{
...
...
@@ -814,6 +823,7 @@ static const struct snd_pci_quirk cxt5066_fixups[] = {
SND_PCI_QUIRK
(
0x1025
,
0x0543
,
"Acer Aspire One 522"
,
CXT_FIXUP_STEREO_DMIC
),
SND_PCI_QUIRK
(
0x1025
,
0x054c
,
"Acer Aspire 3830TG"
,
CXT_FIXUP_ASPIRE_DMIC
),
SND_PCI_QUIRK
(
0x1025
,
0x054f
,
"Acer Aspire 4830T"
,
CXT_FIXUP_ASPIRE_DMIC
),
SND_PCI_QUIRK
(
0x103c
,
0x8174
,
"HP Spectre x360"
,
CXT_FIXUP_HP_SPECTRE
),
SND_PCI_QUIRK
(
0x1043
,
0x138d
,
"Asus"
,
CXT_FIXUP_HEADPHONE_MIC_PIN
),
SND_PCI_QUIRK
(
0x152d
,
0x0833
,
"OLPC XO-1.5"
,
CXT_FIXUP_OLPC_XO
),
SND_PCI_QUIRK
(
0x17aa
,
0x20f2
,
"Lenovo T400"
,
CXT_PINCFG_LENOVO_TP410
),
...
...
sound/pci/hda/patch_realtek.c
浏览文件 @
3383c5c3
...
...
@@ -5854,6 +5854,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
{
0x12
,
0x90a60160
},
{
0x14
,
0x90170120
},
{
0x21
,
0x02211030
}),
SND_HDA_PIN_QUIRK
(
0x10ec0255
,
0x1028
,
"Dell"
,
ALC255_FIXUP_DELL1_MIC_NO_PRESENCE
,
{
0x14
,
0x90170110
},
{
0x1b
,
0x02011020
},
{
0x21
,
0x0221101f
}),
SND_HDA_PIN_QUIRK
(
0x10ec0255
,
0x1028
,
"Dell"
,
ALC255_FIXUP_DELL1_MIC_NO_PRESENCE
,
{
0x14
,
0x90170130
},
{
0x1b
,
0x01014020
},
...
...
sound/usb/mixer_quirks.c
浏览文件 @
3383c5c3
...
...
@@ -1831,6 +1831,7 @@ void snd_usb_mixer_rc_memory_change(struct usb_mixer_interface *mixer,
}
static
void
snd_dragonfly_quirk_db_scale
(
struct
usb_mixer_interface
*
mixer
,
struct
usb_mixer_elem_info
*
cval
,
struct
snd_kcontrol
*
kctl
)
{
/* Approximation using 10 ranges based on output measurement on hw v1.2.
...
...
@@ -1848,10 +1849,19 @@ static void snd_dragonfly_quirk_db_scale(struct usb_mixer_interface *mixer,
41
,
50
,
TLV_DB_MINMAX_ITEM
(
-
441
,
0
),
);
usb_audio_info
(
mixer
->
chip
,
"applying DragonFly dB scale quirk
\n
"
);
kctl
->
tlv
.
p
=
scale
;
kctl
->
vd
[
0
].
access
|=
SNDRV_CTL_ELEM_ACCESS_TLV_READ
;
kctl
->
vd
[
0
].
access
&=
~
SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK
;
if
(
cval
->
min
==
0
&&
cval
->
max
==
50
)
{
usb_audio_info
(
mixer
->
chip
,
"applying DragonFly dB scale quirk (0-50 variant)
\n
"
);
kctl
->
tlv
.
p
=
scale
;
kctl
->
vd
[
0
].
access
|=
SNDRV_CTL_ELEM_ACCESS_TLV_READ
;
kctl
->
vd
[
0
].
access
&=
~
SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK
;
}
else
if
(
cval
->
min
==
0
&&
cval
->
max
<=
1000
)
{
/* Some other clearly broken DragonFly variant.
* At least a 0..53 variant (hw v1.0) exists.
*/
usb_audio_info
(
mixer
->
chip
,
"ignoring too narrow dB range on a DragonFly device"
);
kctl
->
vd
[
0
].
access
&=
~
SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK
;
}
}
void
snd_usb_mixer_fu_apply_quirk
(
struct
usb_mixer_interface
*
mixer
,
...
...
@@ -1860,8 +1870,8 @@ void snd_usb_mixer_fu_apply_quirk(struct usb_mixer_interface *mixer,
{
switch
(
mixer
->
chip
->
usb_id
)
{
case
USB_ID
(
0x21b4
,
0x0081
):
/* AudioQuest DragonFly */
if
(
unitid
==
7
&&
cval
->
min
==
0
&&
cval
->
max
==
50
)
snd_dragonfly_quirk_db_scale
(
mixer
,
kctl
);
if
(
unitid
==
7
&&
cval
->
control
==
UAC_FU_VOLUME
)
snd_dragonfly_quirk_db_scale
(
mixer
,
cval
,
kctl
);
break
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录