Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b12b2259
Commit
b12b2259
authored
Nov 14, 2019
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-linus' into for-next
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parents
50952670
976a68f0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
9 deletions
+23
-9
sound/core/pcm_lib.c
sound/core/pcm_lib.c
+6
-2
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_intel.c
+3
-0
sound/pci/hda/patch_hdmi.c
sound/pci/hda/patch_hdmi.c
+3
-1
sound/usb/endpoint.c
sound/usb/endpoint.c
+3
-0
sound/usb/mixer.c
sound/usb/mixer.c
+3
-1
sound/usb/quirks.c
sound/usb/quirks.c
+2
-2
sound/usb/validate.c
sound/usb/validate.c
+3
-3
No files found.
sound/core/pcm_lib.c
View file @
b12b2259
...
...
@@ -1782,11 +1782,14 @@ void snd_pcm_period_elapsed(struct snd_pcm_substream *substream)
struct
snd_pcm_runtime
*
runtime
;
unsigned
long
flags
;
if
(
PCM_RUNTIME_CHECK
(
substream
))
if
(
snd_BUG_ON
(
!
substream
))
return
;
runtime
=
substream
->
runtime
;
snd_pcm_stream_lock_irqsave
(
substream
,
flags
);
if
(
PCM_RUNTIME_CHECK
(
substream
))
goto
_unlock
;
runtime
=
substream
->
runtime
;
if
(
!
snd_pcm_running
(
substream
)
||
snd_pcm_update_hw_ptr0
(
substream
,
1
)
<
0
)
goto
_end
;
...
...
@@ -1797,6 +1800,7 @@ void snd_pcm_period_elapsed(struct snd_pcm_substream *substream)
#endif
_end:
kill_fasync
(
&
runtime
->
fasync
,
SIGIO
,
POLL_IN
);
_unlock:
snd_pcm_stream_unlock_irqrestore
(
substream
,
flags
);
}
EXPORT_SYMBOL
(
snd_pcm_period_elapsed
);
...
...
sound/pci/hda/hda_intel.c
View file @
b12b2259
...
...
@@ -2386,6 +2386,9 @@ static const struct pci_device_id azx_ids[] = {
/* CometLake-H */
{
PCI_DEVICE
(
0x8086
,
0x06C8
),
.
driver_data
=
AZX_DRIVER_SKL
|
AZX_DCAPS_INTEL_SKYLAKE
},
/* CometLake-S */
{
PCI_DEVICE
(
0x8086
,
0xa3f0
),
.
driver_data
=
AZX_DRIVER_SKL
|
AZX_DCAPS_INTEL_SKYLAKE
},
/* Icelake */
{
PCI_DEVICE
(
0x8086
,
0x34c8
),
.
driver_data
=
AZX_DRIVER_SKL
|
AZX_DCAPS_INTEL_SKYLAKE
},
...
...
sound/pci/hda/patch_hdmi.c
View file @
b12b2259
...
...
@@ -46,10 +46,12 @@ MODULE_PARM_DESC(static_hdmi_pcm, "Don't restrict PCM parameters per ELD info");
((codec)->core.vendor_id == 0x80862800))
#define is_cannonlake(codec) ((codec)->core.vendor_id == 0x8086280c)
#define is_icelake(codec) ((codec)->core.vendor_id == 0x8086280f)
#define is_tigerlake(codec) ((codec)->core.vendor_id == 0x80862812)
#define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec) \
|| is_skylake(codec) || is_broxton(codec) \
|| is_kabylake(codec) || is_geminilake(codec) \
|| is_cannonlake(codec) || is_icelake(codec))
|| is_cannonlake(codec) || is_icelake(codec) \
|| is_tigerlake(codec))
#define is_valleyview(codec) ((codec)->core.vendor_id == 0x80862882)
#define is_cherryview(codec) ((codec)->core.vendor_id == 0x80862883)
#define is_valleyview_plus(codec) (is_valleyview(codec) || is_cherryview(codec))
...
...
sound/usb/endpoint.c
View file @
b12b2259
...
...
@@ -388,6 +388,9 @@ static void snd_complete_urb(struct urb *urb)
}
prepare_outbound_urb
(
ep
,
ctx
);
/* can be stopped during prepare callback */
if
(
unlikely
(
!
test_bit
(
EP_FLAG_RUNNING
,
&
ep
->
flags
)))
goto
exit_clear
;
}
else
{
retire_inbound_urb
(
ep
,
ctx
);
/* can be stopped during retire callback */
...
...
sound/usb/mixer.c
View file @
b12b2259
...
...
@@ -1229,7 +1229,8 @@ static int get_min_max_with_quirks(struct usb_mixer_elem_info *cval,
if
(
cval
->
min
+
cval
->
res
<
cval
->
max
)
{
int
last_valid_res
=
cval
->
res
;
int
saved
,
test
,
check
;
get_cur_mix_raw
(
cval
,
minchn
,
&
saved
);
if
(
get_cur_mix_raw
(
cval
,
minchn
,
&
saved
)
<
0
)
goto
no_res_check
;
for
(;;)
{
test
=
saved
;
if
(
test
<
cval
->
max
)
...
...
@@ -1249,6 +1250,7 @@ static int get_min_max_with_quirks(struct usb_mixer_elem_info *cval,
snd_usb_set_cur_mix_value
(
cval
,
minchn
,
0
,
saved
);
}
no_res_check:
cval
->
initialized
=
1
;
}
...
...
sound/usb/quirks.c
View file @
b12b2259
...
...
@@ -248,8 +248,8 @@ static int create_yamaha_midi_quirk(struct snd_usb_audio *chip,
NULL
,
USB_MS_MIDI_OUT_JACK
);
if
(
!
injd
&&
!
outjd
)
return
-
ENODEV
;
if
(
!
(
injd
&&
snd_usb_validate_midi_desc
(
injd
))
||
!
(
outjd
&&
snd_usb_validate_midi_desc
(
outjd
)))
if
(
(
injd
&&
!
snd_usb_validate_midi_desc
(
injd
))
||
(
outjd
&&
!
snd_usb_validate_midi_desc
(
outjd
)))
return
-
ENODEV
;
if
(
injd
&&
(
injd
->
bLength
<
5
||
(
injd
->
bJackType
!=
USB_MS_EMBEDDED
&&
...
...
sound/usb/validate.c
View file @
b12b2259
...
...
@@ -81,9 +81,9 @@ static bool validate_processing_unit(const void *p,
switch
(
v
->
protocol
)
{
case
UAC_VERSION_1
:
default:
/* bNrChannels, wChannelConfig, iChannelNames
, bControlSize
*/
len
+=
1
+
2
+
1
+
1
;
if
(
d
->
bLength
<
len
)
/* bControlSize */
/* bNrChannels, wChannelConfig, iChannelNames */
len
+=
1
+
2
+
1
;
if
(
d
->
bLength
<
len
+
1
)
/* bControlSize */
return
false
;
m
=
hdr
[
len
];
len
+=
1
+
m
+
1
;
/* bControlSize, bmControls, iProcessing */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment