diff options
Diffstat (limited to 'drivers/ps3/ps3av_cmd.c')
-rw-r--r-- | drivers/ps3/ps3av_cmd.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/ps3/ps3av_cmd.c b/drivers/ps3/ps3av_cmd.c index bc70e81f8cb0..0145ea173c42 100644 --- a/drivers/ps3/ps3av_cmd.c +++ b/drivers/ps3/ps3av_cmd.c | |||
@@ -395,7 +395,7 @@ u32 ps3av_cmd_set_video_mode(void *p, u32 head, int video_vid, int video_fmt, | |||
395 | video_mode->video_order = ps3av_video_fmt_table[video_fmt].order; | 395 | video_mode->video_order = ps3av_video_fmt_table[video_fmt].order; |
396 | 396 | ||
397 | pr_debug("%s: video_mode:vid:%x width:%d height:%d pitch:%d out_format:%d format:%x order:%x\n", | 397 | pr_debug("%s: video_mode:vid:%x width:%d height:%d pitch:%d out_format:%d format:%x order:%x\n", |
398 | __FUNCTION__, video_vid, video_mode->width, video_mode->height, | 398 | __func__, video_vid, video_mode->width, video_mode->height, |
399 | video_mode->pitch, video_mode->video_out_format, | 399 | video_mode->pitch, video_mode->video_out_format, |
400 | video_mode->video_format, video_mode->video_order); | 400 | video_mode->video_format, video_mode->video_order); |
401 | return sizeof(*video_mode); | 401 | return sizeof(*video_mode); |
@@ -477,7 +477,7 @@ static u8 ps3av_cnv_mclk(u32 fs) | |||
477 | if (ps3av_cnv_mclk_table[i].fs == fs) | 477 | if (ps3av_cnv_mclk_table[i].fs == fs) |
478 | return ps3av_cnv_mclk_table[i].mclk; | 478 | return ps3av_cnv_mclk_table[i].mclk; |
479 | 479 | ||
480 | printk(KERN_ERR "%s failed, fs:%x\n", __FUNCTION__, fs); | 480 | printk(KERN_ERR "%s failed, fs:%x\n", __func__, fs); |
481 | return 0; | 481 | return 0; |
482 | } | 482 | } |
483 | 483 | ||
@@ -526,13 +526,12 @@ static void ps3av_cnv_ns(u8 *ns, u32 fs, u32 video_vid) | |||
526 | d = 4; | 526 | d = 4; |
527 | break; | 527 | break; |
528 | default: | 528 | default: |
529 | printk(KERN_ERR "%s failed, vid:%x\n", __FUNCTION__, | 529 | printk(KERN_ERR "%s failed, vid:%x\n", __func__, video_vid); |
530 | video_vid); | ||
531 | break; | 530 | break; |
532 | } | 531 | } |
533 | 532 | ||
534 | if (fs < PS3AV_CMD_AUDIO_FS_44K || fs > PS3AV_CMD_AUDIO_FS_192K) | 533 | if (fs < PS3AV_CMD_AUDIO_FS_44K || fs > PS3AV_CMD_AUDIO_FS_192K) |
535 | printk(KERN_ERR "%s failed, fs:%x\n", __FUNCTION__, fs); | 534 | printk(KERN_ERR "%s failed, fs:%x\n", __func__, fs); |
536 | else | 535 | else |
537 | ns_val = ps3av_ns_table[PS3AV_CMD_AUDIO_FS_44K-BASE][d]; | 536 | ns_val = ps3av_ns_table[PS3AV_CMD_AUDIO_FS_44K-BASE][d]; |
538 | 537 | ||
@@ -555,8 +554,7 @@ static u8 ps3av_cnv_enable(u32 source, const u8 *enable) | |||
555 | ret = ((p[0] << 4) + (p[1] << 5) + (p[2] << 6) + (p[3] << 7)) | | 554 | ret = ((p[0] << 4) + (p[1] << 5) + (p[2] << 6) + (p[3] << 7)) | |
556 | 0x01; | 555 | 0x01; |
557 | } else | 556 | } else |
558 | printk(KERN_ERR "%s failed, source:%x\n", __FUNCTION__, | 557 | printk(KERN_ERR "%s failed, source:%x\n", __func__, source); |
559 | source); | ||
560 | return ret; | 558 | return ret; |
561 | } | 559 | } |
562 | 560 | ||
@@ -585,7 +583,7 @@ static u8 ps3av_cnv_inputlen(u32 word_bits) | |||
585 | ret = PS3AV_CMD_AV_INPUTLEN_24; | 583 | ret = PS3AV_CMD_AV_INPUTLEN_24; |
586 | break; | 584 | break; |
587 | default: | 585 | default: |
588 | printk(KERN_ERR "%s failed, word_bits:%x\n", __FUNCTION__, | 586 | printk(KERN_ERR "%s failed, word_bits:%x\n", __func__, |
589 | word_bits); | 587 | word_bits); |
590 | break; | 588 | break; |
591 | } | 589 | } |
@@ -595,7 +593,7 @@ static u8 ps3av_cnv_inputlen(u32 word_bits) | |||
595 | static u8 ps3av_cnv_layout(u32 num_of_ch) | 593 | static u8 ps3av_cnv_layout(u32 num_of_ch) |
596 | { | 594 | { |
597 | if (num_of_ch > PS3AV_CMD_AUDIO_NUM_OF_CH_8) { | 595 | if (num_of_ch > PS3AV_CMD_AUDIO_NUM_OF_CH_8) { |
598 | printk(KERN_ERR "%s failed, num_of_ch:%x\n", __FUNCTION__, | 596 | printk(KERN_ERR "%s failed, num_of_ch:%x\n", __func__, |
599 | num_of_ch); | 597 | num_of_ch); |
600 | return 0; | 598 | return 0; |
601 | } | 599 | } |
@@ -864,7 +862,7 @@ int ps3av_cmd_avb_param(struct ps3av_pkt_avb_param *avb, u32 send_len) | |||
864 | 862 | ||
865 | res = get_status(avb); | 863 | res = get_status(avb); |
866 | if (res) | 864 | if (res) |
867 | pr_debug("%s: PS3AV_CID_AVB_PARAM: failed %x\n", __FUNCTION__, | 865 | pr_debug("%s: PS3AV_CID_AVB_PARAM: failed %x\n", __func__, |
868 | res); | 866 | res); |
869 | 867 | ||
870 | out: | 868 | out: |
@@ -1013,7 +1011,7 @@ int ps3av_vuart_read(struct ps3_vuart_port_device *dev, void *buf, | |||
1013 | return size; | 1011 | return size; |
1014 | if (error != -EAGAIN) { | 1012 | if (error != -EAGAIN) { |
1015 | printk(KERN_ERR "%s: ps3_vuart_read failed %d\n", | 1013 | printk(KERN_ERR "%s: ps3_vuart_read failed %d\n", |
1016 | __FUNCTION__, error); | 1014 | __func__, error); |
1017 | return error; | 1015 | return error; |
1018 | } | 1016 | } |
1019 | msleep(POLLING_INTERVAL); | 1017 | msleep(POLLING_INTERVAL); |