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
84526820
Commit
84526820
authored
Jul 01, 2014
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/hda-cleanup' into for-next
parents
e8750940
fb1d8ac2
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
422 additions
and
394 deletions
+422
-394
sound/pci/hda/hda_auto_parser.c
sound/pci/hda/hda_auto_parser.c
+0
-2
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_controller.c
+70
-130
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_controller.h
+6
-3
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_intel.c
+251
-70
sound/pci/hda/hda_priv.h
sound/pci/hda/hda_priv.h
+93
-160
sound/pci/hda/hda_tegra.c
sound/pci/hda/hda_tegra.c
+2
-29
No files found.
sound/pci/hda/hda_auto_parser.c
View file @
84526820
...
...
@@ -17,8 +17,6 @@
#include "hda_local.h"
#include "hda_auto_parser.h"
#define SFX "hda_codec: "
/*
* Helper for automatic pin configuration
*/
...
...
sound/pci/hda/hda_controller.c
View file @
84526820
This diff is collapsed.
Click to expand it.
sound/pci/hda/hda_controller.h
View file @
84526820
...
...
@@ -25,9 +25,9 @@ static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream)
{
return
substream
->
runtime
->
private_data
;
}
unsigned
int
azx_get_position
(
struct
azx
*
chip
,
struct
azx_dev
*
azx_dev
,
bool
with_check
);
unsigned
int
azx_get_position
(
struct
azx
*
chip
,
struct
azx_dev
*
azx_dev
);
unsigned
int
azx_get_pos_lpib
(
struct
azx
*
chip
,
struct
azx_dev
*
azx_dev
);
unsigned
int
azx_get_pos_posbuf
(
struct
azx
*
chip
,
struct
azx_dev
*
azx_dev
);
/* Stream control. */
void
azx_stream_stop
(
struct
azx
*
chip
,
struct
azx_dev
*
azx_dev
);
...
...
@@ -50,4 +50,7 @@ int azx_codec_configure(struct azx *chip);
int
azx_mixer_create
(
struct
azx
*
chip
);
int
azx_init_stream
(
struct
azx
*
chip
);
void
azx_notifier_register
(
struct
azx
*
chip
);
void
azx_notifier_unregister
(
struct
azx
*
chip
);
#endif
/* __SOUND_HDA_CONTROLLER_H */
sound/pci/hda/hda_intel.c
View file @
84526820
This diff is collapsed.
Click to expand it.
sound/pci/hda/hda_priv.h
View file @
84526820
This diff is collapsed.
Click to expand it.
sound/pci/hda/hda_tegra.c
View file @
84526820
...
...
@@ -29,7 +29,6 @@
#include <linux/moduleparam.h>
#include <linux/mutex.h>
#include <linux/of_device.h>
#include <linux/reboot.h>
#include <linux/slab.h>
#include <linux/time.h>
...
...
@@ -294,30 +293,6 @@ static const struct dev_pm_ops hda_tegra_pm = {
SET_SYSTEM_SLEEP_PM_OPS
(
hda_tegra_suspend
,
hda_tegra_resume
)
};
/*
* reboot notifier for hang-up problem at power-down
*/
static
int
hda_tegra_halt
(
struct
notifier_block
*
nb
,
unsigned
long
event
,
void
*
buf
)
{
struct
azx
*
chip
=
container_of
(
nb
,
struct
azx
,
reboot_notifier
);
snd_hda_bus_reboot_notify
(
chip
->
bus
);
azx_stop_chip
(
chip
);
return
NOTIFY_OK
;
}
static
void
hda_tegra_notifier_register
(
struct
azx
*
chip
)
{
chip
->
reboot_notifier
.
notifier_call
=
hda_tegra_halt
;
register_reboot_notifier
(
&
chip
->
reboot_notifier
);
}
static
void
hda_tegra_notifier_unregister
(
struct
azx
*
chip
)
{
if
(
chip
->
reboot_notifier
.
notifier_call
)
unregister_reboot_notifier
(
&
chip
->
reboot_notifier
);
}
/*
* destructor
*/
...
...
@@ -326,7 +301,7 @@ static int hda_tegra_dev_free(struct snd_device *device)
int
i
;
struct
azx
*
chip
=
device
->
device_data
;
hda_tegra
_notifier_unregister
(
chip
);
azx
_notifier_unregister
(
chip
);
if
(
chip
->
initialized
)
{
for
(
i
=
0
;
i
<
chip
->
num_streams
;
i
++
)
...
...
@@ -480,8 +455,6 @@ static int hda_tegra_create(struct snd_card *card,
INIT_LIST_HEAD
(
&
chip
->
pcm_list
);
INIT_LIST_HEAD
(
&
chip
->
list
);
chip
->
position_fix
[
0
]
=
POS_FIX_AUTO
;
chip
->
position_fix
[
1
]
=
POS_FIX_AUTO
;
chip
->
codec_probe_mask
=
-
1
;
chip
->
single_cmd
=
false
;
...
...
@@ -559,7 +532,7 @@ static int hda_tegra_probe(struct platform_device *pdev)
chip
->
running
=
1
;
power_down_all_codecs
(
chip
);
hda_tegra
_notifier_register
(
chip
);
azx
_notifier_register
(
chip
);
return
0
;
...
...
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