ALSA: hda - use pcm prepare/cleanup callbacks for intelhdmi
Remove pcm callbacks open/close in favor of the prepare/cleanup. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
7bedb011ef
commit
70ca35fb42
@@ -543,14 +543,7 @@ static void intel_hdmi_unsol_event(struct hda_codec *codec, unsigned int res)
|
|||||||
* Callbacks
|
* Callbacks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int intel_hdmi_playback_pcm_open(struct hda_pcm_stream *hinfo,
|
static int intel_hdmi_playback_pcm_cleanup(struct hda_pcm_stream *hinfo,
|
||||||
struct hda_codec *codec,
|
|
||||||
struct snd_pcm_substream *substream)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int intel_hdmi_playback_pcm_close(struct hda_pcm_stream *hinfo,
|
|
||||||
struct hda_codec *codec,
|
struct hda_codec *codec,
|
||||||
struct snd_pcm_substream *substream)
|
struct snd_pcm_substream *substream)
|
||||||
{
|
{
|
||||||
@@ -582,9 +575,8 @@ static struct hda_pcm_stream intel_hdmi_pcm_playback = {
|
|||||||
.channels_min = 2,
|
.channels_min = 2,
|
||||||
.channels_max = 8,
|
.channels_max = 8,
|
||||||
.ops = {
|
.ops = {
|
||||||
.open = intel_hdmi_playback_pcm_open,
|
.prepare = intel_hdmi_playback_pcm_prepare,
|
||||||
.close = intel_hdmi_playback_pcm_close,
|
.cleanup = intel_hdmi_playback_pcm_cleanup,
|
||||||
.prepare = intel_hdmi_playback_pcm_prepare
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user